@noir-lang/noir_wasm 0.31.0-70ebf60.nightly → 0.31.0-951e821.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.
- package/dist/node/index_bg.wasm +0 -0
- package/dist/node/main.js +17 -17
- package/dist/node/main.js.map +1 -1
- package/dist/types/build/cjs/index.d.ts +3 -3
- package/dist/types/build/esm/index.d.ts +8 -8
- package/dist/web/main.mjs +2281 -454
- package/dist/web/main.mjs.map +1 -1
- package/package.json +2 -2
package/dist/node/index_bg.wasm
CHANGED
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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,21 @@ module.exports.compile_contract_ = function(entry_point, dependency_graph, file_
|
|
|
255
251
|
};
|
|
256
252
|
|
|
257
253
|
/**
|
|
254
|
+
* This is a method that exposes the same API as `compile`
|
|
255
|
+
* But uses the Context based APi internally
|
|
258
256
|
* @param {string} entry_point
|
|
259
257
|
* @param {DependencyGraph | undefined} dependency_graph
|
|
260
258
|
* @param {PathToFileSourceMap} file_source_map
|
|
261
259
|
* @returns {ProgramCompileResult}
|
|
262
260
|
*/
|
|
263
|
-
module.exports.
|
|
261
|
+
module.exports.compile_program_ = function(entry_point, dependency_graph, file_source_map) {
|
|
264
262
|
try {
|
|
265
263
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
266
264
|
const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
267
265
|
const len0 = WASM_VECTOR_LEN;
|
|
268
266
|
_assertClass(file_source_map, PathToFileSourceMap);
|
|
269
267
|
var ptr1 = file_source_map.__destroy_into_raw();
|
|
270
|
-
wasm.
|
|
268
|
+
wasm.compile_program_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
|
|
271
269
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
272
270
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
273
271
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -281,19 +279,21 @@ module.exports.compile_program = function(entry_point, dependency_graph, file_so
|
|
|
281
279
|
};
|
|
282
280
|
|
|
283
281
|
/**
|
|
282
|
+
* This is a method that exposes the same API as `compile`
|
|
283
|
+
* But uses the Context based APi internally
|
|
284
284
|
* @param {string} entry_point
|
|
285
285
|
* @param {DependencyGraph | undefined} dependency_graph
|
|
286
286
|
* @param {PathToFileSourceMap} file_source_map
|
|
287
287
|
* @returns {ContractCompileResult}
|
|
288
288
|
*/
|
|
289
|
-
module.exports.
|
|
289
|
+
module.exports.compile_contract_ = function(entry_point, dependency_graph, file_source_map) {
|
|
290
290
|
try {
|
|
291
291
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
292
292
|
const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
293
293
|
const len0 = WASM_VECTOR_LEN;
|
|
294
294
|
_assertClass(file_source_map, PathToFileSourceMap);
|
|
295
295
|
var ptr1 = file_source_map.__destroy_into_raw();
|
|
296
|
-
wasm.
|
|
296
|
+
wasm.compile_contract_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
|
|
297
297
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
298
298
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
299
299
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -523,16 +523,16 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
523
523
|
takeObject(arg0);
|
|
524
524
|
};
|
|
525
525
|
|
|
526
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
527
|
-
const ret = getObject(arg0) === undefined;
|
|
528
|
-
return ret;
|
|
529
|
-
};
|
|
530
|
-
|
|
531
526
|
module.exports.__wbg_constructor_23a70262203c0d24 = function() {
|
|
532
527
|
const ret = new Object();
|
|
533
528
|
return addHeapObject(ret);
|
|
534
529
|
};
|
|
535
530
|
|
|
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);
|