@noir-lang/noir_wasm
Advanced tools
Comparing version 0.5.1-f144391 to 0.6.0-181813
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export const memory: WebAssembly.Memory; | ||
export function compile(a: number): number; | ||
export function acir_read_bytes(a: number, b: number): number; | ||
@@ -9,2 +8,3 @@ export function acir_write_bytes(a: number, b: number): void; | ||
export function build_info(): number; | ||
export function compile(a: number): number; | ||
export function __wbindgen_export_0(a: number): number; | ||
@@ -11,0 +11,0 @@ export function __wbindgen_export_1(a: number, b: number, c: number): number; |
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* @param {any} args | ||
* @returns {any} | ||
*/ | ||
export function compile(args: any): any; | ||
/** | ||
* @param {Uint8Array} bytes | ||
@@ -26,1 +21,6 @@ * @returns {any} | ||
export function build_info(): any; | ||
/** | ||
* @param {any} args | ||
* @returns {any} | ||
*/ | ||
export function compile(args: any): any; |
@@ -120,10 +120,2 @@ let imports = {}; | ||
} | ||
/** | ||
* @param {any} args | ||
* @returns {any} | ||
*/ | ||
module.exports.compile = function(args) { | ||
const ret = wasm.compile(addHeapObject(args)); | ||
return takeObject(ret); | ||
}; | ||
@@ -185,2 +177,11 @@ function passArray8ToWasm0(arg, malloc) { | ||
/** | ||
* @param {any} args | ||
* @returns {any} | ||
*/ | ||
module.exports.compile = function(args) { | ||
const ret = wasm.compile(addHeapObject(args)); | ||
return takeObject(ret); | ||
}; | ||
function handleError(f, args) { | ||
@@ -194,2 +195,6 @@ try { | ||
module.exports.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
}; | ||
module.exports.__wbindgen_is_undefined = function(arg0) { | ||
@@ -205,6 +210,2 @@ const ret = getObject(arg0) === undefined; | ||
module.exports.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
}; | ||
module.exports.__wbindgen_string_new = function(arg0, arg1) { | ||
@@ -236,3 +237,3 @@ const ret = getStringFromWasm0(arg0, arg1); | ||
module.exports.__wbg_readfile_58551301e7bc72c4 = function() { return handleError(function (arg0, arg1, arg2) { | ||
module.exports.__wbg_readfile_865ff7b07c118548 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = read_file(getStringFromWasm0(arg1, arg2)); | ||
@@ -239,0 +240,0 @@ const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); |
@@ -6,3 +6,3 @@ { | ||
], | ||
"version": "0.5.1-f144391", | ||
"version": "0.6.0-0181813", | ||
"files": [ | ||
@@ -25,4 +25,4 @@ "nodejs", | ||
"compiler": { | ||
"versionHash": "f144391b4295b127f3f422e862a087a90dac1dbf" | ||
"versionHash": "0181813203a9e3e46c6d8c3169ad5d25971d4282" | ||
} | ||
} |
# Noir Lang WASM JavaScript Package | ||
## Tracks | ||
Noir lang Repository [noir-lang/noir@f144391](https://github.com/noir-lang/noir/tree/f144391b4295b127f3f422e862a087a90dac1dbf) | ||
Noir lang Repository [noir-lang/noir@0181813](https://github.com/noir-lang/noir/tree/0181813203a9e3e46c6d8c3169ad5d25971d4282) |
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export const memory: WebAssembly.Memory; | ||
export function compile(a: number): number; | ||
export function acir_read_bytes(a: number, b: number): number; | ||
@@ -9,2 +8,3 @@ export function acir_write_bytes(a: number, b: number): void; | ||
export function build_info(): number; | ||
export function compile(a: number): number; | ||
export function __wbindgen_export_0(a: number): number; | ||
@@ -11,0 +11,0 @@ export function __wbindgen_export_1(a: number, b: number, c: number): number; |
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* @param {any} args | ||
* @returns {any} | ||
*/ | ||
export function compile(args: any): any; | ||
/** | ||
* @param {Uint8Array} bytes | ||
@@ -26,2 +21,7 @@ * @returns {any} | ||
export function build_info(): any; | ||
/** | ||
* @param {any} args | ||
* @returns {any} | ||
*/ | ||
export function compile(args: any): any; | ||
@@ -32,3 +32,2 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; | ||
readonly memory: WebAssembly.Memory; | ||
readonly compile: (a: number) => number; | ||
readonly acir_read_bytes: (a: number, b: number) => number; | ||
@@ -38,2 +37,3 @@ readonly acir_write_bytes: (a: number, b: number) => void; | ||
readonly build_info: () => number; | ||
readonly compile: (a: number) => number; | ||
readonly __wbindgen_export_0: (a: number) => number; | ||
@@ -40,0 +40,0 @@ readonly __wbindgen_export_1: (a: number, b: number, c: number) => number; |
@@ -118,10 +118,2 @@ import { read_file } from '@noir-lang/noir-source-resolver'; | ||
} | ||
/** | ||
* @param {any} args | ||
* @returns {any} | ||
*/ | ||
export function compile(args) { | ||
const ret = wasm.compile(addHeapObject(args)); | ||
return takeObject(ret); | ||
} | ||
@@ -183,2 +175,11 @@ function passArray8ToWasm0(arg, malloc) { | ||
/** | ||
* @param {any} args | ||
* @returns {any} | ||
*/ | ||
export function compile(args) { | ||
const ret = wasm.compile(addHeapObject(args)); | ||
return takeObject(ret); | ||
} | ||
function handleError(f, args) { | ||
@@ -226,2 +227,5 @@ try { | ||
imports.wbg = {}; | ||
imports.wbg.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
}; | ||
imports.wbg.__wbindgen_is_undefined = function(arg0) { | ||
@@ -235,5 +239,2 @@ const ret = getObject(arg0) === undefined; | ||
}; | ||
imports.wbg.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
}; | ||
imports.wbg.__wbindgen_string_new = function(arg0, arg1) { | ||
@@ -261,3 +262,3 @@ const ret = getStringFromWasm0(arg0, arg1); | ||
}; | ||
imports.wbg.__wbg_readfile_58551301e7bc72c4 = function() { return handleError(function (arg0, arg1, arg2) { | ||
imports.wbg.__wbg_readfile_865ff7b07c118548 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = read_file(getStringFromWasm0(arg1, arg2)); | ||
@@ -264,0 +265,0 @@ const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
9094089
4