@noir-lang/noir_wasm 0.24.0-ea9a834.nightly → 0.24.0-f988d02.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.
- package/dist/node/index_bg.wasm +0 -0
- package/dist/node/main.js +6 -1
- package/dist/node/main.js.map +1 -1
- package/dist/web/main.mjs +7 -2
- package/dist/web/main.mjs.map +1 -1
- package/package.json +2 -2
package/dist/node/index_bg.wasm
CHANGED
|
Binary file
|
package/dist/node/main.js
CHANGED
|
@@ -1415,7 +1415,12 @@ class Package {
|
|
|
1415
1415
|
return Promise.all(handles
|
|
1416
1416
|
.filter((handle) => SOURCE_EXTENSIONS.find((ext) => handle.endsWith(ext)))
|
|
1417
1417
|
.map(async (file) => {
|
|
1418
|
-
|
|
1418
|
+
// Github deps are directly added to the file manager, which causes them to be missing the absolute path to the source file
|
|
1419
|
+
// and only include the extraction directory relative to the fm root directory
|
|
1420
|
+
// This regexp ensures we remove the "real" source path for all dependencies, providing the compiler with what it expects for each source file:
|
|
1421
|
+
// <absoluteSourcePath> -> <sourceAsString> for bin/contract packages
|
|
1422
|
+
// <depAlias/relativePathToSource> -> <sourceAsString> for libs
|
|
1423
|
+
const suffix = file.replace(new RegExp(`.*${this.#srcPath}`), '');
|
|
1419
1424
|
return {
|
|
1420
1425
|
path: this.getType() === 'lib' ? `${alias ? alias : this.#config.package.name}${suffix}` : file,
|
|
1421
1426
|
source: (await fm.readFile(file, 'utf-8')).toString(),
|