@typeberry/jam 0.1.1-135f62f → 0.1.1-4a6ffa9
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/block-generator/index.js +29 -0
- package/block-generator/index.js.map +1 -1
- package/importer/index.js +45 -0
- package/importer/index.js.map +1 -1
- package/index.js +48 -7
- package/index.js.map +1 -1
- package/jam-network/index.js +29 -0
- package/jam-network/index.js.map +1 -1
- package/package.json +4 -2
package/jam-network/index.js
CHANGED
|
@@ -25425,6 +25425,34 @@ class WithDebug {
|
|
|
25425
25425
|
}
|
|
25426
25426
|
}
|
|
25427
25427
|
|
|
25428
|
+
;// CONCATENATED MODULE: ./packages/core/utils/dev.ts
|
|
25429
|
+
const dev_env = typeof process === "undefined" ? {} : process.env;
|
|
25430
|
+
/**
|
|
25431
|
+
* The function will produce relative path resolver that is adjusted
|
|
25432
|
+
* for package location within the workspace.
|
|
25433
|
+
*
|
|
25434
|
+
* Example:
|
|
25435
|
+
* $ npm start -w @typeberry/jam
|
|
25436
|
+
*
|
|
25437
|
+
* The above command will run `./bin/jam/index.js`, however we would
|
|
25438
|
+
* still want relative paths to be resolved according to top-level workspace
|
|
25439
|
+
* directory.
|
|
25440
|
+
*
|
|
25441
|
+
* So the caller, passes the absolute workspace path as argument and get's
|
|
25442
|
+
* a function that can properly resolve relative paths.
|
|
25443
|
+
*
|
|
25444
|
+
* NOTE: the translation happens only for development build! When
|
|
25445
|
+
* we build a single library from our project, we no longer mangle the paths.
|
|
25446
|
+
*/
|
|
25447
|
+
const workspacePathFix = dev_env.NODE_ENV === "development"
|
|
25448
|
+
? (workspacePath) => (p) => {
|
|
25449
|
+
if (p.startsWith("/")) {
|
|
25450
|
+
return p;
|
|
25451
|
+
}
|
|
25452
|
+
return `${workspacePath}/${p}`;
|
|
25453
|
+
}
|
|
25454
|
+
: () => (p) => p;
|
|
25455
|
+
|
|
25428
25456
|
;// CONCATENATED MODULE: ./packages/core/utils/opaque.ts
|
|
25429
25457
|
/**
|
|
25430
25458
|
* @fileoverview `Opaque<Type, Token>` constructs a unique type which is a subset of Type with a
|
|
@@ -25768,6 +25796,7 @@ function isResult(x) {
|
|
|
25768
25796
|
|
|
25769
25797
|
|
|
25770
25798
|
|
|
25799
|
+
|
|
25771
25800
|
;// CONCATENATED MODULE: ./packages/core/bytes/bitvec.ts
|
|
25772
25801
|
|
|
25773
25802
|
/**
|