@noir-lang/noir_wasm 0.1.1-f329379 → 0.2.0-5186ab9

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@f329379](https://github.com/noir-lang/noir/tree/f3293793e7fd4a595971c24c4dcab9b0e7b921dd)
4
+ Noir lang Repository [noir-lang/noir@5186ab9](https://github.com/noir-lang/noir/tree/5186ab97a0fc087413f6d217b87c77f693c574ac)
@@ -15,3 +15,7 @@ export function acir_from_bytes(bytes: Uint8Array): any;
15
15
  * @returns {Uint8Array}
16
16
  */
17
17
  export function acir_to_bytes(acir: any): Uint8Array;
18
+ /**
19
+ * @returns {any}
20
+ */
21
+ export function build_info(): any;
@@ -166,6 +166,14 @@ module.exports.acir_to_bytes = function(acir) {
166
166
  }
167
167
  };
168
168
 
169
+ /**
170
+ * @returns {any}
171
+ */
172
+ module.exports.build_info = function() {
173
+ const ret = wasm.build_info();
174
+ return takeObject(ret);
175
+ };
176
+
169
177
  function handleError(f, args) {
170
178
  try {
171
179
  return f.apply(this, args);
@@ -174,16 +182,16 @@ function handleError(f, args) {
174
182
  }
175
183
  }
176
184
 
177
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
178
- takeObject(arg0);
179
- };
180
-
181
185
  module.exports.__wbindgen_is_undefined = function(arg0) {
182
186
  const ret = getObject(arg0) === undefined;
183
187
  return ret;
184
188
  };
185
189
 
186
- module.exports.__wbg_readfile_141fe7d2c0f1edde = function() { return handleError(function (arg0, arg1, arg2) {
190
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
191
+ takeObject(arg0);
192
+ };
193
+
194
+ module.exports.__wbg_readfile_1ed72752a157b319 = function() { return handleError(function (arg0, arg1, arg2) {
187
195
  const ret = read_file(getStringFromWasm0(arg1, arg2));
188
196
  const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
189
197
  const len0 = WASM_VECTOR_LEN;
Binary file
@@ -4,6 +4,7 @@ export const memory: WebAssembly.Memory;
4
4
  export function compile(a: number, b: number): number;
5
5
  export function acir_from_bytes(a: number, b: number): number;
6
6
  export function acir_to_bytes(a: number, b: number): void;
7
+ export function build_info(): number;
7
8
  export function __wbindgen_export_0(a: number): number;
8
9
  export function __wbindgen_export_1(a: number, b: number, c: number): number;
9
10
  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.1.1-f329379",
6
+ "version": "0.2.0-5186ab9",
7
7
  "files": [
8
8
  "nodejs",
9
9
  "web",
@@ -19,5 +19,8 @@
19
19
  "repository": {
20
20
  "type": "git",
21
21
  "url": "https://github.com/noir-lang/noir_wasm.git"
22
+ },
23
+ "compiler": {
24
+ "versionHash": "5186ab97a0fc087413f6d217b87c77f693c574ac"
22
25
  }
23
26
  }
@@ -15,6 +15,10 @@ export function acir_from_bytes(bytes: Uint8Array): any;
15
15
  * @returns {Uint8Array}
16
16
  */
17
17
  export function acir_to_bytes(acir: any): Uint8Array;
18
+ /**
19
+ * @returns {any}
20
+ */
21
+ export function build_info(): any;
18
22
 
19
23
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
20
24
 
@@ -23,6 +27,7 @@ export interface InitOutput {
23
27
  readonly compile: (a: number, b: number) => number;
24
28
  readonly acir_from_bytes: (a: number, b: number) => number;
25
29
  readonly acir_to_bytes: (a: number, b: number) => void;
30
+ readonly build_info: () => number;
26
31
  readonly __wbindgen_export_0: (a: number) => number;
27
32
  readonly __wbindgen_export_1: (a: number, b: number, c: number) => number;
28
33
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
package/web/noir_wasm.js CHANGED
@@ -164,6 +164,14 @@ export function acir_to_bytes(acir) {
164
164
  }
165
165
  }
166
166
 
167
+ /**
168
+ * @returns {any}
169
+ */
170
+ export function build_info() {
171
+ const ret = wasm.build_info();
172
+ return takeObject(ret);
173
+ }
174
+
167
175
  function handleError(f, args) {
168
176
  try {
169
177
  return f.apply(this, args);
@@ -206,14 +214,14 @@ async function load(module, imports) {
206
214
  function getImports() {
207
215
  const imports = {};
208
216
  imports.wbg = {};
209
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
210
- takeObject(arg0);
211
- };
212
217
  imports.wbg.__wbindgen_is_undefined = function(arg0) {
213
218
  const ret = getObject(arg0) === undefined;
214
219
  return ret;
215
220
  };
216
- imports.wbg.__wbg_readfile_141fe7d2c0f1edde = function() { return handleError(function (arg0, arg1, arg2) {
221
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
222
+ takeObject(arg0);
223
+ };
224
+ imports.wbg.__wbg_readfile_1ed72752a157b319 = function() { return handleError(function (arg0, arg1, arg2) {
217
225
  const ret = read_file(getStringFromWasm0(arg1, arg2));
218
226
  const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
219
227
  const len0 = WASM_VECTOR_LEN;
Binary file
@@ -4,6 +4,7 @@ export const memory: WebAssembly.Memory;
4
4
  export function compile(a: number, b: number): number;
5
5
  export function acir_from_bytes(a: number, b: number): number;
6
6
  export function acir_to_bytes(a: number, b: number): void;
7
+ export function build_info(): number;
7
8
  export function __wbindgen_export_0(a: number): number;
8
9
  export function __wbindgen_export_1(a: number, b: number, c: number): number;
9
10
  export function __wbindgen_add_to_stack_pointer(a: number): number;