Compare commits

..

2 Commits

Author SHA1 Message Date
fiatjaf
31ab318387 end the rollup madness, just ship the source. 2021-12-11 09:00:25 -03:00
fiatjaf
625b3bb3ba fix buffer import and use rollup for transpiling the package. 2021-12-11 08:53:43 -03:00
4 changed files with 5 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
import Buffer from 'buffer' import {Buffer} from 'buffer'
import * as secp256k1 from '@noble/secp256k1' import * as secp256k1 from '@noble/secp256k1'
import {sha256} from './utils' import {sha256} from './utils'

View File

@@ -1,4 +1,4 @@
import Buffer from 'buffer' import {Buffer} from 'buffer'
import * as secp256k1 from '@noble/secp256k1' import * as secp256k1 from '@noble/secp256k1'
export function encrypt(privkey, pubkey, text) { export function encrypt(privkey, pubkey, text) {

View File

@@ -1,4 +1,4 @@
import Buffer from 'buffer' import {Buffer} from 'buffer'
import dnsPacket from 'dns-packet' import dnsPacket from 'dns-packet'
const dohProviders = [ const dohProviders = [

View File

@@ -1,10 +1,7 @@
{ {
"name": "nostr-tools", "name": "nostr-tools",
"version": "0.6.2", "version": "0.6.5",
"description": "Tools for making a Nostr client.", "description": "Tools for making a Nostr client.",
"main": "dist/nostr-tools.esm.min.js",
"module": "dist/nostr-tools.esm.min.js",
"browser": "dist/nostr-tools.umd.min.js",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/fiatjaf/nostr-tools.git" "url": "https://github.com/fiatjaf/nostr-tools.git"
@@ -26,14 +23,5 @@
"censorship", "censorship",
"censorship-resistance", "censorship-resistance",
"client" "client"
], ]
"devDependencies": {
"rollup": "^2.61.1"
},
"files": [
"dist"
],
"scripts": {
"prepublish": "rollup -c"
}
} }