@pezkuwi/typegen 16.5.9 → 16.5.10
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 +2 -2
- package/cjs/fromDefs.js +1 -1
- package/cjs/packageInfo.js +1 -1
- package/package.json +2 -2
- package/packageInfo.js +1 -1
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
|
|
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)));
|
|
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
|
|
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)));
|
|
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
|
|
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)));
|
|
36
36
|
userDefs = defCont;
|
|
37
37
|
}
|
|
38
38
|
catch (error) {
|
package/cjs/packageInfo.js
CHANGED
|
@@ -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.
|
|
4
|
+
exports.packageInfo = { name: '@pezkuwi/typegen', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '16.5.10' };
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"./cjs/packageDetect.js"
|
|
19
19
|
],
|
|
20
20
|
"type": "module",
|
|
21
|
-
"version": "16.5.
|
|
21
|
+
"version": "16.5.10",
|
|
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",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"pezkuwi-types-internal-interfaces": "./scripts/pezkuwi-types-internal-interfaces.mjs",
|
|
27
27
|
"pezkuwi-types-internal-metadata": "./scripts/pezkuwi-types-internal-metadata.mjs"
|
|
28
28
|
},
|
|
29
|
-
"main": "./cjs/
|
|
29
|
+
"main": "./cjs/index.js",
|
|
30
30
|
"module": "./cjs/index.js",
|
|
31
31
|
"types": "./cjs/index.d.ts",
|
|
32
32
|
"exports": {
|
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.
|
|
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' };
|