@noir-lang/noir_wasm 0.3.2-5fa0f57 → 0.3.2-98c2cd9

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@5fa0f57](https://github.com/noir-lang/noir/tree/5fa0f572e68fb38b1325e1768cbe91fc4b0a84e2)
4
+ Noir lang Repository [noir-lang/noir@98c2cd9](https://github.com/noir-lang/noir/tree/98c2cd957c3e60ae94936ba71ca864217001abfd)
@@ -5,6 +5,10 @@
5
5
  */
6
6
  export function init_log_level(level: string): void;
7
7
  /**
8
+ * @returns {any}
9
+ */
10
+ export function build_info(): any;
11
+ /**
8
12
  * @param {any} args
9
13
  * @returns {any}
10
14
  */
@@ -29,7 +33,3 @@ export function acir_read_bytes(bytes: Uint8Array): any;
29
33
  * @returns {Uint8Array}
30
34
  */
31
35
  export function acir_write_bytes(acir: any): Uint8Array;
32
- /**
33
- * @returns {any}
34
- */
35
- export function build_info(): any;
@@ -126,6 +126,14 @@ module.exports.init_log_level = function(level) {
126
126
  wasm.init_log_level(ptr0, len0);
127
127
  };
128
128
 
129
+ /**
130
+ * @returns {any}
131
+ */
132
+ module.exports.build_info = function() {
133
+ const ret = wasm.build_info();
134
+ return takeObject(ret);
135
+ };
136
+
129
137
  /**
130
138
  * @param {any} args
131
139
  * @returns {any}
@@ -202,14 +210,6 @@ module.exports.acir_write_bytes = function(acir) {
202
210
  }
203
211
  };
204
212
 
205
- /**
206
- * @returns {any}
207
- */
208
- module.exports.build_info = function() {
209
- const ret = wasm.build_info();
210
- return takeObject(ret);
211
- };
212
-
213
213
  function handleError(f, args) {
214
214
  try {
215
215
  return f.apply(this, args);
@@ -232,6 +232,11 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
232
232
  takeObject(arg0);
233
233
  };
234
234
 
235
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
236
+ const ret = getStringFromWasm0(arg0, arg1);
237
+ return addHeapObject(ret);
238
+ };
239
+
235
240
  module.exports.__wbg_new_abda76e883ba8a5f = function() {
236
241
  const ret = new Error();
237
242
  return addHeapObject(ret);
@@ -253,11 +258,6 @@ module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
253
258
  }
254
259
  };
255
260
 
256
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
257
- const ret = getStringFromWasm0(arg0, arg1);
258
- return addHeapObject(ret);
259
- };
260
-
261
261
  module.exports.__wbg_readfile_a43240e6f11dd5eb = function() { return handleError(function (arg0, arg1, arg2) {
262
262
  const ret = read_file(getStringFromWasm0(arg1, arg2));
263
263
  const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
Binary file
@@ -2,12 +2,12 @@
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
4
  export function init_log_level(a: number, b: number): void;
5
+ export function build_info(): number;
5
6
  export function compile(a: number): number;
6
7
  export function acir_from_bytes(a: number, b: number): number;
7
8
  export function acir_to_bytes(a: number, b: number): void;
8
9
  export function acir_read_bytes(a: number, b: number): number;
9
10
  export function acir_write_bytes(a: number, b: number): void;
10
- export function build_info(): number;
11
11
  export function __wbindgen_export_0(a: number): number;
12
12
  export function __wbindgen_export_1(a: number, b: number, c: number): number;
13
13
  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 <kevtheappdev@gmail.com>"
5
5
  ],
6
- "version": "0.3.2-5fa0f57",
6
+ "version": "0.3.2-98c2cd9",
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": "5fa0f572e68fb38b1325e1768cbe91fc4b0a84e2"
24
+ "versionHash": "98c2cd957c3e60ae94936ba71ca864217001abfd"
25
25
  }
26
26
  }
