innetjs 2.2.7 → 2.2.8
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/bin/innet
CHANGED
|
@@ -68,7 +68,7 @@ var typescript__default = /*#__PURE__*/_interopDefaultLegacy(typescript);
|
|
|
68
68
|
var tmp__default = /*#__PURE__*/_interopDefaultLegacy(tmp);
|
|
69
69
|
|
|
70
70
|
(function() {
|
|
71
|
-
const env = {"INNETJS_INNETJS_PACKAGE_VERSION":"2.2.
|
|
71
|
+
const env = {"INNETJS_INNETJS_PACKAGE_VERSION":"2.2.8"};
|
|
72
72
|
try {
|
|
73
73
|
if (process) {
|
|
74
74
|
process.env = Object.assign({}, process.env);
|
|
@@ -525,9 +525,7 @@ class InnetJS {
|
|
|
525
525
|
const ext = format === 'es'
|
|
526
526
|
? ((_a = (pkg.module || pkg.esnext || pkg['jsnext:main'])) === null || _a === void 0 ? void 0 : _a.replace('index', '')) || '.mjs'
|
|
527
527
|
: ((_b = pkg.main) === null || _b === void 0 ? void 0 : _b.replace('index', '')) || '.js';
|
|
528
|
-
const
|
|
529
|
-
const otherFiles = scriptExtensions.map(ext => `src/**/index.${ext}`).join(',');
|
|
530
|
-
const input = glob__default["default"].sync(`{${indexFiles},${otherFiles}}`);
|
|
528
|
+
const input = glob__default["default"].sync(`src/${index}.{${indexExt}}`);
|
|
531
529
|
if (!input.length) {
|
|
532
530
|
throw Error('index file is not detected');
|
|
533
531
|
}
|
package/index.js
CHANGED
|
@@ -403,9 +403,7 @@ class InnetJS {
|
|
|
403
403
|
const ext = format === 'es'
|
|
404
404
|
? ((_a = (pkg.module || pkg.esnext || pkg['jsnext:main'])) === null || _a === void 0 ? void 0 : _a.replace('index', '')) || '.mjs'
|
|
405
405
|
: ((_b = pkg.main) === null || _b === void 0 ? void 0 : _b.replace('index', '')) || '.js';
|
|
406
|
-
const
|
|
407
|
-
const otherFiles = scriptExtensions.map(ext => `src/**/index.${ext}`).join(',');
|
|
408
|
-
const input = glob__default["default"].sync(`{${indexFiles},${otherFiles}}`);
|
|
406
|
+
const input = glob__default["default"].sync(`src/${index}.{${indexExt}}`);
|
|
409
407
|
if (!input.length) {
|
|
410
408
|
throw Error('index file is not detected');
|
|
411
409
|
}
|
package/index.mjs
CHANGED
|
@@ -369,9 +369,7 @@ class InnetJS {
|
|
|
369
369
|
const ext = format === 'es'
|
|
370
370
|
? ((_a = (pkg.module || pkg.esnext || pkg['jsnext:main'])) === null || _a === void 0 ? void 0 : _a.replace('index', '')) || '.mjs'
|
|
371
371
|
: ((_b = pkg.main) === null || _b === void 0 ? void 0 : _b.replace('index', '')) || '.js';
|
|
372
|
-
const
|
|
373
|
-
const otherFiles = scriptExtensions.map(ext => `src/**/index.${ext}`).join(',');
|
|
374
|
-
const input = glob.sync(`{${indexFiles},${otherFiles}}`);
|
|
372
|
+
const input = glob.sync(`src/${index}.{${indexExt}}`);
|
|
375
373
|
if (!input.length) {
|
|
376
374
|
throw Error('index file is not detected');
|
|
377
375
|
}
|