react-native-update-cli 1.30.0 → 1.30.1

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.
@@ -35,9 +35,9 @@ var _appInfoParser = require('./app-info-parser');
35
35
 
36
36
  var _appInfoParser2 = _interopRequireDefault(_appInfoParser);
37
37
 
38
- var _lt = require('semver/functions/lt');
38
+ var _satisfies = require('semver/functions/satisfies');
39
39
 
40
- var _lt2 = _interopRequireDefault(_lt);
40
+ var _satisfies2 = _interopRequireDefault(_satisfies);
41
41
 
42
42
  var _read = require('read');
43
43
 
@@ -157,10 +157,9 @@ function printVersionCommand() {
157
157
  console.log('react-native-update: 无法获取版本号,请在项目目录中运行命令');
158
158
  }
159
159
  if (pushyVersion) {
160
- if ((0, _lt2.default)(pushyVersion, '8.5.1')) {
160
+ if ((0, _satisfies2.default)(pushyVersion, '<8.5.1')) {
161
161
  console.warn('当前版本已不再支持,请至少升级到 v8 的最新小版本后重新打包(代码无需改动): npm i react-native-update@8');
162
- }
163
- if ((0, _lt2.default)(pushyVersion, '9.2.1')) {
162
+ } else if ((0, _satisfies2.default)(pushyVersion, '9.0.0 - 9.2.0')) {
164
163
  console.warn('当前版本已不再支持,请至少升级到 v9 的最新小版本后重新打包(代码无需改动): npm i react-native-update@9');
165
164
  }
166
165
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update-cli",
3
- "version": "1.30.0",
3
+ "version": "1.30.1",
4
4
  "description": "Command tools for javaScript updater with `pushy` service for react native apps.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -3,7 +3,7 @@ import os from 'os';
3
3
  import path from 'path';
4
4
  import pkg from '../../package.json';
5
5
  import AppInfoParser from './app-info-parser';
6
- import semverLt from 'semver/functions/lt';
6
+ import semverSatisfies from 'semver/functions/satisfies';
7
7
 
8
8
  import read from 'read';
9
9
 
@@ -152,12 +152,11 @@ export function printVersionCommand() {
152
152
  console.log('react-native-update: 无法获取版本号,请在项目目录中运行命令');
153
153
  }
154
154
  if (pushyVersion) {
155
- if (semverLt(pushyVersion, '8.5.1')) {
155
+ if (semverSatisfies(pushyVersion, '<8.5.1')) {
156
156
  console.warn(
157
157
  '当前版本已不再支持,请至少升级到 v8 的最新小版本后重新打包(代码无需改动): npm i react-native-update@8',
158
158
  );
159
- }
160
- if (semverLt(pushyVersion, '9.2.1')) {
159
+ } else if (semverSatisfies(pushyVersion, '9.0.0 - 9.2.0')) {
161
160
  console.warn(
162
161
  '当前版本已不再支持,请至少升级到 v9 的最新小版本后重新打包(代码无需改动): npm i react-native-update@9',
163
162
  );
package/src/.DS_Store DELETED
Binary file
Binary file