applesauce-core 0.0.0-next-20241106101659 → 0.0.0-next-20241106104112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,7 +10,7 @@ export declare function parseCoordinate(a: string, requireD: true, silent: false
|
|
|
10
10
|
export declare function parseCoordinate(a: string, requireD: true, silent: true): AddressPointer | null;
|
|
11
11
|
export declare function parseCoordinate(a: string, requireD: false, silent: true): AddressPointerWithoutD | null;
|
|
12
12
|
export declare function getPubkeyFromDecodeResult(result?: DecodeResult): string | undefined;
|
|
13
|
-
export declare function encodeDecodeResult(result: DecodeResult): "" | `
|
|
13
|
+
export declare function encodeDecodeResult(result: DecodeResult): "" | `nprofile1${string}` | `nevent1${string}` | `naddr1${string}` | `nsec1${string}` | `npub1${string}` | `note1${string}`;
|
|
14
14
|
export declare function getEventPointerFromTag(tag: string[]): EventPointer;
|
|
15
15
|
export declare function getAddressPointerFromTag(tag: string[]): AddressPointer;
|
|
16
16
|
export declare function getProfilePointerFromTag(tag: string[]): ProfilePointer;
|
package/dist/helpers/pointers.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { naddrEncode, neventEncode, noteEncode, nprofileEncode, npubEncode,
|
|
1
|
+
import { naddrEncode, neventEncode, noteEncode, nprofileEncode, npubEncode, nsecEncode, } from "nostr-tools/nip19";
|
|
2
2
|
import { getPublicKey } from "nostr-tools";
|
|
3
3
|
import { safeRelayUrls } from "./relays.js";
|
|
4
4
|
export function parseCoordinate(a, requireD = false, silent = true) {
|
|
@@ -53,8 +53,6 @@ export function encodeDecodeResult(result) {
|
|
|
53
53
|
return nprofileEncode(result.data);
|
|
54
54
|
case "nevent":
|
|
55
55
|
return neventEncode(result.data);
|
|
56
|
-
case "nrelay":
|
|
57
|
-
return nrelayEncode(result.data);
|
|
58
56
|
case "nsec":
|
|
59
57
|
return nsecEncode(result.data);
|
|
60
58
|
case "npub":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "applesauce-core",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20241106104112",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"json-stringify-deterministic": "^1.0.12",
|
|
57
57
|
"light-bolt11-decoder": "^3.2.0",
|
|
58
58
|
"nanoid": "^5.0.7",
|
|
59
|
-
"nostr-tools": "^2.
|
|
59
|
+
"nostr-tools": "^2.10.1",
|
|
60
60
|
"rxjs": "^7.8.1"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|