@modern-js/bff-generator 2.4.14 → 2.4.16

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -5
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -38017,8 +38017,8 @@ var require_node = __commonJSMin((exports) => {
38017
38017
  registry: registry2,
38018
38018
  distTag
38019
38019
  } = options3;
38020
- const getLatetPluginVersion = async () => {
38021
- const version5 = await getPackageVersion2(`${packageName}@${distTag || "latest"}`, registry2);
38020
+ const getLatetPluginVersion = async (pluginVersion) => {
38021
+ const version5 = await getPackageVersion2(`${packageName}@${pluginVersion || "latest"}`, registry2);
38022
38022
  return version5;
38023
38023
  };
38024
38024
  if (!packageName.startsWith("@modern-js") || packageName.includes("electron") || packageName.includes("codesmith") || packageName.includes("easy-form") || packageName.startsWith("@modern-js-reduck")) {
@@ -38031,14 +38031,14 @@ var require_node = __commonJSMin((exports) => {
38031
38031
  const pkgInfo = _utils.fs.readJSONSync(pkgPath);
38032
38032
  const modernVersion = pkgInfo.version;
38033
38033
  if (typeof modernVersion !== "string") {
38034
- return getLatetPluginVersion();
38034
+ return getLatetPluginVersion(distTag);
38035
38035
  }
38036
38036
  if (_utils.semver.lt(modernVersion, "1.15.0")) {
38037
- return getLatetPluginVersion();
38037
+ return getLatetPluginVersion(distTag);
38038
38038
  }
38039
38039
  return (0, _package.getAvailableVersion)(packageName, modernVersion, registry2);
38040
38040
  }
38041
- return getLatetPluginVersion();
38041
+ return getLatetPluginVersion(distTag);
38042
38042
  }
38043
38043
  function getPackageManagerText(packageManager) {
38044
38044
  return packageManager === "yarn" ? "yarn" : `${packageManager} run`;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.4.14",
14
+ "version": "2.4.16",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./src/index.ts",
17
17
  "main": "./dist/index.js",
@@ -28,10 +28,10 @@
28
28
  "@types/node": "^14",
29
29
  "jest": "^27",
30
30
  "typescript": "^4",
31
- "@modern-js/generator-common": "2.4.14",
32
- "@modern-js/generator-utils": "2.4.14",
33
- "@scripts/build": "1.22.3",
34
- "@scripts/jest-config": "1.22.3"
31
+ "@modern-js/generator-common": "2.4.16",
32
+ "@modern-js/generator-utils": "2.4.16",
33
+ "@scripts/build": "1.22.5",
34
+ "@scripts/jest-config": "1.22.5"
35
35
  },
36
36
  "sideEffects": false,
37
37
  "modernConfig": {