Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@noir-lang/noir_wasm

Package Overview
Dependencies
Maintainers
1
Versions
403
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@noir-lang/noir_wasm - npm Package Compare versions

Comparing version 0.12.0 to 0.16.0

CHANGELOG.md

8

nodejs/noir_wasm_bg.wasm.d.ts
/* tslint:disable */
/* eslint-disable */
export const memory: WebAssembly.Memory;
export function compile(a: number): number;
export function init_log_level(a: number, b: number): void;

@@ -8,9 +9,6 @@ export function build_info(): number;

export function acir_write_bytes(a: number, b: number): void;
export function compile(a: number): number;
export function __wbg_trap_free(a: number): void;
export function trap___wbgd_downcast_token(): number;
export function __wbindgen_export_0(a: number): number;
export function __wbindgen_export_1(a: number, b: number, c: number): number;
export function __wbindgen_export_2(a: number): void;
export function __wbindgen_add_to_stack_pointer(a: number): number;
export function __wbindgen_export_2(a: number, b: number): void;
export function __wbindgen_export_3(a: number): void;
export function __wbindgen_export_3(a: number, b: number): void;
/* tslint:disable */
/* eslint-disable */
/**
* @param {any} args
* @returns {any}
*/
export function compile(args: any): any;
/**
* @param {string} level

@@ -21,16 +26,1 @@ */

export function acir_write_bytes(acir: any): Uint8Array;
/**
* @param {any} args
* @returns {any}
*/
export function compile(args: any): any;
/**
* A struct representing a Trap
*/
export class Trap {
free(): void;
/**
* @returns {Symbol}
*/
static __wbgd_downcast_token(): Symbol;
}

@@ -122,2 +122,18 @@ let imports = {};

/**
* @param {any} args
* @returns {any}
*/
module.exports.compile = function(args) {
const ret = wasm.compile(addHeapObject(args));
return takeObject(ret);
};
function handleError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
wasm.__wbindgen_export_2(addHeapObject(e));
}
}
/**
* @param {string} level

@@ -171,3 +187,3 @@ */

var v1 = getArrayU8FromWasm0(r0, r1).slice();
wasm.__wbindgen_export_2(r0, r1 * 1);
wasm.__wbindgen_export_3(r0, r1 * 1);
return v1;

@@ -179,48 +195,2 @@ } finally {

/**
* @param {any} args
* @returns {any}
*/
module.exports.compile = function(args) {
const ret = wasm.compile(addHeapObject(args));
return takeObject(ret);
};
function handleError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
wasm.__wbindgen_export_3(addHeapObject(e));
}
}
/**
* A struct representing a Trap
*/
class Trap {
__destroy_into_raw() {
const ptr = this.__wbg_ptr;
this.__wbg_ptr = 0;
return ptr;
}
free() {
const ptr = this.__destroy_into_raw();
wasm.__wbg_trap_free(ptr);
}
/**
* @returns {Symbol}
*/
static __wbgd_downcast_token() {
const ret = wasm.trap___wbgd_downcast_token();
return takeObject(ret);
}
}
module.exports.Trap = Trap;
module.exports.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
module.exports.__wbindgen_is_undefined = function(arg0) {

@@ -236,2 +206,14 @@ const ret = getObject(arg0) === undefined;

module.exports.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
module.exports.__wbg_readfile_0c1777c7c5aa8c92 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = read_file(getStringFromWasm0(arg1, arg2));
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
}, arguments) };
module.exports.__wbindgen_string_new = function(arg0, arg1) {

@@ -263,38 +245,6 @@ const ret = getStringFromWasm0(arg0, arg1);

} finally {
wasm.__wbindgen_export_2(deferred0_0, deferred0_1);
wasm.__wbindgen_export_3(deferred0_0, deferred0_1);
}
};
module.exports.__wbg_readfile_8efacfffd6a3a749 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = read_file(getStringFromWasm0(arg1, arg2));
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
}, arguments) };
module.exports.__wbindgen_object_clone_ref = function(arg0) {
const ret = getObject(arg0);
return addHeapObject(ret);
};
module.exports.__wbindgen_string_get = function(arg0, arg1) {
const obj = getObject(arg1);
const ret = typeof(obj) === 'string' ? obj : undefined;
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
var len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
module.exports.__wbg_static_accessor_SYMBOL_45d4d15e3c4aeb33 = function() {
const ret = Symbol;
return addHeapObject(ret);
};
module.exports.__wbindgen_is_symbol = function(arg0) {
const ret = typeof(getObject(arg0)) === 'symbol';
return ret;
};
module.exports.__wbg_debug_efabe4eb183aa5d4 = function(arg0, arg1, arg2, arg3) {

@@ -324,6 +274,10 @@ console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));

