w3pk 0.10.3 → 0.10.4
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/README.md +1 -8
- package/dist/chainlist/index.d.mts +96 -0
- package/dist/chainlist/index.d.ts +96 -0
- package/dist/index.d.mts +114 -29
- package/dist/index.d.ts +114 -29
- package/dist/index.js +25 -25
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -25
- package/dist/index.mjs.map +1 -1
- package/dist/inspect/node.d.mts +112 -0
- package/dist/inspect/node.d.ts +112 -0
- package/dist/zk/index.js +3 -3
- package/dist/zk/index.js.map +1 -1
- package/dist/zk/index.mjs +4 -4
- package/dist/zk/index.mjs.map +1 -1
- package/dist/zk/utils.js +3 -3
- package/dist/zk/utils.js.map +1 -1
- package/dist/zk/utils.mjs +3 -3
- package/dist/zk/utils.mjs.map +1 -1
- package/docs/API_REFERENCE.md +114 -30
- package/docs/BROWSER_COMPATIBILITY.md +11 -0
- package/docs/INTEGRATION_GUIDELINES.md +12 -3
- package/docs/PORTABILITY.md +66 -0
- package/docs/RECOVERY.md +58 -48
- package/package.json +42 -25
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "w3pk",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
4
4
|
"description": "WebAuthn SDK for passwordless authentication, encrypted wallets, ERC-5564 stealth addresses, and zero-knowledge proofs",
|
|
5
5
|
"author": "Julien Béranger",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -83,6 +83,33 @@
|
|
|
83
83
|
"docs/",
|
|
84
84
|
"scripts/compute-build-hash.mjs"
|
|
85
85
|
],
|
|
86
|
+
"scripts": {
|
|
87
|
+
"build": "tsup",
|
|
88
|
+
"build:zk": "npm run build && npm run compile:circuits",
|
|
89
|
+
"compile:circuits": "node scripts/compile-circuits.js",
|
|
90
|
+
"dev": "tsup --watch",
|
|
91
|
+
"test": "tsx test/test.ts && tsx test/comprehensive.test.ts && tsx test/backup.test.ts && tsx test/social-recovery.test.ts && tsx test/recovery-education.test.ts && tsx test/zk/zk.test.ts && tsx test/nft-ownership.test.ts && tsx test/chainlist.test.ts && tsx test/eip7702.test.ts && tsx test/external-wallet.test.ts && tsx test/erc5564.test.ts && tsx test/zk/key-stretching.test.ts && tsx test/username-encoding.test.ts && tsx test/username-validation.test.ts && tsx test/origin-derivation.test.ts && tsx test/build-hash.test.ts && tsx test/credential-checking.test.ts && tsx test/webauthn-native.test.ts && tsx test/persistent-session.test.ts && tsx test/local-storage.test.ts && tsx test/sign-message.test.ts && tsx test/siwe.test.ts && tsx test/requirereauth.test.ts && tsx test/eip7951.test.ts && tsx test/send-transaction.test.ts && tsx test/eip1193-provider.test.ts && tsx test/mlkem.test.ts && tsx test/login-missing-wallet.test.ts && tsx test/backup-status.test.ts && tsx test/eviction-risk.test.ts && tsx test/fresh-device-sync.test.ts && tsx test/prf-secret.test.ts && tsx test/prf-sync.test.ts",
|
|
92
|
+
"test:basic": "tsx test/test.ts",
|
|
93
|
+
"test:comprehensive": "tsx test/comprehensive.test.ts",
|
|
94
|
+
"test:backup": "tsx test/backup.test.ts",
|
|
95
|
+
"test:social-recovery": "tsx test/social-recovery.test.ts",
|
|
96
|
+
"test:education": "tsx test/recovery-education.test.ts",
|
|
97
|
+
"test:username": "tsx test/username-encoding.test.ts && tsx test/username-validation.test.ts",
|
|
98
|
+
"test:recovery": "tsx test/backup.test.ts && tsx test/social-recovery.test.ts && tsx test/recovery-education.test.ts",
|
|
99
|
+
"test:zk": "tsx test/zk/zk.test.ts",
|
|
100
|
+
"test:nft": "tsx test/nft-ownership.test.ts",
|
|
101
|
+
"test:chainlist": "tsx test/chainlist.test.ts",
|
|
102
|
+
"test:eip7702": "tsx test/eip7702.test.ts",
|
|
103
|
+
"test:external-wallet": "tsx test/external-wallet.test.ts",
|
|
104
|
+
"test:eip7951": "tsx test/eip7951.test.ts",
|
|
105
|
+
"test:erc5564": "tsx test/erc5564.test.ts",
|
|
106
|
+
"test:sign-message": "tsx test/sign-message.test.ts",
|
|
107
|
+
"test:siwe": "tsx test/siwe.test.ts",
|
|
108
|
+
"prepublishOnly": "pnpm build",
|
|
109
|
+
"build:hash": "node scripts/compute-build-hash.mjs",
|
|
110
|
+
"html": "lsof -ti:3000 | xargs kill -9 2>/dev/null || true && tsup && npx serve . -l 3000 & sleep 5 && open http://localhost:3000/standalone/checker.html"
|
|
111
|
+
},
|
|
112
|
+
"packageManager": "pnpm@10.6.4",
|
|
86
113
|
"devDependencies": {
|
|
87
114
|
"@types/node": "^25.9.2",
|
|
88
115
|
"@types/qrcode": "^1.5.5",
|
|
@@ -107,29 +134,19 @@
|
|
|
107
134
|
"@noble/hashes": "^2.2.0",
|
|
108
135
|
"mlkem": "^2.7.0"
|
|
109
136
|
},
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
"test:nft": "tsx test/nft-ownership.test.ts",
|
|
125
|
-
"test:chainlist": "tsx test/chainlist.test.ts",
|
|
126
|
-
"test:eip7702": "tsx test/eip7702.test.ts",
|
|
127
|
-
"test:external-wallet": "tsx test/external-wallet.test.ts",
|
|
128
|
-
"test:eip7951": "tsx test/eip7951.test.ts",
|
|
129
|
-
"test:erc5564": "tsx test/erc5564.test.ts",
|
|
130
|
-
"test:sign-message": "tsx test/sign-message.test.ts",
|
|
131
|
-
"test:siwe": "tsx test/siwe.test.ts",
|
|
132
|
-
"build:hash": "node scripts/compute-build-hash.mjs",
|
|
133
|
-
"html": "lsof -ti:3000 | xargs kill -9 2>/dev/null || true && tsup && npx serve . -l 3000 & sleep 5 && open http://localhost:3000/standalone/checker.html"
|
|
137
|
+
"pnpm": {
|
|
138
|
+
"overrides": {
|
|
139
|
+
"jsonpath@<1.2.0": ">=1.2.0",
|
|
140
|
+
"bn.js@>=5.0.0 <5.2.3": ">=5.2.3",
|
|
141
|
+
"bn.js@<4.12.3": ">=4.12.3",
|
|
142
|
+
"minimatch@>=5.0.0 <5.1.7": ">=5.1.7",
|
|
143
|
+
"rollup@>=4.0.0 <4.59.0": ">=4.59.0",
|
|
144
|
+
"minimatch@>=5.0.0 <5.1.8": ">=5.1.8",
|
|
145
|
+
"jsonpath@<=1.2.1": ">=1.3.0",
|
|
146
|
+
"brace-expansion@>=2.0.0 <2.0.3": ">=2.0.3",
|
|
147
|
+
"picomatch@>=4.0.0 <4.0.4": ">=4.0.4",
|
|
148
|
+
"underscore@<=1.13.7": ">=1.13.8",
|
|
149
|
+
"ws@>=8.0.0 <8.20.1": ">=8.20.1"
|
|
150
|
+
}
|
|
134
151
|
}
|
|
135
152
|
}
|