react-native-update-cli 1.25.0 → 1.26.0
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/lib/api.js +1 -1
- package/lib/package.js +1 -1
- package/package.json +1 -1
- package/src/api.js +1 -1
- package/src/package.js +1 -1
package/lib/api.js
CHANGED
|
@@ -46,7 +46,7 @@ var _utils = require('./utils');
|
|
|
46
46
|
|
|
47
47
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
48
48
|
|
|
49
|
-
const defaultEndpoint = 'https://update.
|
|
49
|
+
const defaultEndpoint = 'https://update.react-native.cn/api';
|
|
50
50
|
let host = process.env.PUSHY_REGISTRY || defaultEndpoint;
|
|
51
51
|
|
|
52
52
|
|
package/lib/package.js
CHANGED
|
@@ -61,7 +61,7 @@ async function choosePackage(appId) {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
const commands = exports.commands = {
|
|
64
|
-
uploadIpa: async function ({ args }) {
|
|
64
|
+
uploadIpa: async function ({ args, options }) {
|
|
65
65
|
const fn = args[0];
|
|
66
66
|
if (!fn || !fn.endsWith('.ipa')) {
|
|
67
67
|
throw new Error('使用方法: pushy uploadIpa ipa后缀文件');
|
package/package.json
CHANGED
package/src/api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import fetch from 'node-fetch';
|
|
2
|
-
const defaultEndpoint = 'https://update.
|
|
2
|
+
const defaultEndpoint = 'https://update.react-native.cn/api';
|
|
3
3
|
let host = process.env.PUSHY_REGISTRY || defaultEndpoint;
|
|
4
4
|
import fs from 'fs';
|
|
5
5
|
import request from 'request';
|
package/src/package.js
CHANGED
|
@@ -48,7 +48,7 @@ export async function choosePackage(appId) {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export const commands = {
|
|
51
|
-
uploadIpa: async function ({ args }) {
|
|
51
|
+
uploadIpa: async function ({ args, options }) {
|
|
52
52
|
const fn = args[0];
|
|
53
53
|
if (!fn || !fn.endsWith('.ipa')) {
|
|
54
54
|
throw new Error('使用方法: pushy uploadIpa ipa后缀文件');
|