module.exports.__wbg_call_557a2f2deacc4912 = function() { return handleError(function (arg0, arg1) {
const ret = getObject(arg0).call(getObject(arg1));
return addHeapObject(ret);
}, arguments) };
module.exports.__wbindgen_string_get = function(arg0, arg1) {
const obj = getObject(arg1);
const ret = typeof(obj) === 'string' ? obj : undefined;
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
var len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};

@@ -330,0 +284,0 @@ module.exports.__wbg_parse_76a8a18ca3f8730b = function() { return handleError(function (arg0, arg1) {

@@ -6,3 +6,3 @@ {

],
"version": "0.12.0",
"version": "0.16.0",
"license": "(MIT OR Apache-2.0)",

@@ -26,6 +26,9 @@ "main": "./nodejs/noir_wasm.js",

"test:node": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha",
"test:browser": "web-test-runner"
"test:browser": "web-test-runner",
"clean": "chmod u+w web nodejs || true && rm -rf ./nodejs ./web ./target ./result",
"publish": "yarn npm publish",
"lint": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0"
},
"peerDependencies": {
"@noir-lang/source-resolver": "workspace:*"
"@noir-lang/source-resolver": "0.16.0"
},

@@ -40,2 +43,2 @@ "devDependencies": {

}
}
}

@@ -12,3 +12,3 @@ # Noir Lang WASM JavaScript Package

```bash
nix build -L github:noir-lang/noir/master#wasm
nix build -L github:noir-lang/noir/master#noir_wasm
```

@@ -19,3 +19,3 @@

```bash
nix build -L #wasm
nix build -L #noir_wasm
```
/* tslint:disable */
/* eslint-disable */
export const memory: WebAssembly.Memory;
export function compile(a: number): number;
export function init_log_level(a: number, b: number): void;

@@ -8,9 +9,6 @@ export function build_info(): number;

export function acir_write_bytes(a: number, b: number): void;
export function compile(a: number): number;
export function __wbg_trap_free(a: number): void;
export function trap___wbgd_downcast_token(): number;
export function __wbindgen_export_0(a: number): number;
export function __wbindgen_export_1(a: number, b: number, c: number): number;
export function __wbindgen_export_2(a: number): void;
export function __wbindgen_add_to_stack_pointer(a: number): number;
export function __wbindgen_export_2(a: number, b: number): void;
export function __wbindgen_export_3(a: number): void;
export function __wbindgen_export_3(a: number, b: number): void;
/* tslint:disable */
/* eslint-disable */
/**
* @param {any} args
* @returns {any}
*/
export function compile(args: any): any;
/**
* @param {string} level

@@ -21,17 +26,2 @@ */

export function acir_write_bytes(acir: any): Uint8Array;
/**
* @param {any} args
* @returns {any}
*/
export function compile(args: any): any;
/**
* A struct representing a Trap
*/
export class Trap {
free(): void;
/**
* @returns {Symbol}
*/
static __wbgd_downcast_token(): Symbol;
}

@@ -42,2 +32,3 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;

readonly memory: WebAssembly.Memory;
readonly compile: (a: number) => number;
readonly init_log_level: (a: number, b: number) => void;

@@ -47,10 +38,7 @@ readonly build_info: () => number;

