@noir-lang/noir_wasm 0.31.0-55d8e05.nightly → 0.31.0-7b77bbf.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,21 +199,19 @@ 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
204
202
  * @param {string} entry_point
205
203
  * @param {DependencyGraph | undefined} dependency_graph
206
204
  * @param {PathToFileSourceMap} file_source_map
207
205
  * @returns {ProgramCompileResult}
208
206
  */
209
- module.exports.compile_program_ = function(entry_point, dependency_graph, file_source_map) {
207
+ module.exports.compile_program = function(entry_point, dependency_graph, file_source_map) {
210
208
  try {
211
209
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
212
210
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
213
211
  const len0 = WASM_VECTOR_LEN;
214
212
  _assertClass(file_source_map, PathToFileSourceMap);
215
213
  var ptr1 = file_source_map.__destroy_into_raw();
216
- wasm.compile_program_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
214
+ wasm.compile_program(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
217
215
  var r0 = getInt32Memory0()[retptr / 4 + 0];
218
216
  var r1 = getInt32Memory0()[retptr / 4 + 1];
219
217
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -227,21 +225,19 @@ module.exports.compile_program_ = function(entry_point, dependency_graph, file_s
227
225
  };
228
226
 
229
227
  /**
230
- * This is a method that exposes the same API as `compile`
231
- * But uses the Context based APi internally
232
228
  * @param {string} entry_point
233
229
  * @param {DependencyGraph | undefined} dependency_graph
234
230
  * @param {PathToFileSourceMap} file_source_map
235
231
  * @returns {ContractCompileResult}
236
232
  */
237
- module.exports.compile_contract_ = function(entry_point, dependency_graph, file_source_map) {
233
+ module.exports.compile_contract = function(entry_point, dependency_graph, file_source_map) {
238
234
  try {
239
235
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
240
236
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
241
237
  const len0 = WASM_VECTOR_LEN;
242
238
  _assertClass(file_source_map, PathToFileSourceMap);
243
239
  var ptr1 = file_source_map.__destroy_into_raw();
244
- wasm.compile_contract_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
240
+ wasm.compile_contract(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
245
241
  var r0 = getInt32Memory0()[retptr / 4 + 0];
246
242
  var r1 = getInt32Memory0()[retptr / 4 + 1];
247
243
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -255,19 +251,38 @@ module.exports.compile_contract_ = function(entry_point, dependency_graph, file_
255
251
  };
256
252
 
257
253
  /**
254
+ * @param {string} level
255
+ */
256
+ module.exports.init_log_level = function(level) {
257
+ const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
258
+ const len0 = WASM_VECTOR_LEN;
259
+ wasm.init_log_level(ptr0, len0);
260
+ };
261
+
262
+ /**
263
+ * @returns {any}
264
+ */
265
+ module.exports.build_info = function() {
266
+ const ret = wasm.build_info();
267
+ return takeObject(ret);
268
+ };
269
+
270
+ /**
271
+ * This is a method that exposes the same API as `compile`
272
+ * But uses the Context based APi internally
258
273
  * @param {string} entry_point
259
274
  * @param {DependencyGraph | undefined} dependency_graph
260
275
  * @param {PathToFileSourceMap} file_source_map
261
276
  * @returns {ProgramCompileResult}
262
277
  */
263
- module.exports.compile_program = function(entry_point, dependency_graph, file_source_map) {
278
+ module.exports.compile_program_ = function(entry_point, dependency_graph, file_source_map) {
264
279
  try {
265
280
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
266
281
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
267
282
  const len0 = WASM_VECTOR_LEN;
268
283
  _assertClass(file_source_map, PathToFileSourceMap);
269
284
  var ptr1 = file_source_map.__destroy_into_raw();
270
- wasm.compile_program(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
285
+ wasm.compile_program_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
271
286
  var r0 = getInt32Memory0()[retptr / 4 + 0];
272
287
  var r1 = getInt32Memory0()[retptr / 4 + 1];
273
288
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -281,19 +296,21 @@ module.exports.compile_program = function(entry_point, dependency_graph, file_so
281
296
  };
282
297
 
283
298
  /**
299
+ * This is a method that exposes the same API as `compile`
300
+ * But uses the Context based APi internally
284
301
  * @param {string} entry_point
285
302
  * @param {DependencyGraph | undefined} dependency_graph
286
303
  * @param {PathToFileSourceMap} file_source_map
287
304
  * @returns {ContractCompileResult}
288
305
  */
289
- 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) {
290
307
  try {
291
308
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
292
309
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
293
310
  const len0 = WASM_VECTOR_LEN;
294
311
  _assertClass(file_source_map, PathToFileSourceMap);
295
312
  var ptr1 = file_source_map.__destroy_into_raw();
296
- 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);
297
314
  var r0 = getInt32Memory0()[retptr / 4 + 0];
298
315
  var r1 = getInt32Memory0()[retptr / 4 + 1];
299
316
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -306,23 +323,6 @@ module.exports.compile_contract = function(entry_point, dependency_graph, file_s
306
323
  }
307
324
  };
308
325
 
309
- /**
310
- * @param {string} level
311
- */
312
- module.exports.init_log_level = function(level) {
313
- const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
314
- const len0 = WASM_VECTOR_LEN;
315
- wasm.init_log_level(ptr0, len0);
316
- };
317
-
318
- /**
319
- * @returns {any}
320
- */
321
- module.exports.build_info = function() {
322
- const ret = wasm.build_info();
323
- return takeObject(ret);
324
- };
325
-
326
326
  function handleError(f, args) {
327
327
  try {
328
328
  return f.apply(this, args);
@@ -519,6 +519,11 @@ class PathToFileSourceMap {
519
519
  }
520
520
  module.exports.PathToFileSourceMap = PathToFileSourceMap;
521
521
 
522
+ module.exports.__wbindgen_is_undefined = function(arg0) {
523
+ const ret = getObject(arg0) === undefined;
524
+ return ret;
525
+ };
526
+
522
527
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
523
528
  takeObject(arg0);
524
529
  };
@@ -528,11 +533,6 @@ module.exports.__wbg_constructor_23a70262203c0d24 = function() {
528
533
  return addHeapObject(ret);
529
534
  };
530
535
 
531
- module.exports.__wbindgen_is_undefined = function(arg0) {
532
- const ret = getObject(arg0) === undefined;
533
- return ret;
534
- };
535
-
536
536
  module.exports.__wbg_constructor_2a2d75afec348bca = function(arg0) {
537
537
  const ret = new Error(takeObject(arg0));
538
538
  return addHeapObject(ret);