@ic402/client 2.17.6 → 2.17.7
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 +3 -3
- package/dist/eip712.js +1 -1
- package/dist/eip712.js.map +1 -1
- package/package.json +7 -10
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ TypeScript client SDK for [ic402](https://github.com/vhew/ic402)-enabled ICP can
|
|
|
8
8
|
npm install @ic402/client
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
Requires Node.js ≥ 19 (Web Crypto API
|
|
11
|
+
Requires Node.js ≥ 20.19 (Web Crypto API; the floor of `@icp-sdk/core`'s `@noble/*` dependencies). Runtime dependencies (`@icp-sdk/core`, `viem`, `cborg`) install automatically; if your app also uses `@icp-sdk/core` directly, use the same version (6.1.0) so npm installs a single copy.
|
|
12
12
|
|
|
13
13
|
## Quick start
|
|
14
14
|
|
|
@@ -189,8 +189,8 @@ For building custom flows, the pieces behind `fetchX402`/`registerAgent` are exp
|
|
|
189
189
|
|
|
190
190
|
## Requirements
|
|
191
191
|
|
|
192
|
-
- Node.js ≥ 19 (Web Crypto API
|
|
193
|
-
- `@icp-sdk/core`
|
|
192
|
+
- Node.js ≥ 20.19 (Web Crypto API; the floor of `@icp-sdk/core`'s `@noble/*` dependencies)
|
|
193
|
+
- `@icp-sdk/core` 6.1.0 (a regular dependency; match it in your app to avoid a second copy)
|
|
194
194
|
|
|
195
195
|
## License
|
|
196
196
|
|
package/dist/eip712.js
CHANGED
|
@@ -28,7 +28,7 @@ export const TRANSFER_WITH_AUTHORIZATION_TYPES = {
|
|
|
28
28
|
export function randomNonce() {
|
|
29
29
|
if (typeof globalThis.crypto === 'undefined' || !globalThis.crypto.getRandomValues) {
|
|
30
30
|
throw new Error('ic402: Web Crypto API required for secure nonce generation. ' +
|
|
31
|
-
'Ensure globalThis.crypto.getRandomValues is available (Node.js >= 19, modern browsers, or polyfill).');
|
|
31
|
+
'Ensure globalThis.crypto.getRandomValues is available (Node.js >= 20.19, modern browsers, or polyfill).');
|
|
32
32
|
}
|
|
33
33
|
const bytes = new Uint8Array(32);
|
|
34
34
|
globalThis.crypto.getRandomValues(bytes);
|
package/dist/eip712.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eip712.js","sourceRoot":"","sources":["../src/eip712.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,GAAG;AACH,mEAAmE;AACnE,8DAA8D;AAC9D,mCAAmC;AAEnC,8DAA8D;AAC9D,MAAM,UAAU,UAAU,CAAC,OAAe,EAAE,YAAoB;IAC9D,OAAO;QACL,IAAI,EAAE,UAAmB;QACzB,OAAO,EAAE,GAAY;QACrB,OAAO;QACP,iBAAiB,EAAE,YAA6B;KACjD,CAAC;AACJ,CAAC;AAED,6DAA6D;AAC7D,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,yBAAyB,EAAE;QACzB,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE;QACjC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE;QAC/B,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE;QAClC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE;QACvC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE;QACxC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE;KACnC;CACO,CAAC;AAWX;yEACyE;AACzE,MAAM,UAAU,WAAW;IACzB,IAAI,OAAO,UAAU,CAAC,MAAM,KAAK,WAAW,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC;QACnF,MAAM,IAAI,KAAK,CACb,8DAA8D;YAC5D,
|
|
1
|
+
{"version":3,"file":"eip712.js","sourceRoot":"","sources":["../src/eip712.ts"],"names":[],"mappings":"AAAA,kEAAkE;A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;aAC3C,IAAI,CAAC,EAAE,CAAC,CACZ,CAAC;AACJ,CAAC;AAED,+DAA+D;AAC/D,MAAM,UAAU,iCAAiC,CAAC,MAAmC;IACnF,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;IAC5B,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,IAAI,CAAC,CAAC;IAC1C,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,GAAG,GAAG,CAAC;IAE9E,OAAO;QACL,IAAI,EAAE,MAAM,CAAC,IAAqB;QAClC,EAAE,EAAE,MAAM,CAAC,EAAmB;QAC9B,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;QAC9B,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC;QAChC,KAAK,EAAE,KAAsB;KAC9B,CAAC;AACJ,CAAC;AAED,+FAA+F;AAC/F,gGAAgG;AAChG,4FAA4F;AAC5F,2FAA2F"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ic402/client",
|
|
3
|
-
"version": "2.17.
|
|
3
|
+
"version": "2.17.7",
|
|
4
4
|
"description": "TypeScript client SDK for ic402-enabled ICP canisters",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Vaughn Hew",
|
|
@@ -43,23 +43,20 @@
|
|
|
43
43
|
],
|
|
44
44
|
"sideEffects": false,
|
|
45
45
|
"engines": {
|
|
46
|
-
"node": ">=19.0
|
|
46
|
+
"node": ">=20.19.0"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "tsc",
|
|
50
50
|
"test": "vitest run"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@icp-sdk/core": "6.
|
|
54
|
-
"cborg": "
|
|
55
|
-
"viem": "2.
|
|
56
|
-
},
|
|
57
|
-
"peerDependencies": {
|
|
58
|
-
"@icp-sdk/core": ">=5.1.0"
|
|
53
|
+
"@icp-sdk/core": "6.1.0",
|
|
54
|
+
"cborg": "6.1.3",
|
|
55
|
+
"viem": "2.57.3"
|
|
59
56
|
},
|
|
60
57
|
"devDependencies": {
|
|
61
|
-
"@icp-sdk/core": "6.
|
|
58
|
+
"@icp-sdk/core": "6.1.0",
|
|
62
59
|
"typescript": "6.0.3",
|
|
63
|
-
"vitest": "4.1.
|
|
60
|
+
"vitest": "4.1.11"
|
|
64
61
|
}
|
|
65
62
|
}
|