@@ -5,6 +5,10 @@
5
5
  */
6
6
  export function init_log_level(level: string): void;
7
7
  /**
8
+ * @returns {any}
9
+ */
10
+ export function build_info(): any;
11
+ /**
8
12
  * @param {any} args
9
13
  * @returns {any}
10
14
  */
@@ -29,22 +33,18 @@ export function acir_read_bytes(bytes: Uint8Array): any;
29
33
  * @returns {Uint8Array}
30
34
  */
31
35
  export function acir_write_bytes(acir: any): Uint8Array;
32
- /**
33
- * @returns {any}
34
- */
35
- export function build_info(): any;
36
36
 
37
37
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
38
38
 
39
39
  export interface InitOutput {
40
40
  readonly memory: WebAssembly.Memory;
41
41
  readonly init_log_level: (a: number, b: number) => void;
42
+ readonly build_info: () => number;
42
43
  readonly compile: (a: number) => number;
43
44
  readonly acir_from_bytes: (a: number, b: number) => number;
44
45
  readonly acir_to_bytes: (a: number, b: number) => void;
45
46
  readonly acir_read_bytes: (a: number, b: number) => number;
46
47
  readonly acir_write_bytes: (a: number, b: number) => void;
47
- readonly build_info: () => number;
48
48
  readonly __wbindgen_export_0: (a: number) => number;
49
49
  readonly __wbindgen_export_1: (a: number, b: number, c: number) => number;
50
50
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
package/web/noir_wasm.js CHANGED
@@ -124,6 +124,14 @@ export function init_log_level(level) {
124
124
  wasm.init_log_level(ptr0, len0);
125
125
  }
126
126
 
127
+ /**
128
+ * @returns {any}
129
+ */
130
+ export function build_info() {
131
+ const ret = wasm.build_info();
132
+ return takeObject(ret);
133
+ }
134
+
127
135
  /**
128
136
  * @param {any} args
129
137
  * @returns {any}
@@ -200,14 +208,6 @@ export function acir_write_bytes(acir) {
200
208
  }
201
209
  }
202
210
 
203
- /**
204
- * @returns {any}
205
- */
206
- export function build_info() {
207
- const ret = wasm.build_info();
208
- return takeObject(ret);
209
- }
210
-
211
211
  function handleError(f, args) {
212
212
  try {
213
213
  return f.apply(this, args);
@@ -261,6 +261,10 @@ function getImports() {
261
261
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
262
262
  takeObject(arg0);
263
263
  };
264
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
265
+ const ret = getStringFromWasm0(arg0, arg1);
266
+ return addHeapObject(ret);
267
+ };
264
268
  imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
265
269
  const ret = new Error();
266
270
  return addHeapObject(ret);
@@ -279,10 +283,6 @@ function getImports() {
279
283
  wasm.__wbindgen_export_2(arg0, arg1);
280
284
  }
281
285
  };
282
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
283
- const ret = getStringFromWasm0(arg0, arg1);
284
- return addHeapObject(ret);
285
- };
286
286
  imports.wbg.__wbg_readfile_a43240e6f11dd5eb = function() { return handleError(function (arg0, arg1, arg2) {
287
287
  const ret = read_file(getStringFromWasm0(arg1, arg2));
288
288
  const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
Binary file
@@ -2,12 +2,12 @@
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
4
  export function init_log_level(a: number, b: number): void;
5
+ export function build_info(): number;
5
6
  export function compile(a: number): number;
6
7
  export function acir_from_bytes(a: number, b: number): number;
7
8
  export function acir_to_bytes(a: number, b: number): void;
8
9
  export function acir_read_bytes(a: number, b: number): number;
9
10
  export function acir_write_bytes(a: number, b: number): void;
10
- export function build_info(): number;
11
11
  export function __wbindgen_export_0(a: number): number;
12
12
  export function __wbindgen_export_1(a: number, b: number, c: number): number;
13
13
  export function __wbindgen_add_to_stack_pointer(a: number): number;