@kengic/vue 0.32.5-beta.2 → 0.32.5-beta.4

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.
@@ -4,28 +4,21 @@ const REQUIRED_NODE_VERSION = '24.14.1';
4
4
  const REQUIRED_PNPM_VERSION = '10.33.0';
5
5
 
6
6
  function fail(message) {
7
- console.error(chalk.redBright(`[${new Date(Date.now() + 1000 * 60 * 60 * 8).toISOString().substring(0, 23).replace('T', ' ')}] [@kengic/vue] PRE-INSTALL | ${message}`));
7
+ console.log(chalk.redBright(`[${new Date(Date.now() + 1000 * 60 * 60 * 8).toISOString().substring(0, 23).replace('T', ' ')}] [@kengic/vue] PRE-INSTALL | ${message}`));
8
8
  process.exit(1);
9
9
  }
10
10
 
11
11
  function getPnpmVersion(userAgent) {
12
12
  const match = /^pnpm\/(\S+)\s/.exec(userAgent);
13
- return match?.[1] ?? null;
13
+ return match?.[1] ?? '';
14
14
  }
15
15
 
16
- const currentNodeVersion = process.versions.node;
17
-
18
- if (currentNodeVersion !== REQUIRED_NODE_VERSION) {
19
- fail(`NODE.JS VERSION MUST BE ${REQUIRED_NODE_VERSION}, BUT GOT ${currentNodeVersion}`);
20
- }
16
+ console.log(chalk.blueBright(`[${new Date(Date.now() + 1000 * 60 * 60 * 8).toISOString().substring(0, 23).replace('T', ' ')}] [@kengic/vue] PRE-INSTALL | 期望的环境版本为: node@${REQUIRED_NODE_VERSION} pnpm@${REQUIRED_PNPM_VERSION}`));
21
17
 
18
+ const currentNodeVersion = process.versions.node;
22
19
  const userAgent = process.env.npm_config_user_agent ?? '';
23
20
  const currentPnpmVersion = getPnpmVersion(userAgent);
24
21
 
25
- if (!currentPnpmVersion) {
26
- fail(`THIS PROJECT MUST BE INSTALLED WITH pnpm ${REQUIRED_PNPM_VERSION}`);
27
- }
28
-
29
- if (currentPnpmVersion !== REQUIRED_PNPM_VERSION) {
30
- fail(`PNPM VERSION MUST BE ${REQUIRED_PNPM_VERSION}, BUT GOT ${currentPnpmVersion}`);
22
+ if (currentNodeVersion !== REQUIRED_NODE_VERSION || currentPnpmVersion !== REQUIRED_PNPM_VERSION) {
23
+ fail(`实际的环境版本为: node@${currentNodeVersion} pnpm@${currentPnpmVersion}`);
31
24
  }
@@ -100067,7 +100067,7 @@ function _interopRequireDefault(re) {
100067
100067
  return re && re.__esModule ? re : { default: re };
100068
100068
  }
100069
100069
  default_1 = zhTW.default = _zhCHT.default;
100070
- const version = "0.32.5-beta.2", cs_CZ$1 = {}, en$2 = {
100070
+ const version = "0.32.5-beta.4", cs_CZ$1 = {}, en$2 = {
100071
100071
  "kg.KgAppSelect.businessManager": "Business Manager",
100072
100072
  "kg.KgAppSelect.dataManager": "Data Manager",
100073
100073
  "kg.KgAppSelect.sys": "System Config",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.32.5-beta.2",
3
+ "version": "0.32.5-beta.4",
4
4
  "packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319",
5
5
  "engines": {
6
6
  "node": "24.14.1",