@noir-lang/noir_wasm 0.31.0-96ef87b.nightly → 0.31.0-bf3a75a.nightly

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.
Binary file
package/dist/node/main.js CHANGED
@@ -199,19 +199,21 @@ function _assertClass(instance, klass) {
199
199
  return instance.ptr;
200
200
  }
201
201
  /**
202
+ * This is a method that exposes the same API as `compile`
203
+ * But uses the Context based APi internally
202
204
  * @param {string} entry_point
203
205
  * @param {DependencyGraph | undefined} dependency_graph
204
206
  * @param {PathToFileSourceMap} file_source_map
205
207
  * @returns {ProgramCompileResult}
206
208
  */
207
- module.exports.compile_program = function(entry_point, dependency_graph, file_source_map) {
209
+ module.exports.compile_program_ = function(entry_point, dependency_graph, file_source_map) {
208
210
  try {
209
211
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
210
212
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
211
213
  const len0 = WASM_VECTOR_LEN;
212
214
  _assertClass(file_source_map, PathToFileSourceMap);
213
215
  var ptr1 = file_source_map.__destroy_into_raw();
214
- wasm.compile_program(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
216
+ wasm.compile_program_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
215
217
  var r0 = getInt32Memory0()[retptr / 4 + 0];
216
218
  var r1 = getInt32Memory0()[retptr / 4 + 1];
217
219
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -225,19 +227,21 @@ module.exports.compile_program = function(entry_point, dependency_graph, file_so
225
227
  };
226
228
 
227
229
  /**
230
+ * This is a method that exposes the same API as `compile`
231
+ * But uses the Context based APi internally
228
232
  * @param {string} entry_point
229
233
  * @param {DependencyGraph | undefined} dependency_graph
230
234
  * @param {PathToFileSourceMap} file_source_map
231
235
  * @returns {ContractCompileResult}
232
236
  */
233
- module.exports.compile_contract = function(entry_point, dependency_graph, file_source_map) {
237
+ module.exports.compile_contract_ = function(entry_point, dependency_graph, file_source_map) {
234
238
  try {
235
239
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
236
240
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
237
241
  const len0 = WASM_VECTOR_LEN;
238
242
  _assertClass(file_source_map, PathToFileSourceMap);
239
243
  var ptr1 = file_source_map.__destroy_into_raw();
240
- wasm.compile_contract(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
244
+ wasm.compile_contract_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
241
245
  var r0 = getInt32Memory0()[retptr / 4 + 0];
242
246
  var r1 = getInt32Memory0()[retptr / 4 + 1];
243
247
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -268,21 +272,19 @@ module.exports.build_info = function() {
268
272
  };
269
273
 
270
274
  /**
271
- * This is a method that exposes the same API as `compile`
272
- * But uses the Context based APi internally
273
275
  * @param {string} entry_point
274
276
  * @param {DependencyGraph | undefined} dependency_graph
275
277
  * @param {PathToFileSourceMap} file_source_map
276
278
  * @returns {ProgramCompileResult}
277
279
  */
278
- module.exports.compile_program_ = function(entry_point, dependency_graph, file_source_map) {
280
+ module.exports.compile_program = function(entry_point, dependency_graph, file_source_map) {
279
281
  try {
280
282
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
281
283
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
282
284
  const len0 = WASM_VECTOR_LEN;
283
285
  _assertClass(file_source_map, PathToFileSourceMap);
284
286
  var ptr1 = file_source_map.__destroy_into_raw();
285
- wasm.compile_program_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
287
+ wasm.compile_program(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
286
288
  var r0 = getInt32Memory0()[retptr / 4 + 0];
287
289
  var r1 = getInt32Memory0()[retptr / 4 + 1];
288
290
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -296,21 +298,19 @@ module.exports.compile_program_ = function(entry_point, dependency_graph, file_s
296
298
  };
297
299
 
298
300
  /**
299
- * This is a method that exposes the same API as `compile`
300
- * But uses the Context based APi internally
301
301
  * @param {string} entry_point
302
302
  * @param {DependencyGraph | undefined} dependency_graph
303
303
  * @param {PathToFileSourceMap} file_source_map
304
304
  * @returns {ContractCompileResult}
305
305
  */
306
- module.exports.compile_contract_ = function(entry_point, dependency_graph, file_source_map) {
306
+ module.exports.compile_contract = function(entry_point, dependency_graph, file_source_map) {
307
307
  try {
308
308
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
309
309
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
310
310
  const len0 = WASM_VECTOR_LEN;
311
311
  _assertClass(file_source_map, PathToFileSourceMap);
312
312
  var ptr1 = file_source_map.__destroy_into_raw();
313
- wasm.compile_contract_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
313
+ wasm.compile_contract(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
314
314
  var r0 = getInt32Memory0()[retptr / 4 + 0];
315
315
  var r1 = getInt32Memory0()[retptr / 4 + 1];
316
316
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -523,11 +523,6 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
523
523
  takeObject(arg0);
524
524
  };
525
525
 
526
- module.exports.__wbg_constructor_23a70262203c0d24 = function() {
527
- const ret = new Object();
528
- return addHeapObject(ret);
529
- };
530
-
531
526
  module.exports.__wbg_constructor_2a2d75afec348bca = function(arg0) {
532
527
  const ret = new Error(takeObject(arg0));
533
528
  return addHeapObject(ret);
@@ -538,6 +533,11 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
538
533
  return ret;
539
534
  };
540
535
 
536
+ module.exports.__wbg_constructor_23a70262203c0d24 = function() {
537
+ const ret = new Object();
538
+ return addHeapObject(ret);
539
+ };
540
+
541
541
  module.exports.__wbg_new_abda76e883ba8a5f = function() {
542
542
  const ret = new Error();
543
543
  return addHeapObject(ret);