@cloudglides/veil 1.0.1 → 1.1.0

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/index.js CHANGED
@@ -85,8 +85,7 @@ var wasmModule = null;
85
85
  async function loadWasmModule() {
86
86
  if (wasmModule) return wasmModule;
87
87
  const paths = [
88
- () => import("./veil_core.js"),
89
- () => import("../veil-core/pkg/veil_core.js")
88
+ () => import("./veil_core.js")
90
89
  ];
91
90
  for (const pathFn of paths) {
92
91
  try {
@@ -96,7 +95,7 @@ async function loadWasmModule() {
96
95
  continue;
97
96
  }
98
97
  }
99
- throw new Error("Failed to load WASM module from any location");
98
+ throw new Error("Failed to load WASM module");
100
99
  }
101
100
  async function initializeWasm() {
102
101
  if (wasmInitialized) return;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudglides/veil",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "Math-based deterministic browser fingerprinting library",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -20,6 +20,16 @@
20
20
  "workspaces": [
21
21
  "example"
22
22
  ],
23
+ "scripts": {
24
+ "build": "tsup",
25
+ "build:all": "node scripts/build.js",
26
+ "build:example": "pnpm -C example build",
27
+ "dev": "tsup --watch",
28
+ "build:wasm": "wasm-pack build veil-core --target web",
29
+ "test": "vitest",
30
+ "test:ui": "vitest --ui",
31
+ "example:dev": "pnpm -C example dev"
32
+ },
23
33
  "devDependencies": {
24
34
  "@vitest/ui": "^1.0.0",
25
35
  "eslint": "^9.39.2",
@@ -31,15 +41,5 @@
31
41
  "vite-plugin-top-level-await": "^1.6.0",
32
42
  "vite-plugin-wasm": "^3.5.0",
33
43
  "vitest": "^1.0.0"
34
- },
35
- "scripts": {
36
- "build": "tsup",
37
- "build:all": "node scripts/build.js",
38
- "build:example": "pnpm -C example build",
39
- "dev": "tsup --watch",
40
- "build:wasm": "wasm-pack build veil-core --target web",
41
- "test": "vitest",
42
- "test:ui": "vitest --ui",
43
- "example:dev": "pnpm -C example dev"
44
44
  }
45
- }
45
+ }