react-native-update-cli 1.44.2 → 1.44.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.
@@ -194,13 +194,12 @@ async function printVersionCommand() {
194
194
  version: _chalk.default.green(latestRnuCliVersion)
195
195
  })}` : '';
196
196
  console.log(`react-native-update-cli: ${_packagejson.default.version}${latestRnuCliVersion}`);
197
- let rnuVersion = '';
198
- rnuVersion = _depversions.depVersions['react-native-update'];
199
- latestRnuVersion = latestRnuVersion ? ` ${(0, _i18n.t)('latestVersionTag', {
200
- version: _chalk.default.green(latestRnuVersion)
201
- })}` : '';
202
- console.log(`react-native-update: ${rnuVersion}${latestRnuVersion}`);
197
+ const rnuVersion = _depversions.depVersions['react-native-update'];
203
198
  if (rnuVersion) {
199
+ latestRnuVersion = latestRnuVersion ? ` ${(0, _i18n.t)('latestVersionTag', {
200
+ version: _chalk.default.green(latestRnuVersion)
201
+ })}` : '';
202
+ console.log(`react-native-update: ${rnuVersion}${latestRnuVersion}`);
204
203
  if (_constants.IS_CRESC) {
205
204
  if ((0, _satisfies.default)(rnuVersion, '<10.27.0')) {
206
205
  console.error('Unsupported version, please update to the latest version: npm i react-native-update@latest');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update-cli",
3
- "version": "1.44.2",
3
+ "version": "1.44.3",
4
4
  "description": "command line tool for react-native-update (remote updates for react native)",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -14,7 +14,7 @@
14
14
  ],
15
15
  "scripts": {
16
16
  "build": "swc src -d lib --strip-leading-paths",
17
- "prepare": "npm run build && chmod +x lib/index.js",
17
+ "prepublishOnly": "npm run build && chmod +x lib/index.js",
18
18
  "lint": "tsc --noEmit & biome check --write ."
19
19
  },
20
20
  "repository": {
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "homepage": "https://github.com/reactnativecn/react-native-pushy/tree/master/react-native-pushy-cli",
37
37
  "dependencies": {
38
- "@badisi/latest-version": "^7.0.13",
38
+ "@badisi/latest-version": "^7.0.14",
39
39
  "bplist-parser": "^0.3.2",
40
40
  "bytebuffer": "^5.0.1",
41
41
  "cgbi-to-png": "^1.0.7",
@@ -66,8 +66,8 @@
66
66
  },
67
67
  "devDependencies": {
68
68
  "@biomejs/biome": "^1.9.4",
69
- "@swc/cli": "^0.7.2",
70
- "@swc/core": "^1.11.21",
69
+ "@swc/cli": "0.7.3",
70
+ "@swc/core": "^1.11.24",
71
71
  "@types/filesize-parser": "^1.5.3",
72
72
  "@types/fs-extra": "^11.0.4",
73
73
  "@types/node": "^22.14.1",
@@ -82,5 +82,8 @@
82
82
  "trustedDependencies": [
83
83
  "@biomejs/biome",
84
84
  "@swc/core"
85
- ]
85
+ ],
86
+ "patchedDependencies": {
87
+ "@badisi/latest-version@7.0.14": "patches/@badisi%2Flatest-version@7.0.14.patch"
88
+ }
86
89
  }
@@ -98,7 +98,7 @@ export async function getAppInfo(fn: string) {
98
98
  const metaJsonFile = await appInfoParser.parser.getEntryFromHarmonyApp(
99
99
  /rawfile\/meta.json/,
100
100
  );
101
- let metaData = {};
101
+ let metaData: Record<string, any> = {};
102
102
  if (metaJsonFile) {
103
103
  metaData = JSON.parse(metaJsonFile.toString());
104
104
  }
@@ -181,16 +181,13 @@ export async function printVersionCommand() {
181
181
  version: chalk.green(latestRnuCliVersion),
182
182
  })}`
183
183
  : '';
184
- console.log(
185
- `react-native-update-cli: ${pkg.version}${latestRnuCliVersion}`,
186
- );
187
- let rnuVersion = '';
188
- rnuVersion = depVersions['react-native-update'];
189
- latestRnuVersion = latestRnuVersion
190
- ? ` ${t('latestVersionTag', { version: chalk.green(latestRnuVersion) })}`
191
- : '';
192
- console.log(`react-native-update: ${rnuVersion}${latestRnuVersion}`);
184
+ console.log(`react-native-update-cli: ${pkg.version}${latestRnuCliVersion}`);
185
+ const rnuVersion = depVersions['react-native-update'];
193
186
  if (rnuVersion) {
187
+ latestRnuVersion = latestRnuVersion
188
+ ? ` ${t('latestVersionTag', { version: chalk.green(latestRnuVersion) })}`
189
+ : '';
190
+ console.log(`react-native-update: ${rnuVersion}${latestRnuVersion}`);
194
191
  if (IS_CRESC) {
195
192
  if (semverSatisfies(rnuVersion, '<10.27.0')) {
196
193
  console.error(