Compare commits

..

1 Commits

Author SHA1 Message Date
fiatjaf
56ac558401 fix buffer import and use rollup for transpiling the package. 2021-12-11 07:53:44 -03:00
9 changed files with 8 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "nostr-tools",
"version": "0.6.4",
"version": "0.6.1",
"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"
}

View File

@@ -1,7 +1,7 @@
import pkg from './package.json'
export default {
input: 'index.js',
input: 'src/index.js',
output: [
{
name: 'nostrtools',

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 = [