@noir-lang/noir_js 1.0.0-beta.14-8d78787.nightly → 1.0.0-beta.14-28406cd.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.
|
@@ -62,7 +62,7 @@ async function generateWitness(compiledProgram, inputs, foreignCallHandler = def
|
|
|
62
62
|
return solvedWitness;
|
|
63
63
|
}
|
|
64
64
|
catch (err) {
|
|
65
|
-
// Typescript types
|
|
65
|
+
// Typescript types caught errors as unknown or any, so we need to narrow its type to check if it has raw assertion payload.
|
|
66
66
|
if (typeof err === 'object' && err !== null && 'rawAssertionPayload' in err) {
|
|
67
67
|
throw enrichExecutionError(compiledProgram, err);
|
|
68
68
|
}
|
|
@@ -59,7 +59,7 @@ export async function generateWitness(compiledProgram, inputs, foreignCallHandle
|
|
|
59
59
|
return solvedWitness;
|
|
60
60
|
}
|
|
61
61
|
catch (err) {
|
|
62
|
-
// Typescript types
|
|
62
|
+
// Typescript types caught errors as unknown or any, so we need to narrow its type to check if it has raw assertion payload.
|
|
63
63
|
if (typeof err === 'object' && err !== null && 'rawAssertionPayload' in err) {
|
|
64
64
|
throw enrichExecutionError(compiledProgram, err);
|
|
65
65
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"contributors": [
|
|
4
4
|
"The Noir Team <team@noir-lang.org>"
|
|
5
5
|
],
|
|
6
|
-
"version": "1.0.0-beta.14-
|
|
6
|
+
"version": "1.0.0-beta.14-28406cd.nightly",
|
|
7
7
|
"packageManager": "yarn@4.5.2",
|
|
8
8
|
"license": "(MIT OR Apache-2.0)",
|
|
9
9
|
"type": "module",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"url": "https://github.com/noir-lang/noir/issues"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@noir-lang/acvm_js": "1.0.0-beta.14-
|
|
21
|
-
"@noir-lang/noirc_abi": "1.0.0-beta.14-
|
|
22
|
-
"@noir-lang/types": "1.0.0-beta.14-
|
|
20
|
+
"@noir-lang/acvm_js": "1.0.0-beta.14-28406cd.nightly",
|
|
21
|
+
"@noir-lang/noirc_abi": "1.0.0-beta.14-28406cd.nightly",
|
|
22
|
+
"@noir-lang/types": "1.0.0-beta.14-28406cd.nightly",
|
|
23
23
|
"pako": "^2.1.0"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|