nostr-auth-middleware 0.2.7 → 0.2.8
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.
- package/dist/utils/crypto.utils.d.ts +1 -1
- package/package.json +3 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NostrEvent } from '../utils/types';
|
|
2
|
-
export declare function generateKeyPair(): import("@humanjavaenterprises/nostr-crypto-utils
|
|
2
|
+
export declare function generateKeyPair(): import("@humanjavaenterprises/nostr-crypto-utils").KeyPair;
|
|
3
3
|
export declare function getPublicKey(privateKey: string): string;
|
|
4
4
|
export declare function verifySignature(event: NostrEvent): Promise<boolean>;
|
|
5
5
|
export declare function generateEventHash(event: Partial<NostrEvent>): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nostr-auth-middleware",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "A comprehensive Nostr authentication and enrollment middleware for web applications, with TypeScript support and Supabase integration",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -61,17 +61,6 @@
|
|
|
61
61
|
"url": "https://maiqr.app"
|
|
62
62
|
},
|
|
63
63
|
"license": "MIT",
|
|
64
|
-
"repository": {
|
|
65
|
-
"type": "git",
|
|
66
|
-
"url": "git+https://github.com/maiqr/nostr-auth-middleware.git"
|
|
67
|
-
},
|
|
68
|
-
"bugs": {
|
|
69
|
-
"url": "https://github.com/maiqr/nostr-auth-middleware/issues"
|
|
70
|
-
},
|
|
71
|
-
"homepage": "https://github.com/maiqr/nostr-auth-middleware#readme",
|
|
72
|
-
"engines": {
|
|
73
|
-
"node": ">=16.0.0"
|
|
74
|
-
},
|
|
75
64
|
"publishConfig": {
|
|
76
65
|
"access": "public"
|
|
77
66
|
},
|
|
@@ -81,8 +70,8 @@
|
|
|
81
70
|
"@noble/secp256k1": "^2.0.0",
|
|
82
71
|
"@supabase/supabase-js": "^2.39.1",
|
|
83
72
|
"@types/express-rate-limit": "^6.0.2",
|
|
84
|
-
"
|
|
85
|
-
"
|
|
73
|
+
"nostr-crypto-utils": "file:../nostr-crypto-utils",
|
|
74
|
+
"nostr-nsec-seedphrase-library": "file:../nostr-nsec-seedphrase-library",
|
|
86
75
|
"axios": "^1.7.8",
|
|
87
76
|
"cors": "^2.8.5",
|
|
88
77
|
"dotenv": "^16.3.1",
|