Compare commits

..

1 Commits

Author SHA1 Message Date
fiatjaf
8edcea2ed3 fix buffer import and use rollup for transpiling the package. 2021-12-11 08:01:03 -03:00
4 changed files with 7 additions and 4 deletions

View File

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

View File

@@ -1,4 +1,4 @@
import {Buffer} from 'buffer'
import Buffer from 'buffer'
import * as secp256k1 from '@noble/secp256k1'
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'
const dohProviders = [

View File

@@ -1,6 +1,6 @@
{
"name": "nostr-tools",
"version": "0.6.4",
"version": "0.6.2",
"description": "Tools for making a Nostr client.",
"main": "dist/nostr-tools.esm.min.js",
"module": "dist/nostr-tools.esm.min.js",
@@ -30,6 +30,9 @@
"devDependencies": {
"rollup": "^2.61.1"
},
"files": [
"dist"
],
"scripts": {
"prepublish": "rollup -c"
}