@noir-lang/noir_wasm 0.10.0-17b9181c → 0.10.0-ae93368
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/README.md +4 -0
- package/nodejs/noir_wasm.js +2 -2
- package/nodejs/noir_wasm_bg.wasm +0 -0
- package/package.json +5 -2
- package/web/noir_wasm.js +2 -2
- package/web/noir_wasm_bg.wasm +0 -0
- package/nodejs/snippets/fm-cffb18dcbd478425/file_reader.js +0 -6
- package/web/snippets/fm-cffb18dcbd478425/file_reader.js +0 -6
package/README.md
ADDED
package/nodejs/noir_wasm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
let imports = {};
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
|
-
const { read_file } = require(
|
|
4
|
+
const { read_file } = require(`@noir-lang/noir-source-resolver`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
@@ -188,7 +188,7 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
188
188
|
takeObject(arg0);
|
|
189
189
|
};
|
|
190
190
|
|
|
191
|
-
module.exports.
|
|
191
|
+
module.exports.__wbg_readfile_160f965573651611 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
192
192
|
const ret = read_file(getStringFromWasm0(arg1, arg2));
|
|
193
193
|
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
194
194
|
const len0 = WASM_VECTOR_LEN;
|
package/nodejs/noir_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noir-lang/noir_wasm",
|
|
3
|
-
"version": "0.10.0-
|
|
3
|
+
"version": "0.10.0-ae93368",
|
|
4
4
|
"files": [
|
|
5
5
|
"nodejs",
|
|
6
6
|
"web",
|
|
@@ -9,5 +9,8 @@
|
|
|
9
9
|
"main": "./nodejs/noir_wasm.js",
|
|
10
10
|
"types": "./web/noir_wasm.d.ts",
|
|
11
11
|
"module": "./web/noir_wasm.js",
|
|
12
|
-
"sideEffects": false
|
|
12
|
+
"sideEffects": false,
|
|
13
|
+
"peerDependencies": {
|
|
14
|
+
"@noir-lang/noir-source-resolver": "1.0.0"
|
|
15
|
+
}
|
|
13
16
|
}
|
package/web/noir_wasm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { read_file } from '
|
|
1
|
+
import { read_file } from '@noir-lang/noir-source-resolver';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -217,7 +217,7 @@ function getImports() {
|
|
|
217
217
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
218
218
|
takeObject(arg0);
|
|
219
219
|
};
|
|
220
|
-
imports.wbg.
|
|
220
|
+
imports.wbg.__wbg_readfile_160f965573651611 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
221
221
|
const ret = read_file(getStringFromWasm0(arg1, arg2));
|
|
222
222
|
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
223
223
|
const len0 = WASM_VECTOR_LEN;
|
package/web/noir_wasm_bg.wasm
CHANGED
|
Binary file
|