@noir-lang/noir_wasm 0.5.1-f144391 → 0.6.0-a57c574

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 CHANGED
@@ -1,4 +1,4 @@
1
1
  # Noir Lang WASM JavaScript Package
2
2
 
3
3
  ## Tracks
4
- Noir lang Repository [noir-lang/noir@f144391](https://github.com/noir-lang/noir/tree/f144391b4295b127f3f422e862a087a90dac1dbf)
4
+ Noir lang Repository [noir-lang/noir@a57c574](https://github.com/noir-lang/noir/tree/a57c5749cefd5a2999e3b4bba9110097f6d9e915)
@@ -1,10 +1,13 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * @param {any} args
4
+ * @param {string} level
5
+ */
6
+ export function init_log_level(level: string): void;
7
+ /**
5
8
  * @returns {any}
6
9
  */
7
- export function compile(args: any): any;
10
+ export function build_info(): any;
8
11
  /**
9
12
  * @param {Uint8Array} bytes
10
13
  * @returns {any}
@@ -16,10 +19,7 @@ export function acir_read_bytes(bytes: Uint8Array): any;
16
19
  */
17
20
  export function acir_write_bytes(acir: any): Uint8Array;
18
21
  /**
19
- * @param {string} level
20
- */
21
- export function init_log_level(level: string): void;
22
- /**
22
+ * @param {any} args
23
23
  * @returns {any}
24
24
  */
25
- export function build_info(): any;
25
+ export function compile(args: any): any;
@@ -118,11 +118,19 @@ function getInt32Memory0() {
118
118
  return cachedInt32Memory0;
119
119
  }
120
120
  /**
121
- * @param {any} args
121
+ * @param {string} level
122
+ */
123
+ module.exports.init_log_level = function(level) {
124
+ const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
125
+ const len0 = WASM_VECTOR_LEN;
126
+ wasm.init_log_level(ptr0, len0);
127
+ };
128
+
129
+ /**
122
130
  * @returns {any}
123
131
  */
124
- module.exports.compile = function(args) {
125
- const ret = wasm.compile(addHeapObject(args));
132
+ module.exports.build_info = function() {
133
+ const ret = wasm.build_info();
126
134
  return takeObject(ret);
127
135
  };
128
136
 
@@ -165,19 +173,11 @@ module.exports.acir_write_bytes = function(acir) {
165
173
  };
166
174
 
167
175
  /**
168
- * @param {string} level
169
- */
170
- module.exports.init_log_level = function(level) {
171
- const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
172
- const len0 = WASM_VECTOR_LEN;
173
- wasm.init_log_level(ptr0, len0);
174
- };
175
-
176
- /**
176
+ * @param {any} args
177
177
  * @returns {any}
178
178
  */
179
- module.exports.build_info = function() {
180
- const ret = wasm.build_info();
179
+ module.exports.compile = function(args) {
180
+ const ret = wasm.compile(addHeapObject(args));
181
181
  return takeObject(ret);
182
182
  };
183
183
 
@@ -189,6 +189,10 @@ function handleError(f, args) {
189
189
  }
190
190
  }
191
191
 
192
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
193
+ takeObject(arg0);
194
+ };
195
+
192
196
  module.exports.__wbindgen_is_undefined = function(arg0) {
193
197
  const ret = getObject(arg0) === undefined;
194
198
  return ret;
@@ -199,10 +203,6 @@ module.exports.__wbindgen_is_null = function(arg0) {
199
203
  return ret;
200
204
  };
201
205
 
202
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
203
- takeObject(arg0);
204
- };
205
-
206
206
  module.exports.__wbindgen_string_new = function(arg0, arg1) {
207
207
  const ret = getStringFromWasm0(arg0, arg1);
208
208
  return addHeapObject(ret);
@@ -229,7 +229,7 @@ module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
229
229
  }
230
230
  };
231
231
 
232
- module.exports.__wbg_readfile_58551301e7bc72c4 = function() { return handleError(function (arg0, arg1, arg2) {
232
+ module.exports.__wbg_readfile_865ff7b07c118548 = function() { return handleError(function (arg0, arg1, arg2) {
233
233
  const ret = read_file(getStringFromWasm0(arg1, arg2));
234
234
  const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
235
235
  const len0 = WASM_VECTOR_LEN;
Binary file
@@ -1,11 +1,11 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export function compile(a: number): number;
5
- export function acir_read_bytes(a: number, b: number): number;
6
- export function acir_write_bytes(a: number, b: number): void;
7
4
  export function init_log_level(a: number, b: number): void;
8
5
  export function build_info(): number;
6
+ export function acir_read_bytes(a: number, b: number): number;
7
+ export function acir_write_bytes(a: number, b: number): void;
8
+ export function compile(a: number): number;
9
9
  export function __wbindgen_export_0(a: number): number;
10
10
  export function __wbindgen_export_1(a: number, b: number, c: number): number;
11
11
  export function __wbindgen_add_to_stack_pointer(a: number): number;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "The Noir Team <team@noir-lang.org>"
5
5
  ],
6
- "version": "0.5.1-f144391",
6
+ "version": "0.6.0-a57c574",
7
7
  "files": [
8
8
  "nodejs",
9
9
  "web",
@@ -21,6 +21,6 @@
21
21
  "url": "https://github.com/noir-lang/noir_wasm.git"
22
22
  },
23
23
  "compiler": {
24
- "versionHash": "f144391b4295b127f3f422e862a087a90dac1dbf"
24
+ "versionHash": "a57c5749cefd5a2999e3b4bba9110097f6d9e915"
25
25
  }
26
26
  }
@@ -1,10 +1,13 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * @param {any} args
4
+ * @param {string} level
5
+ */
6
+ export function init_log_level(level: string): void;
7
+ /**
5
8
  * @returns {any}
6
9
  */
7
- export function compile(args: any): any;
10
+ export function build_info(): any;
8
11
  /**
9
12
  * @param {Uint8Array} bytes
10
13
  * @returns {any}
@@ -16,23 +19,20 @@ export function acir_read_bytes(bytes: Uint8Array): any;
16
19
  */
17
20
  export function acir_write_bytes(acir: any): Uint8Array;
18
21
  /**
19
- * @param {string} level
20
- */
21
- export function init_log_level(level: string): void;
22
- /**
22
+ * @param {any} args
23
23
  * @returns {any}
24
24
  */
25
- export function build_info(): any;
25
+ export function compile(args: any): any;
26
26
 
27
27
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
28
28
 
29
29
  export interface InitOutput {
30
30
  readonly memory: WebAssembly.Memory;
31
- readonly compile: (a: number) => number;
32
- readonly acir_read_bytes: (a: number, b: number) => number;
33
- readonly acir_write_bytes: (a: number, b: number) => void;
34
31
  readonly init_log_level: (a: number, b: number) => void;
35
32
  readonly build_info: () => number;
33
+ readonly acir_read_bytes: (a: number, b: number) => number;
34
+ readonly acir_write_bytes: (a: number, b: number) => void;
35
+ readonly compile: (a: number) => number;
36
36
  readonly __wbindgen_export_0: (a: number) => number;
37
37
  readonly __wbindgen_export_1: (a: number, b: number, c: number) => number;
38
38
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
package/web/noir_wasm.js CHANGED
@@ -116,11 +116,19 @@ function getInt32Memory0() {
116
116
  return cachedInt32Memory0;
117
117
  }
118
118
  /**
119
- * @param {any} args
119
+ * @param {string} level
120
+ */
121
+ export function init_log_level(level) {
122
+ const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
123
+ const len0 = WASM_VECTOR_LEN;
124
+ wasm.init_log_level(ptr0, len0);
125
+ }
126
+
127
+ /**
120
128
  * @returns {any}
121
129
  */
122
- export function compile(args) {
123
- const ret = wasm.compile(addHeapObject(args));
130
+ export function build_info() {
131
+ const ret = wasm.build_info();
124
132
  return takeObject(ret);
125
133
  }
126
134
 
@@ -163,19 +171,11 @@ export function acir_write_bytes(acir) {
163
171
  }
164
172
 
165
173
  /**
166
- * @param {string} level
167
- */
168
- export function init_log_level(level) {
169
- const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
170
- const len0 = WASM_VECTOR_LEN;
171
- wasm.init_log_level(ptr0, len0);
172
- }
173
-
174
- /**
174
+ * @param {any} args
175
175
  * @returns {any}
176
176
  */
177
- export function build_info() {
178
- const ret = wasm.build_info();
177
+ export function compile(args) {
178
+ const ret = wasm.compile(addHeapObject(args));
179
179
  return takeObject(ret);
180
180
  }
181
181
 
@@ -221,6 +221,9 @@ async function load(module, imports) {
221
221
  function getImports() {
222
222
  const imports = {};
223
223
  imports.wbg = {};
224
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
225
+ takeObject(arg0);
226
+ };
224
227
  imports.wbg.__wbindgen_is_undefined = function(arg0) {
225
228
  const ret = getObject(arg0) === undefined;
226
229
  return ret;
@@ -229,9 +232,6 @@ function getImports() {
229
232
  const ret = getObject(arg0) === null;
230
233
  return ret;
231
234
  };
232
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
233
- takeObject(arg0);
234
- };
235
235
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
236
236
  const ret = getStringFromWasm0(arg0, arg1);
237
237
  return addHeapObject(ret);
@@ -254,7 +254,7 @@ function getImports() {
254
254
  wasm.__wbindgen_export_2(arg0, arg1);
255
255
  }
256
256
  };
257
- imports.wbg.__wbg_readfile_58551301e7bc72c4 = function() { return handleError(function (arg0, arg1, arg2) {
257
+ imports.wbg.__wbg_readfile_865ff7b07c118548 = function() { return handleError(function (arg0, arg1, arg2) {
258
258
  const ret = read_file(getStringFromWasm0(arg1, arg2));
259
259
  const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
260
260
  const len0 = WASM_VECTOR_LEN;
Binary file
@@ -1,11 +1,11 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export function compile(a: number): number;
5
- export function acir_read_bytes(a: number, b: number): number;
6
- export function acir_write_bytes(a: number, b: number): void;
7
4
  export function init_log_level(a: number, b: number): void;
8
5
  export function build_info(): number;
6
+ export function acir_read_bytes(a: number, b: number): number;
7
+ export function acir_write_bytes(a: number, b: number): void;
8
+ export function compile(a: number): number;
9
9
  export function __wbindgen_export_0(a: number): number;
10
10
  export function __wbindgen_export_1(a: number, b: number, c: number): number;
11
11
  export function __wbindgen_add_to_stack_pointer(a: number): number;