readonly acir_write_bytes: (a: number, b: number) => void;
readonly compile: (a: number) => number;
readonly __wbg_trap_free: (a: number) => void;
readonly trap___wbgd_downcast_token: () => number;
readonly __wbindgen_export_0: (a: number) => number;
readonly __wbindgen_export_1: (a: number, b: number, c: number) => number;
readonly __wbindgen_export_2: (a: number) => void;
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
readonly __wbindgen_export_2: (a: number, b: number) => void;
readonly __wbindgen_export_3: (a: number) => void;
readonly __wbindgen_export_3: (a: number, b: number) => void;
}

@@ -57,0 +45,0 @@

@@ -120,2 +120,18 @@ import { read_file } from '@noir-lang/source-resolver';

/**
* @param {any} args
* @returns {any}
*/
export function compile(args) {
const ret = wasm.compile(addHeapObject(args));
return takeObject(ret);
}
function handleError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
wasm.__wbindgen_export_2(addHeapObject(e));
}
}
/**
* @param {string} level

@@ -169,3 +185,3 @@ */

var v1 = getArrayU8FromWasm0(r0, r1).slice();
wasm.__wbindgen_export_2(r0, r1 * 1);
wasm.__wbindgen_export_3(r0, r1 * 1);
return v1;

@@ -177,43 +193,2 @@ } finally {

/**
* @param {any} args
* @returns {any}
*/
export function compile(args) {
const ret = wasm.compile(addHeapObject(args));
return takeObject(ret);
}
function handleError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
wasm.__wbindgen_export_3(addHeapObject(e));
}
}
/**
* A struct representing a Trap
*/
export class Trap {
__destroy_into_raw() {
const ptr = this.__wbg_ptr;
this.__wbg_ptr = 0;
return ptr;
}
free() {
const ptr = this.__destroy_into_raw();
wasm.__wbg_trap_free(ptr);
}
/**
* @returns {Symbol}
*/
static __wbgd_downcast_token() {
const ret = wasm.trap___wbgd_downcast_token();
return takeObject(ret);
}
}
async function __wbg_load(module, imports) {

@@ -253,5 +228,2 @@ if (typeof Response === 'function' && module instanceof Response) {

imports.wbg = {};
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
imports.wbg.__wbindgen_is_undefined = function(arg0) {

@@ -265,2 +237,12 @@ const ret = getObject(arg0) === undefined;

};
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
imports.wbg.__wbg_readfile_0c1777c7c5aa8c92 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = read_file(getStringFromWasm0(arg1, arg2));
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
}, arguments) };
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {

@@ -289,32 +271,5 @@ const ret = getStringFromWasm0(arg0, arg1);

} finally {
wasm.__wbindgen_export_2(deferred0_0, deferred0_1);
wasm.__wbindgen_export_3(deferred0_0, deferred0_1);
}
};
imports.wbg.__wbg_readfile_8efacfffd6a3a749 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = read_file(getStringFromWasm0(arg1, arg2));
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
}, arguments) };
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
const ret = getObject(arg0);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
const obj = getObject(arg1);
const ret = typeof(obj) === 'string' ? obj : undefined;
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
var len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbg_static_accessor_SYMBOL_45d4d15e3c4aeb33 = function() {
const ret = Symbol;
return addHeapObject(ret);
};
imports.wbg.__wbindgen_is_symbol = function(arg0) {
const ret = typeof(getObject(arg0)) === 'symbol';
return ret;
};
imports.wbg.__wbg_debug_efabe4eb183aa5d4 = function(arg0, arg1, arg2, arg3) {

@@ -338,6 +293,10 @@ console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));

};
imports.wbg.__wbg_call_557a2f2deacc4912 = function() { return handleError(function (arg0, arg1) {
const ret = getObject(arg0).call(getObject(arg1));
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
const obj = getObject(arg1);
const ret = typeof(obj) === 'string' ? obj : undefined;
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
var len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbg_parse_76a8a18ca3f8730b = function() { return handleError(function (arg0, arg1) {

@@ -344,0 +303,0 @@ const ret = JSON.parse(getStringFromWasm0(arg0, arg1));

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc