@spacesprotocol/libveritas 0.0.0-dev.20260328155513 → 0.0.0-dev.20260328160045

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.
Files changed (2) hide show
  1. package/node.js +12 -0
  2. package/package.json +3 -2
package/node.js ADDED
@@ -0,0 +1,12 @@
1
+ import { readFileSync } from 'node:fs';
2
+ import { fileURLToPath } from 'node:url';
3
+ import { dirname, join } from 'node:path';
4
+ import init, * as wasm from './libveritas.js';
5
+
6
+ const __filename = fileURLToPath(import.meta.url);
7
+ const __dirname = dirname(__filename);
8
+ const bytes = readFileSync(join(__dirname, 'libveritas_bg.wasm'));
9
+ await init(bytes);
10
+
11
+ export * from './libveritas.js';
12
+ export default wasm;
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@spacesprotocol/libveritas",
3
3
  "type": "module",
4
- "version": "0.0.0-dev.20260328155513",
4
+ "version": "0.0.0-dev.20260328160045",
5
5
  "files": [
6
6
  "libveritas_bg.wasm",
7
7
  "libveritas.js",
8
- "libveritas.d.ts"
8
+ "libveritas.d.ts",
9
+ "node.js"
9
10
  ],
10
11
  "main": "libveritas.js",
11
12
  "types": "libveritas.d.ts",