@modern-js/bff-generator 3.1.28 → 3.1.29
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 +13 -9
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -118201,16 +118201,20 @@ var import_utils2 = __toESM(require_cjs());
|
|
|
118201
118201
|
function isPackageExist(packageName, registry2) {
|
|
118202
118202
|
return __async(this, null, function* () {
|
|
118203
118203
|
if (yield (0, import_utils2.canUseNpm)()) {
|
|
118204
|
-
|
|
118205
|
-
|
|
118206
|
-
|
|
118207
|
-
|
|
118208
|
-
|
|
118209
|
-
|
|
118210
|
-
|
|
118204
|
+
try {
|
|
118205
|
+
const args = [
|
|
118206
|
+
"view",
|
|
118207
|
+
packageName,
|
|
118208
|
+
"version"
|
|
118209
|
+
];
|
|
118210
|
+
if (registry2) {
|
|
118211
|
+
args.push(`--registry=${registry2}`);
|
|
118212
|
+
}
|
|
118213
|
+
const result = yield (0, import_utils2.execa)("npm", args);
|
|
118214
|
+
return (0, import_utils2.stripAnsi)(result.stdout);
|
|
118215
|
+
} catch (e) {
|
|
118216
|
+
return false;
|
|
118211
118217
|
}
|
|
118212
|
-
const result = yield (0, import_utils2.execa)("npm", args);
|
|
118213
|
-
return (0, import_utils2.stripAnsi)(result.stdout);
|
|
118214
118218
|
}
|
|
118215
118219
|
throw new Error("not found npm, please install npm before");
|
|
118216
118220
|
});
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.1.
|
|
18
|
+
"version": "3.1.29",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./src/index.ts",
|
|
21
21
|
"main": "./dist/index.js",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"@types/node": "^14",
|
|
32
32
|
"jest": "^29",
|
|
33
33
|
"typescript": "^5",
|
|
34
|
-
"@scripts/build": "2.
|
|
35
|
-
"@scripts/jest-config": "2.
|
|
36
|
-
"@modern-js/generator-common": "3.1.
|
|
37
|
-
"@modern-js/generator-utils": "3.1.
|
|
38
|
-
"@modern-js/plugin-i18n": "2.
|
|
34
|
+
"@scripts/build": "2.27.0",
|
|
35
|
+
"@scripts/jest-config": "2.27.0",
|
|
36
|
+
"@modern-js/generator-common": "3.1.29",
|
|
37
|
+
"@modern-js/generator-utils": "3.1.29",
|
|
38
|
+
"@modern-js/plugin-i18n": "2.27.0"
|
|
39
39
|
},
|
|
40
40
|
"sideEffects": false,
|
|
41
41
|
"publishConfig": {
|