@pezkuwi/typegen 16.5.10 → 16.5.11

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/cjs/fromChain.js CHANGED
@@ -16,7 +16,7 @@ async function generate(metaHex, pkg, output, isStrict) {
16
16
  let customLookupDefinitions = { rpc: {}, types: {} };
17
17
  if (pkg) {
18
18
  try {
19
- const defCont = await Promise.resolve(`${(0, index_js_2.assertFile)(node_path_1.default.join(outputPath, 'definitions.ts'))}`).then(s => tslib_1.__importStar(require(s)));
19
+ const defCont = await import((0, index_js_2.assertFile)(node_path_1.default.join(outputPath, 'definitions.ts')));
20
20
  extraTypes = {
21
21
  [pkg]: defCont
22
22
  };
@@ -26,7 +26,7 @@ async function generate(metaHex, pkg, output, isStrict) {
26
26
  }
27
27
  }
28
28
  try {
29
- const lookCont = await Promise.resolve(`${(0, index_js_2.assertFile)(node_path_1.default.join(outputPath, 'lookup.ts'))}`).then(s => tslib_1.__importStar(require(s)));
29
+ const lookCont = await import((0, index_js_2.assertFile)(node_path_1.default.join(outputPath, 'lookup.ts')));
30
30
  customLookupDefinitions = {
31
31
  rpc: {},
32
32
  types: lookCont.default
package/cjs/fromDefs.js CHANGED
@@ -32,7 +32,7 @@ async function mainPromise() {
32
32
  const inputPath = (0, index_js_2.assertDir)(node_path_1.default.join(process.cwd(), input));
33
33
  let userDefs = {};
34
34
  try {
35
- const defCont = await Promise.resolve(`${(0, index_js_2.assertFile)(node_path_1.default.join(inputPath, 'definitions.ts'))}`).then(s => tslib_1.__importStar(require(s)));
35
+ const defCont = await import((0, index_js_2.assertFile)(node_path_1.default.join(inputPath, 'definitions.ts')));
36
36
  userDefs = defCont;
37
37
  }
38
38
  catch (error) {
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@pezkuwi/typegen', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '16.5.10' };
4
+ exports.packageInfo = { name: '@pezkuwi/typegen', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '16.5.11' };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "16.5.10",
21
+ "version": "16.5.11",
22
22
  "bin": {
23
23
  "pezkuwi-types-chain-info": "./scripts/pezkuwi-types-chain-info.mjs",
24
24
  "pezkuwi-types-from-chain": "./scripts/pezkuwi-types-from-chain.mjs",
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@pezkuwi/typegen', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '16.5.10' };
1
+ export const packageInfo = { name: '@pezkuwi/typegen', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '16.5.11' };