@noir-lang/noir_wasm 1.0.0-beta.3-7000792.nightly → 1.0.0-beta.4-17958e3.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.
@@ -1,12 +1,12 @@
1
1
  export function compile_program(entry_point: string, dependency_graph: DependencyGraph | null | undefined, file_source_map: PathToFileSourceMap): ProgramCompileResult;
2
2
  export function compile_contract(entry_point: string, dependency_graph: DependencyGraph | null | undefined, file_source_map: PathToFileSourceMap): ContractCompileResult;
3
- export function init_log_level(level: string): void;
4
- export function build_info(): any;
5
3
  export function compile_program_(entry_point: string, dependency_graph: DependencyGraph | null | undefined, file_source_map: PathToFileSourceMap): ProgramCompileResult;
6
4
  export function compile_contract_(entry_point: string, dependency_graph: DependencyGraph | null | undefined, file_source_map: PathToFileSourceMap): ContractCompileResult;
7
- export function __wbg_constructor_84b51f8183439483(): Object;
8
- export function __wbg_constructor_a70e1aaea07e80fd(): Object;
9
- export function __wbg_constructor_dcd6c3e173d3b88b(arg0: any): Error;
5
+ export function init_log_level(level: string): void;
6
+ export function build_info(): any;
7
+ export function __wbg_constructor_0ff2131ceea4cfb0(arg0: any): Error;
8
+ export function __wbg_constructor_239bf9e0fa000b32(): Object;
9
+ export function __wbg_constructor_b023a49b9a95d90c(): Object;
10
10
  export function __wbg_debug_3cb59063b29f58c1(arg0: any): void;
11
11
  export function __wbg_debug_e17b51583ca6a632(arg0: any, arg1: any, arg2: any, arg3: any): void;
12
12
  export function __wbg_error_524f506f44df1645(arg0: any): void;
@@ -12,14 +12,6 @@ export function compile_program(entry_point: string, dependency_graph: Dependenc
12
12
  * @returns {ContractCompileResult}
13
13
  */
14
14
  export function compile_contract(entry_point: string, dependency_graph: DependencyGraph | null | undefined, file_source_map: PathToFileSourceMap): ContractCompileResult;
15
- /**
16
- * @param {string} level
17
- */
18
- export function init_log_level(level: string): void;
19
- /**
20
- * @returns {any}
21
- */
22
- export function build_info(): any;
23
15
  /**
24
16
  * This is a method that exposes the same API as `compile`
25
17
  * But uses the Context based APi internally
@@ -38,6 +30,14 @@ export function compile_program_(entry_point: string, dependency_graph: Dependen
38
30
  * @returns {ContractCompileResult}
39
31
  */
40
32
  export function compile_contract_(entry_point: string, dependency_graph: DependencyGraph | null | undefined, file_source_map: PathToFileSourceMap): ContractCompileResult;
33
+ /**
34
+ * @param {string} level
35
+ */
36
+ export function init_log_level(level: string): void;
37
+ /**
38
+ * @returns {any}
39
+ */
40
+ export function build_info(): any;
41
41
  /**
42
42
  * This is a wrapper class that is wasm-bindgen compatible
43
43
  * We do not use js_name and rename it like CrateId because
@@ -26,7 +26,25 @@ export declare class Package {
26
26
  /**
27
27
  * Gets this package's Nargo.toml (NoirPackage)Config.
28
28
  */
29
- getPackageConfig(): import("../types/noir_package_config").PackageConfig;
29
+ getPackageConfig(): {
30
+ package: {
31
+ name: string;
32
+ type: "lib" | "contract" | "bin";
33
+ entry?: string;
34
+ description?: string;
35
+ authors?: string[];
36
+ compiler_version
37
+ /**
38
+ * The source path, taking into account modules and aliases. Eg: mylib/mod/mysource.nr
39
+ */
40
+ ? /**
41
+ * The source path, taking into account modules and aliases. Eg: mylib/mod/mysource.nr
42
+ */: string;
43
+ backend?: string;
44
+ license?: string;
45
+ };
46
+ dependencies?: Record<string, import("../types/noir_package_config").GitDependencyConfig | import("../types/noir_package_config").LocalDependencyConfig>;
47
+ };
30
48
  /**
31
49
  * The path to the source directory.
32
50
  */
@@ -1,6 +1,6 @@
1
1
  declare namespace _default {
2
2
  let browsers: import("@web/test-runner-playwright").PlaywrightLauncher[];
3
- let plugins: import("@web/dev-server-esbuild/node_modules/@web/dev-server-core").Plugin[];
3
+ let plugins: any[];
4
4
  let files: string[];
5
5
  let nodeResolve: boolean;
6
6
  let rootDir: string;