@modern-js/upgrade 2.65.1 → 2.65.3
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/dist/index.js +99 -66
- package/package.json +7 -7
package/dist/index.js
CHANGED
@@ -8407,10 +8407,10 @@ var require_lodash2 = __commonJS({
|
|
8407
8407
|
}
|
8408
8408
|
});
|
8409
8409
|
|
8410
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
8410
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/logger/constants.js
|
8411
8411
|
var LoggerLevel;
|
8412
8412
|
var init_constants = __esm({
|
8413
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
8413
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/logger/constants.js"() {
|
8414
8414
|
"use strict";
|
8415
8415
|
(function(LoggerLevel2) {
|
8416
8416
|
LoggerLevel2["Error"] = "error";
|
@@ -9973,10 +9973,10 @@ var require_source = __commonJS({
|
|
9973
9973
|
}
|
9974
9974
|
});
|
9975
9975
|
|
9976
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
9976
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/chalk.js
|
9977
9977
|
var import_chalk;
|
9978
9978
|
var init_chalk = __esm({
|
9979
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
9979
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/chalk.js"() {
|
9980
9980
|
"use strict";
|
9981
9981
|
import_chalk = __toESM(require_source());
|
9982
9982
|
}
|
@@ -10621,10 +10621,10 @@ var require_src = __commonJS({
|
|
10621
10621
|
}
|
10622
10622
|
});
|
10623
10623
|
|
10624
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
10624
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/logger/index.js
|
10625
10625
|
var import_debug, Logger;
|
10626
10626
|
var init_logger = __esm({
|
10627
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
10627
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/logger/index.js"() {
|
10628
10628
|
"use strict";
|
10629
10629
|
init_chalk();
|
10630
10630
|
import_debug = __toESM(require_src());
|
@@ -13072,18 +13072,18 @@ var require_glob = __commonJS({
|
|
13072
13072
|
}
|
13073
13073
|
});
|
13074
13074
|
|
13075
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
13075
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/glob.js
|
13076
13076
|
var import_glob;
|
13077
13077
|
var init_glob = __esm({
|
13078
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
13078
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/glob.js"() {
|
13079
13079
|
"use strict";
|
13080
13080
|
import_glob = __toESM(require_glob());
|
13081
13081
|
}
|
13082
13082
|
});
|
13083
13083
|
|
13084
|
-
// ../../../node_modules/.pnpm/universalify@2.0.
|
13084
|
+
// ../../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
|
13085
13085
|
var require_universalify = __commonJS({
|
13086
|
-
"../../../node_modules/.pnpm/universalify@2.0.
|
13086
|
+
"../../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js"(exports) {
|
13087
13087
|
"use strict";
|
13088
13088
|
exports.fromCallback = function(fn) {
|
13089
13089
|
return Object.defineProperty(function(...args) {
|
@@ -13091,11 +13091,8 @@ var require_universalify = __commonJS({
|
|
13091
13091
|
fn.apply(this, args);
|
13092
13092
|
else {
|
13093
13093
|
return new Promise((resolve, reject) => {
|
13094
|
-
|
13095
|
-
|
13096
|
-
...args,
|
13097
|
-
(err, res) => err != null ? reject(err) : resolve(res)
|
13098
|
-
);
|
13094
|
+
args.push((err, res) => err != null ? reject(err) : resolve(res));
|
13095
|
+
fn.apply(this, args);
|
13099
13096
|
});
|
13100
13097
|
}
|
13101
13098
|
}, "name", { value: fn.name });
|
@@ -13105,8 +13102,10 @@ var require_universalify = __commonJS({
|
|
13105
13102
|
const cb = args[args.length - 1];
|
13106
13103
|
if (typeof cb !== "function")
|
13107
13104
|
return fn.apply(this, args);
|
13108
|
-
else
|
13109
|
-
|
13105
|
+
else {
|
13106
|
+
args.pop();
|
13107
|
+
fn.apply(this, args).then((r) => cb(null, r), cb);
|
13108
|
+
}
|
13110
13109
|
}, "name", { value: fn.name });
|
13111
13110
|
};
|
13112
13111
|
}
|
@@ -15328,6 +15327,37 @@ var require_ensure = __commonJS({
|
|
15328
15327
|
}
|
15329
15328
|
});
|
15330
15329
|
|
15330
|
+
// ../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js
|
15331
|
+
var require_universalify2 = __commonJS({
|
15332
|
+
"../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js"(exports) {
|
15333
|
+
"use strict";
|
15334
|
+
exports.fromCallback = function(fn) {
|
15335
|
+
return Object.defineProperty(function(...args) {
|
15336
|
+
if (typeof args[args.length - 1] === "function")
|
15337
|
+
fn.apply(this, args);
|
15338
|
+
else {
|
15339
|
+
return new Promise((resolve, reject) => {
|
15340
|
+
fn.call(
|
15341
|
+
this,
|
15342
|
+
...args,
|
15343
|
+
(err, res) => err != null ? reject(err) : resolve(res)
|
15344
|
+
);
|
15345
|
+
});
|
15346
|
+
}
|
15347
|
+
}, "name", { value: fn.name });
|
15348
|
+
};
|
15349
|
+
exports.fromPromise = function(fn) {
|
15350
|
+
return Object.defineProperty(function(...args) {
|
15351
|
+
const cb = args[args.length - 1];
|
15352
|
+
if (typeof cb !== "function")
|
15353
|
+
return fn.apply(this, args);
|
15354
|
+
else
|
15355
|
+
fn.apply(this, args.slice(0, -1)).then((r) => cb(null, r), cb);
|
15356
|
+
}, "name", { value: fn.name });
|
15357
|
+
};
|
15358
|
+
}
|
15359
|
+
});
|
15360
|
+
|
15331
15361
|
// ../../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js
|
15332
15362
|
var require_utils2 = __commonJS({
|
15333
15363
|
"../../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) {
|
@@ -15356,7 +15386,7 @@ var require_jsonfile = __commonJS({
|
|
15356
15386
|
} catch (_) {
|
15357
15387
|
_fs = require("fs");
|
15358
15388
|
}
|
15359
|
-
var universalify =
|
15389
|
+
var universalify = require_universalify2();
|
15360
15390
|
var { stringify, stripBom } = require_utils2();
|
15361
15391
|
function _readFile(_0) {
|
15362
15392
|
return __async(this, arguments, function* (file, options = {}) {
|
@@ -15686,19 +15716,19 @@ var require_lib = __commonJS({
|
|
15686
15716
|
}
|
15687
15717
|
});
|
15688
15718
|
|
15689
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
15719
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js
|
15690
15720
|
var import_fs_extra;
|
15691
15721
|
var init_fs_extra = __esm({
|
15692
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
15722
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js"() {
|
15693
15723
|
"use strict";
|
15694
15724
|
import_fs_extra = __toESM(require_lib());
|
15695
15725
|
}
|
15696
15726
|
});
|
15697
15727
|
|
15698
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
15728
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js
|
15699
15729
|
var IMAGE_EXT_LIST;
|
15700
15730
|
var init_constants2 = __esm({
|
15701
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
15731
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js"() {
|
15702
15732
|
"use strict";
|
15703
15733
|
IMAGE_EXT_LIST = [
|
15704
15734
|
".jpg",
|
@@ -15715,10 +15745,10 @@ var init_constants2 = __esm({
|
|
15715
15745
|
}
|
15716
15746
|
});
|
15717
15747
|
|
15718
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
15748
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
15719
15749
|
var import_path, FS_RESOURCE, FsResource;
|
15720
15750
|
var init_FsResource = __esm({
|
15721
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
15751
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js"() {
|
15722
15752
|
"use strict";
|
15723
15753
|
import_path = __toESM(require("path"));
|
15724
15754
|
init_fs_extra();
|
@@ -15749,10 +15779,10 @@ var init_FsResource = __esm({
|
|
15749
15779
|
}
|
15750
15780
|
});
|
15751
15781
|
|
15752
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
15782
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
|
15753
15783
|
var import_path2, promisifyGlob, FsMaterial;
|
15754
15784
|
var init_FsMaterial = __esm({
|
15755
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
15785
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js"() {
|
15756
15786
|
"use strict";
|
15757
15787
|
import_path2 = __toESM(require("path"));
|
15758
15788
|
init_glob();
|
@@ -15785,7 +15815,7 @@ var init_FsMaterial = __esm({
|
|
15785
15815
|
}
|
15786
15816
|
});
|
15787
15817
|
|
15788
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
15818
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
|
15789
15819
|
function fsExists(path8) {
|
15790
15820
|
return __async(this, null, function* () {
|
15791
15821
|
try {
|
@@ -15797,16 +15827,16 @@ function fsExists(path8) {
|
|
15797
15827
|
});
|
15798
15828
|
}
|
15799
15829
|
var init_fsExists = __esm({
|
15800
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
15830
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js"() {
|
15801
15831
|
"use strict";
|
15802
15832
|
init_fs_extra();
|
15803
15833
|
}
|
15804
15834
|
});
|
15805
15835
|
|
15806
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
15836
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js
|
15807
15837
|
var nodeRequire;
|
15808
15838
|
var init_nodeRequire = __esm({
|
15809
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
15839
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js"() {
|
15810
15840
|
"use strict";
|
15811
15841
|
nodeRequire = (path8) => {
|
15812
15842
|
try {
|
@@ -17784,16 +17814,16 @@ var require_execa = __commonJS({
|
|
17784
17814
|
}
|
17785
17815
|
});
|
17786
17816
|
|
17787
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
17817
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js
|
17788
17818
|
var import_execa;
|
17789
17819
|
var init_execa = __esm({
|
17790
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
17820
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js"() {
|
17791
17821
|
"use strict";
|
17792
17822
|
import_execa = __toESM(require_execa());
|
17793
17823
|
}
|
17794
17824
|
});
|
17795
17825
|
|
17796
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
17826
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
|
17797
17827
|
function canUseYarn() {
|
17798
17828
|
return __async(this, null, function* () {
|
17799
17829
|
try {
|
@@ -17878,7 +17908,7 @@ function runInstall(targetDir, registryUrl, logger) {
|
|
17878
17908
|
}
|
17879
17909
|
var import_path3;
|
17880
17910
|
var init_packageManager = __esm({
|
17881
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
17911
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js"() {
|
17882
17912
|
"use strict";
|
17883
17913
|
import_path3 = __toESM(require("path"));
|
17884
17914
|
init_execa();
|
@@ -17886,7 +17916,7 @@ var init_packageManager = __esm({
|
|
17886
17916
|
}
|
17887
17917
|
});
|
17888
17918
|
|
17889
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
17919
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js
|
17890
17920
|
function timeoutPromise(promise, ms, reason = "Operation") {
|
17891
17921
|
return __async(this, null, function* () {
|
17892
17922
|
let timeoutId = null;
|
@@ -17910,15 +17940,15 @@ function timeoutPromise(promise, ms, reason = "Operation") {
|
|
17910
17940
|
});
|
17911
17941
|
}
|
17912
17942
|
var init_timeoutPromise = __esm({
|
17913
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
17943
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js"() {
|
17914
17944
|
"use strict";
|
17915
17945
|
}
|
17916
17946
|
});
|
17917
17947
|
|
17918
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
17948
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/constants.js
|
17919
17949
|
var NPM_API_TIMEOUT, CATCHE_VALIDITY_PREIOD;
|
17920
17950
|
var init_constants3 = __esm({
|
17921
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
17951
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/constants.js"() {
|
17922
17952
|
"use strict";
|
17923
17953
|
NPM_API_TIMEOUT = 3e4;
|
17924
17954
|
CATCHE_VALIDITY_PREIOD = 7 * 24 * 3600 * 1e3;
|
@@ -20410,10 +20440,10 @@ var require_semver2 = __commonJS({
|
|
20410
20440
|
}
|
20411
20441
|
});
|
20412
20442
|
|
20413
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
20443
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
|
20414
20444
|
var import_semver;
|
20415
20445
|
var init_semver = __esm({
|
20416
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
20446
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js"() {
|
20417
20447
|
"use strict";
|
20418
20448
|
import_semver = __toESM(require_semver2());
|
20419
20449
|
}
|
@@ -40019,7 +40049,7 @@ var require_tar = __commonJS({
|
|
40019
40049
|
}
|
40020
40050
|
});
|
40021
40051
|
|
40022
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40052
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmRegistry.js
|
40023
40053
|
function getNpmRegistry() {
|
40024
40054
|
return __async(this, null, function* () {
|
40025
40055
|
const { stdout } = yield (0, import_execa.default)("npm", [
|
@@ -40031,13 +40061,13 @@ function getNpmRegistry() {
|
|
40031
40061
|
});
|
40032
40062
|
}
|
40033
40063
|
var init_getNpmRegistry = __esm({
|
40034
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40064
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmRegistry.js"() {
|
40035
40065
|
"use strict";
|
40036
40066
|
init_execa();
|
40037
40067
|
}
|
40038
40068
|
});
|
40039
40069
|
|
40040
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40070
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmPackageInfo.js
|
40041
40071
|
function getNpmPackageInfoWithCommand(pkgName, pkgVersion, options) {
|
40042
40072
|
return __async(this, null, function* () {
|
40043
40073
|
const { registryUrl } = options || {};
|
@@ -40074,6 +40104,9 @@ function getNpmPackageInfo(pkgName, pkgVersion, options) {
|
|
40074
40104
|
let response;
|
40075
40105
|
try {
|
40076
40106
|
response = (yield timeoutPromise(axios_default.get(url2), NPM_API_TIMEOUT, `Get npm package info of '${pkgName}'`)).data;
|
40107
|
+
if (!response.version) {
|
40108
|
+
response = yield getNpmPackageInfoWithCommand(pkgName, pkgVersion, options);
|
40109
|
+
}
|
40077
40110
|
} catch (e) {
|
40078
40111
|
logger === null || logger === void 0 ? void 0 : logger.error(e);
|
40079
40112
|
response = yield getNpmPackageInfoWithCommand(pkgName, pkgVersion, options);
|
@@ -40085,7 +40118,7 @@ function getNpmPackageInfo(pkgName, pkgVersion, options) {
|
|
40085
40118
|
}
|
40086
40119
|
var NpmPackageInfoCache;
|
40087
40120
|
var init_getNpmPackageInfo = __esm({
|
40088
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40121
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmPackageInfo.js"() {
|
40089
40122
|
"use strict";
|
40090
40123
|
init_constants3();
|
40091
40124
|
init_execa();
|
@@ -40096,7 +40129,7 @@ var init_getNpmPackageInfo = __esm({
|
|
40096
40129
|
}
|
40097
40130
|
});
|
40098
40131
|
|
40099
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40132
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
|
40100
40133
|
function getNpmTarballUrl(pkgName, pkgVersion, options) {
|
40101
40134
|
return __async(this, null, function* () {
|
40102
40135
|
const packageInfo = yield getNpmPackageInfo(pkgName, pkgVersion, options);
|
@@ -40104,13 +40137,13 @@ function getNpmTarballUrl(pkgName, pkgVersion, options) {
|
|
40104
40137
|
});
|
40105
40138
|
}
|
40106
40139
|
var init_getNpmTarballUrl = __esm({
|
40107
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40140
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js"() {
|
40108
40141
|
"use strict";
|
40109
40142
|
init_getNpmPackageInfo();
|
40110
40143
|
}
|
40111
40144
|
});
|
40112
40145
|
|
40113
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40146
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js
|
40114
40147
|
function getNpmVersion(packageName, options) {
|
40115
40148
|
return __async(this, null, function* () {
|
40116
40149
|
const { version = "latest" } = options || {};
|
@@ -40119,13 +40152,13 @@ function getNpmVersion(packageName, options) {
|
|
40119
40152
|
});
|
40120
40153
|
}
|
40121
40154
|
var init_getNpmVersion = __esm({
|
40122
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40155
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js"() {
|
40123
40156
|
"use strict";
|
40124
40157
|
init_getNpmPackageInfo();
|
40125
40158
|
}
|
40126
40159
|
});
|
40127
40160
|
|
40128
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40161
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
|
40129
40162
|
function getGeneratorVersion(_0) {
|
40130
40163
|
return __async(this, arguments, function* (pkgName, pkgVersion = "latest", options = {}) {
|
40131
40164
|
const cacheKey = `${pkgName}@${pkgVersion}`;
|
@@ -40261,7 +40294,7 @@ function downloadPackage(_0) {
|
|
40261
40294
|
}
|
40262
40295
|
var import_os, import_tar, GeneratorVersionMap;
|
40263
40296
|
var init_downloadPackage = __esm({
|
40264
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40297
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js"() {
|
40265
40298
|
"use strict";
|
40266
40299
|
import_os = __toESM(require("os"));
|
40267
40300
|
init_constants3();
|
@@ -40277,7 +40310,7 @@ var init_downloadPackage = __esm({
|
|
40277
40310
|
}
|
40278
40311
|
});
|
40279
40312
|
|
40280
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40313
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js
|
40281
40314
|
function getPackageInfo(packageName) {
|
40282
40315
|
if (!packageName) {
|
40283
40316
|
throw new Error("package is not exisit");
|
@@ -40301,15 +40334,15 @@ function getPackageInfo(packageName) {
|
|
40301
40334
|
};
|
40302
40335
|
}
|
40303
40336
|
var init_getPackageInfo = __esm({
|
40304
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40337
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js"() {
|
40305
40338
|
"use strict";
|
40306
40339
|
init_semver();
|
40307
40340
|
}
|
40308
40341
|
});
|
40309
40342
|
|
40310
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40343
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/index.js
|
40311
40344
|
var init_utils3 = __esm({
|
40312
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40345
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/index.js"() {
|
40313
40346
|
"use strict";
|
40314
40347
|
init_nodeRequire();
|
40315
40348
|
init_downloadPackage();
|
@@ -40317,7 +40350,7 @@ var init_utils3 = __esm({
|
|
40317
40350
|
}
|
40318
40351
|
});
|
40319
40352
|
|
40320
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40353
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
|
40321
40354
|
function getGeneratorDir(generator) {
|
40322
40355
|
return __async(this, null, function* () {
|
40323
40356
|
let result = generator;
|
@@ -40338,7 +40371,7 @@ function getGeneratorDir(generator) {
|
|
40338
40371
|
}
|
40339
40372
|
var import_path4, MaxTimes;
|
40340
40373
|
var init_getGeneratorDir = __esm({
|
40341
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
40374
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js"() {
|
40342
40375
|
"use strict";
|
40343
40376
|
import_path4 = __toESM(require("path"));
|
40344
40377
|
init_fs_extra();
|
@@ -45834,19 +45867,19 @@ var require_ora = __commonJS({
|
|
45834
45867
|
}
|
45835
45868
|
});
|
45836
45869
|
|
45837
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
45870
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/ora.js
|
45838
45871
|
var import_ora;
|
45839
45872
|
var init_ora = __esm({
|
45840
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
45873
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/ora.js"() {
|
45841
45874
|
"use strict";
|
45842
45875
|
import_ora = __toESM(require_ora());
|
45843
45876
|
}
|
45844
45877
|
});
|
45845
45878
|
|
45846
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
45879
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
|
45847
45880
|
var import_events2, import_path5, GeneratorCore;
|
45848
45881
|
var init_generator = __esm({
|
45849
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
45882
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js"() {
|
45850
45883
|
"use strict";
|
45851
45884
|
import_events2 = require("events");
|
45852
45885
|
import_path5 = __toESM(require("path"));
|
@@ -46073,10 +46106,10 @@ check path: ${import_chalk.default.blue.underline(generator)} exist a package.js
|
|
46073
46106
|
}
|
46074
46107
|
});
|
46075
46108
|
|
46076
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
46109
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
|
46077
46110
|
var import_path6, MaterialsManager;
|
46078
46111
|
var init_materials = __esm({
|
46079
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
46112
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js"() {
|
46080
46113
|
"use strict";
|
46081
46114
|
import_path6 = __toESM(require("path"));
|
46082
46115
|
init_utils3();
|
@@ -46147,10 +46180,10 @@ var init_materials = __esm({
|
|
46147
46180
|
}
|
46148
46181
|
});
|
46149
46182
|
|
46150
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
46183
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
|
46151
46184
|
var import_path7, CodeSmith;
|
46152
46185
|
var init_codesmith = __esm({
|
46153
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
46186
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js"() {
|
46154
46187
|
"use strict";
|
46155
46188
|
import_path7 = __toESM(require("path"));
|
46156
46189
|
init_generator();
|
@@ -46218,9 +46251,9 @@ var init_codesmith = __esm({
|
|
46218
46251
|
}
|
46219
46252
|
});
|
46220
46253
|
|
46221
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
46254
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/index.js
|
46222
46255
|
var init_esm_node = __esm({
|
46223
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
46256
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/index.js"() {
|
46224
46257
|
"use strict";
|
46225
46258
|
init_codesmith();
|
46226
46259
|
init_utils3();
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.65.
|
18
|
+
"version": "2.65.3",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"types": "./dist/index.d.ts",
|
21
21
|
"main": "./dist/index.js",
|
@@ -37,18 +37,18 @@
|
|
37
37
|
}
|
38
38
|
},
|
39
39
|
"devDependencies": {
|
40
|
-
"@modern-js/codesmith": "2.6.
|
41
|
-
"@modern-js/codesmith-utils": "2.6.
|
40
|
+
"@modern-js/codesmith": "2.6.6",
|
41
|
+
"@modern-js/codesmith-utils": "2.6.6",
|
42
42
|
"@types/jest": "^29",
|
43
43
|
"@types/node": "^14",
|
44
44
|
"commander": "10.0.1",
|
45
45
|
"jest": "^29",
|
46
46
|
"ts-node": "^10.9.1",
|
47
47
|
"typescript": "^5",
|
48
|
-
"@modern-js/plugin-i18n": "2.65.
|
49
|
-
"@
|
50
|
-
"@
|
51
|
-
"@scripts/jest-config": "2.65.
|
48
|
+
"@modern-js/plugin-i18n": "2.65.3",
|
49
|
+
"@scripts/build": "2.65.3",
|
50
|
+
"@modern-js/upgrade-generator": "3.7.21",
|
51
|
+
"@scripts/jest-config": "2.65.3"
|
52
52
|
},
|
53
53
|
"sideEffects": false,
|
54
54
|
"publishConfig": {
|