Skip to content

Commit

Permalink
deps and build
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaylina committed Jan 12, 2024
1 parent 3f738f0 commit 6b0b4e6
Show file tree
Hide file tree
Showing 5 changed files with 400 additions and 2,065 deletions.
21 changes: 12 additions & 9 deletions build/browser.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1586,13 +1586,16 @@ var utf16le = {

const result = new Uint8Array(totalLength);

buffers.reduce(
(offset, buffer) => {
result.set(buffer, offset);
return offset + buffer.byteLength
},
0
);
let offset = 0;
for (const buffer of buffers) {
if (offset + buffer.byteLength > result.byteLength) {
const sub = buffer.subarray(0, result.byteLength - offset);
result.set(sub, offset);
return result
}
result.set(buffer, offset);
offset += buffer.byteLength;
}

return result
}
Expand Down Expand Up @@ -1658,9 +1661,9 @@ var utf16le = {
encoding = end;
end = buffer.byteLength;
}
} else if (typeof val === 'number') {
} else if (typeof value === 'number') {
value = value & 0xff;
} else if (typeof val === 'boolean') {
} else if (typeof value === 'boolean') {
value = +value;
}

Expand Down
27 changes: 15 additions & 12 deletions build/snarkjs.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/snarkjs.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 6b0b4e6

Please sign in to comment.