@noir-lang/noir_wasm 0.10.0-17b9181c → 0.10.0-46a522c

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 ADDED
@@ -0,0 +1,4 @@
1
+ # Noir Lang WASM JavaScript Package
2
+
3
+ ## Tracks
4
+ Noir lang Repository [noir-lang/noir@46a522c](https://github.com/noir-lang/noir/tree/46a522c5a13eb685db82cba364534cff69e843ec)
@@ -1,7 +1,7 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { read_file } = require(String.raw`./snippets/fm-cffb18dcbd478425/file_reader.js`);
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.__wbg_readfile_a255adfa6d841e23 = function() { return handleError(function (arg0, arg1, arg2) {
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;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noir-lang/noir_wasm",
3
- "version": "0.10.0-17b9181c",
3
+ "version": "0.10.0-46a522c",
4
4
  "files": [
5
5
  "nodejs",
6
6
  "web",
package/web/noir_wasm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { read_file } from './snippets/fm-cffb18dcbd478425/file_reader.js';
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.__wbg_readfile_a255adfa6d841e23 = function() { return handleError(function (arg0, arg1, arg2) {
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;
Binary file
@@ -1,6 +0,0 @@
1
- // Synchronously reads a file
2
- const fs = require("fs");
3
-
4
- module.exports.read_file = function (path) {
5
- return fs.readFileSync(path, { encoding: "utf8" });
6
- };
@@ -1,6 +0,0 @@
1
- // Synchronously reads a file
2
- const fs = require("fs");
3
-
4
- module.exports.read_file = function (path) {
5
- return fs.readFileSync(path, { encoding: "utf8" });
6
- };