Skip to content

Commit

Permalink
fix export names.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Dec 19, 2023
1 parent f093c94 commit 6e81f52
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nostr-wasm",
"description": "nostr stuff in wasm",
"version": "0.0.2",
"version": "0.0.3",
"type": "module",
"main": "dist/main.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/gzipped.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {NostrWasm, type Nostr} from './api/nostr.js'

import SB64_SECP256K1_WASM from '../public/out/secp256k1.wasm?gzip'

export const initWasmSecp256k1 = async (): Promise<Nostr> => {
export const initNostrWasm = async (): Promise<Nostr> => {
// get bytes blob from base64
const atu8_gzipped = new Uint8Array(
atob(SB64_SECP256K1_WASM)
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {NostrWasm, type Nostr} from './api/nostr.js'

import SB64_SECP256K1_WASM from '../public/out/secp256k1.wasm'

export const initWasmSecp256k1 = (): Promise<Nostr> =>
export const initNostrWasm = (): Promise<Nostr> =>
NostrWasm(
new Uint8Array(
atob(SB64_SECP256K1_WASM)
Expand Down

0 comments on commit 6e81f52

Please sign in to comment.