New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@noir-lang/noir_wasm

Package Overview
Dependencies
Maintainers
1
Versions
413
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.18.0 to 0.19.0

2

nodejs/noir_wasm_bg.wasm.d.ts

@@ -6,5 +6,5 @@ /* tslint:disable */

export function acir_write_bytes(a: number, b: number): void;
export function compile(a: number, b: number, c: number, d: number, e: number): void;
export function init_log_level(a: number, b: number): void;
export function build_info(): number;
export function compile(a: number, b: number, c: number, d: number, e: number): void;
export function __wbindgen_export_0(a: number): number;

@@ -11,0 +11,0 @@ export function __wbindgen_export_1(a: number, b: number, c: number): number;

@@ -14,9 +14,2 @@ /* tslint:disable */

/**
* @param {string} entry_point
* @param {boolean | undefined} contracts
* @param {DependencyGraph | undefined} dependency_graph
* @returns {any}
*/
export function compile(entry_point: string, contracts?: boolean, dependency_graph?: DependencyGraph): any;
/**
* @param {string} level

@@ -29,2 +22,9 @@ */

export function build_info(): any;
/**
* @param {string} entry_point
* @param {boolean | undefined} contracts
* @param {DependencyGraph | undefined} dependency_graph
* @returns {CompileResult}
*/
export function compile(entry_point: string, contracts?: boolean, dependency_graph?: DependencyGraph): CompileResult;

