@tracsystems/blake3 0.0.14 → 0.0.16

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.
@@ -23,7 +23,7 @@ export const blake3 = async (bytes, hashLength = DEFAULT_LENGTH) => {
23
23
  [inputAddr, bytes.length, outputAddr, hashLength],
24
24
  )
25
25
 
26
- const res = wasm.HEAPU8.subarray(outputAddr, outputAddr + hashLength)
26
+ const res = wasm.HEAPU8.slice(outputAddr, outputAddr + hashLength)
27
27
  wasm._free(outputAddr)
28
28
  wasm._free(inputAddr)
29
29
  return res
@@ -23,7 +23,7 @@ export const blake3 = async (bytes, hashLength = DEFAULT_LENGTH) => {
23
23
  [inputAddr, bytes.length, outputAddr, hashLength],
24
24
  )
25
25
 
26
- const res = wasm.HEAPU8.subarray(outputAddr, outputAddr + hashLength)
26
+ const res = wasm.HEAPU8.slice(outputAddr, outputAddr + hashLength)
27
27
  wasm._free(outputAddr)
28
28
  wasm._free(inputAddr)
29
29
  return res
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "@tracsystems/blake3",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "scripts": {
5
5
  "build": "make",
6
6
  "clean": "make clean",
7
7
  "build:docker": "docker build -t blake3-build . && docker run --rm -v $(pwd):/build blake3-build bash -c 'npm install && npm run build'",
8
8
  "test": "mocha \"test/**/*.test.js\""
9
9
  },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/Trac-Systems/blake3"
13
+ },
10
14
  "react-native": "dist/wasm/blake3_rn.js",
11
15
  "main": "dist/wasm/blake3.js",
12
16
  "browser": "dist/wasm/blake3.mjs",
@@ -27,5 +31,9 @@
27
31
  "devDependencies": {
28
32
  "chai": "^5.2.1",
29
33
  "mocha": "^11.7.1"
34
+ },
35
+ "publishConfig": {
36
+ "registry": "https://registry.npmjs.org",
37
+ "access": "public"
30
38
  }
31
39
  }