dilithium-crystals-js 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dilithium-crystals-js",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "main": "src/node/index.js",
5
5
  "browser": "dist/dilithium.min.js",
6
6
  "files": [
@@ -3,8 +3,12 @@ import { DILITHIUM_PARAMS, generateKeys, sign, verify } from "../common";
3
3
 
4
4
  // Function to fetch the WebAssembly file
5
5
  async function fetchWasm() {
6
- console.log(`fetching wasm from /node_modules/dilithium-js/dilithium.wasm`);
7
- const response = await fetch("/node_modules/dilithium-js/dilithium.wasm");
6
+ console.log(
7
+ `fetching wasm from /node_modules/dilithium-crystals-js/dilithium.wasm`
8
+ );
9
+ const response = await fetch(
10
+ "/node_modules/dilithium-crystals-js/dilithium.wasm"
11
+ );
8
12
  return await response.arrayBuffer();
9
13
  }
10
14
 
@@ -16,7 +20,7 @@ const createDilithium = () =>
16
20
  wasmBinary,
17
21
  locateFile: (path) => {
18
22
  if (path.endsWith(".wasm")) {
19
- return "/node_modules/dilithium-js/dilithium.wasm";
23
+ return "/node_modules/dilithium-crystals-js/dilithium.wasm";
20
24
  }
21
25
  return path;
22
26
  },