@@ -53,2 +53,34 @@ export type Diagnostic = {

export type CompiledContract = {
noir_version: string;
name: string;
backend: string;
functions: Array<any>;
events: Array<any>;
};
export type CompiledProgram = {
noir_version: string;
backend: string;
abi: any;
bytecode: string;
}
export type DebugArtifact = {
debug_symbols: Array<any>;
file_map: Record<number, any>;
warnings: Array<any>;
};
export type CompileResult = (
| {
contract: CompiledContract;
debug: DebugArtifact;
}
| {
program: CompiledProgram;
debug: DebugArtifact;
}
);

@@ -227,6 +227,23 @@ let imports = {};

/**
* @param {string} level
*/
module.exports.init_log_level = function(level) {
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len0 = WASM_VECTOR_LEN;
wasm.init_log_level(ptr0, len0);
};
/**
* @returns {any}
*/
module.exports.build_info = function() {
const ret = wasm.build_info();
return takeObject(ret);
};
/**
* @param {string} entry_point
* @param {boolean | undefined} contracts
* @param {DependencyGraph | undefined} dependency_graph
* @returns {any}
* @returns {CompileResult}
*/

@@ -258,19 +275,3 @@ module.exports.compile = function(entry_point, contracts, dependency_graph) {

}
/**
* @param {string} level
*/
module.exports.init_log_level = function(level) {
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len0 = WASM_VECTOR_LEN;
wasm.init_log_level(ptr0, len0);
};
/**
* @returns {any}
*/
module.exports.build_info = function() {
const ret = wasm.build_info();
return takeObject(ret);
};
module.exports.__wbindgen_object_drop_ref = function(arg0) {

@@ -280,3 +281,3 @@ takeObject(arg0);

module.exports.__wbg_constructor_bc58db5a3b38f16c = function(arg0) {
module.exports.__wbg_constructor_a05e4567b1c1452b = function(arg0) {
const ret = new Error(takeObject(arg0));

@@ -291,3 +292,8 @@ return addHeapObject(ret);

module.exports.__wbg_readfile_a8c4f775fbe0578e = function() { return handleError(function (arg0, arg1, arg2) {
module.exports.__wbg_constructor_9c5f4f842ec83850 = function() {
const ret = new Object();
return addHeapObject(ret);
};
module.exports.__wbg_readfile_08e66a751b1deb08 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = read_file(getStringFromWasm0(arg1, arg2));

@@ -294,0 +300,0 @@ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);

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

],
"version": "0.18.0",
"version": "0.19.0",
"license": "(MIT OR Apache-2.0)",

@@ -35,3 +35,3 @@ "main": "./nodejs/noir_wasm.js",

"peerDependencies": {
"@noir-lang/source-resolver": "0.18.0"
"@noir-lang/source-resolver": "0.19.0"
},

@@ -38,0 +38,0 @@ "devDependencies": {

@@ -6,5 +6,5 @@ /* tslint:disable */

export function acir_write_bytes(a: number, b: number): void;
export function compile(a: number, b: number, c: number, d: number, e: number): void;
export function init_log_level(a: number, b: number): void;
export function build_info(): number;
export function compile(a: number, b: number, c: number, d: number, e: number): void;
export function __wbindgen_export_0(a: number): number;

@@ -11,0 +11,0 @@ export function __wbindgen_export_1(a: number, b: number, c: number): number;

@@ -14,9 +14,2 @@ /* tslint:disable */

/**
* @param {string} entry_point
* @param {boolean | undefined} contracts
* @param {DependencyGraph | undefined} dependency_graph
* @returns {any}
*/
export function compile(entry_point: string, contracts?: boolean, dependency_graph?: DependencyGraph): any;
/**
* @param {string} level

@@ -29,2 +22,9 @@ */

export function build_info(): any;
/**
* @param {string} entry_point
* @param {boolean | undefined} contracts
* @param {DependencyGraph | undefined} dependency_graph
* @returns {CompileResult}
*/
export function compile(entry_point: string, contracts?: boolean, dependency_graph?: DependencyGraph): CompileResult;

@@ -53,4 +53,36 @@ export type Diagnostic = {

export type CompiledContract = {
noir_version: string;
name: string;
backend: string;
functions: Array<any>;
events: Array<any>;
};
export type CompiledProgram = {
noir_version: string;
backend: string;
abi: any;
bytecode: string;
}
export type DebugArtifact = {
debug_symbols: Array<any>;
file_map: Record<number, any>;
warnings: Array<any>;
};
export type CompileResult = (
| {
contract: CompiledContract;
debug: DebugArtifact;
}
| {
program: CompiledProgram;
debug: DebugArtifact;
}
);
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;

@@ -62,5 +94,5 @@

readonly acir_write_bytes: (a: number, b: number) => void;
readonly compile: (a: number, b: number, c: number, d: number, e: number) => void;
readonly init_log_level: (a: number, b: number) => void;
readonly build_info: () => number;
readonly compile: (a: number, b: number, c: number, d: number, e: number) => void;
readonly __wbindgen_export_0: (a: number) => number;

@@ -67,0 +99,0 @@ readonly __wbindgen_export_1: (a: number, b: number, c: number) => number;

@@ -225,6 +225,23 @@ import { read_file } from '@noir-lang/source-resolver';

/**
* @param {string} level
*/
export function init_log_level(level) {
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len0 = WASM_VECTOR_LEN;
wasm.init_log_level(ptr0, len0);
}
/**
* @returns {any}
*/
export function build_info() {
const ret = wasm.build_info();
return takeObject(ret);
}
/**
* @param {string} entry_point
* @param {boolean | undefined} contracts
* @param {DependencyGraph | undefined} dependency_graph
* @returns {any}
* @returns {CompileResult}
*/

@@ -256,19 +273,3 @@ export function compile(entry_point, contracts, dependency_graph) {

}
/**
* @param {string} level
*/
export function init_log_level(level) {
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len0 = WASM_VECTOR_LEN;
wasm.init_log_level(ptr0, len0);
}
/**
* @returns {any}
*/
export function build_info() {
const ret = wasm.build_info();
return takeObject(ret);
}
async function __wbg_load(module, imports) {

@@ -311,3 +312,3 @@ if (typeof Response === 'function' && module instanceof Response) {

};
imports.wbg.__wbg_constructor_bc58db5a3b38f16c = function(arg0) {
imports.wbg.__wbg_constructor_a05e4567b1c1452b = function(arg0) {
const ret = new Error(takeObject(arg0));

@@ -320,3 +321,7 @@ return addHeapObject(ret);

};
imports.wbg.__wbg_readfile_a8c4f775fbe0578e = function() { return handleError(function (arg0, arg1, arg2) {
imports.wbg.__wbg_constructor_9c5f4f842ec83850 = function() {
const ret = new Object();
return addHeapObject(ret);
};
imports.wbg.__wbg_readfile_08e66a751b1deb08 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = read_file(getStringFromWasm0(arg1, arg2));

@@ -323,0 +328,0 @@ const ptr1 = 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

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