@typeberry/convert 0.1.2-60899f7 → 0.1.2-7ebe1f6

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.
Files changed (3) hide show
  1. package/index.js +24 -19
  2. package/index.js.map +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -4477,7 +4477,7 @@ function assert (t, m) {
4477
4477
 
4478
4478
  /***/ }),
4479
4479
 
4480
- /***/ 786:
4480
+ /***/ 405:
4481
4481
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
4482
4482
 
4483
4483
  module.exports = __nccwpck_require__.p + "6b655f8772c01b768329.js?bandersnatch_bg.wasm";
@@ -4605,6 +4605,8 @@ module.exports = __nccwpck_require__.p + "ccf8ada94096a8f232f5.js?reed_solomon_w
4605
4605
  /************************************************************************/
4606
4606
  var __webpack_exports__ = {};
4607
4607
 
4608
+ ;// CONCATENATED MODULE: external "node:url"
4609
+ const external_node_url_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:url");
4608
4610
  ;// CONCATENATED MODULE: ./packages/core/logger/options.ts
4609
4611
  var Level;
4610
4612
  (function (Level) {
@@ -7597,7 +7599,7 @@ async function __wbg_init$2(module_or_path) {
7597
7599
  if (wasm$2 !== void 0) return wasm$2;
7598
7600
  if (typeof module_or_path !== "undefined") if (Object.getPrototypeOf(module_or_path) === Object.prototype) ({module_or_path} = module_or_path);
7599
7601
  else console.warn("using deprecated parameters for the initialization function; pass a single object instead");
7600
- if (typeof module_or_path === "undefined") module_or_path = new URL(/* asset import */ __nccwpck_require__(786), __nccwpck_require__.b);
7602
+ if (typeof module_or_path === "undefined") module_or_path = new URL(/* asset import */ __nccwpck_require__(405), __nccwpck_require__.b);
7601
7603
  const imports = __wbg_get_imports$2();
7602
7604
  if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) module_or_path = fetch(module_or_path);
7603
7605
  __wbg_init_memory$2(imports);
@@ -27421,23 +27423,26 @@ function loadAndProcessDataFile(file, withRelPath, flavor, decodeType, process)
27421
27423
 
27422
27424
 
27423
27425
 
27424
- Logger.configureAll(process.env.JAM_LOG ?? "", Level.LOG);
27425
- const withRelPath = workspacePathFix(`${import.meta.dirname}/../..`);
27426
- let args;
27427
- try {
27428
- args = parseArgs(process.argv.slice(2), withRelPath);
27429
- }
27430
- catch (e) {
27431
- console.error(`\n${e}\n`);
27432
- console.info(HELP);
27433
- process.exit(1);
27434
- }
27435
- try {
27436
- main(args, withRelPath);
27437
- }
27438
- catch (e) {
27439
- console.error(`${e}`);
27440
- process.exit(-1);
27426
+
27427
+ if (import.meta.url === (0,external_node_url_namespaceObject.pathToFileURL)(process.argv[1]).href) {
27428
+ Logger.configureAll(process.env.JAM_LOG ?? "", Level.LOG);
27429
+ const withRelPath = workspacePathFix(`${import.meta.dirname}/../..`);
27430
+ let args;
27431
+ try {
27432
+ args = parseArgs(process.argv.slice(2), withRelPath);
27433
+ }
27434
+ catch (e) {
27435
+ console.error(`\n${e}\n`);
27436
+ console.info(HELP);
27437
+ process.exit(1);
27438
+ }
27439
+ try {
27440
+ main(args, withRelPath);
27441
+ }
27442
+ catch (e) {
27443
+ console.error(`${e}`);
27444
+ process.exit(-1);
27445
+ }
27441
27446
  }
27442
27447
 
27443
27448