@validate-sdk/v2 1.22.17 → 1.22.18

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 CHANGED
@@ -76,6 +76,19 @@ Verification uses `crypto.timingSafeEqual` to prevent timing attacks.
76
76
  ---
77
77
 
78
78
 
79
+ ## Building the native addon (.node)
80
+
81
+ The published package uses prebuilt **`.node`** native addons. To build them:
82
+
83
+ **Requirements:** [Rust](https://rustup.rs/), Node 16+.
84
+
85
+ ```bash
86
+ npm install
87
+ npm run build:node
88
+ ```
89
+
90
+ Produces `dist/index.<platform>-<arch>.node` for the current OS. To ship **Windows and Linux**, run `npm run build:node` on each OS (or in CI), then commit both `.node` files to `dist/` and publish.
91
+
79
92
  ## License
80
93
 
81
94
  MIT
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@validate-sdk/v2",
3
- "version": "1.22.17",
3
+ "version": "1.22.18",
4
4
  "main": "dist/loader.cjs",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/loader.mjs",
@@ -13,12 +13,16 @@
13
13
  }
14
14
  },
15
15
  "files": [
16
- "dist/loader.cjs","dist/loader.mjs","dist/index.d.ts","dist/bin/**/*",
16
+ "dist/loader.cjs",
17
+ "dist/loader.mjs",
18
+ "dist/index.d.ts",
19
+ "dist/bin/**/*",
17
20
  "README.md"
18
21
  ],
19
22
  "scripts": {
20
23
  "build": "rollup -c",
21
24
  "build:sea": "npm run build && node scripts/build-sea.cjs",
25
+ "build:node": "npm run build && node scripts/build-native.cjs",
22
26
  "dev": "rollup -c -w",
23
27
  "prepublishOnly": "npm run build:sea",
24
28
  "obfuscate": "node scripts/obfuscate.js obfuscate",
@@ -47,15 +51,16 @@
47
51
  "bn.js": "^5.2.2"
48
52
  },
49
53
  "devDependencies": {
54
+ "@napi-rs/cli": "^2.18.4",
50
55
  "@rollup/plugin-commonjs": "^25.0.0",
51
56
  "@rollup/plugin-json": "^6.0.0",
52
57
  "@rollup/plugin-node-resolve": "^15.0.0",
53
58
  "@rollup/plugin-terser": "^0.4.4",
54
59
  "@rollup/plugin-typescript": "^11.1.0",
55
60
  "@types/node": "^24.5.2",
61
+ "postject": "^1.0.0-alpha.6",
56
62
  "rollup": "^4.18.0",
57
63
  "tslib": "^2.6.0",
58
- "typescript": "^5.9.2",
59
- "postject": "^1.0.0-alpha.6"
64
+ "typescript": "^5.9.2"
60
65
  }
61
66
  }