react-native-update-cli 1.8.0 → 1.8.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.
- package/lib/api.js +1 -5
- package/lib/app.js +1 -1
- package/package.json +1 -1
- package/src/api.js +0 -4
- package/src/app.js +1 -1
package/lib/api.js
CHANGED
|
@@ -166,11 +166,7 @@ async function uploadFile(fn, key) {
|
|
|
166
166
|
bar.tick(data.length);
|
|
167
167
|
});
|
|
168
168
|
_request2.default.post(realUrl, {
|
|
169
|
-
formData
|
|
170
|
-
headers: {
|
|
171
|
-
'User-Agent': userAgent,
|
|
172
|
-
'X-AccessToken': session ? session.token : ''
|
|
173
|
-
}
|
|
169
|
+
formData
|
|
174
170
|
}, (err, resp, body) => {
|
|
175
171
|
if (err) {
|
|
176
172
|
return reject(err);
|
package/lib/app.js
CHANGED
|
@@ -105,7 +105,7 @@ const commands = exports.commands = {
|
|
|
105
105
|
},
|
|
106
106
|
selectApp: async function ({ args, options }) {
|
|
107
107
|
const platform = checkPlatform(options.platform || (await (0, _utils.question)('平台(ios/android):')));
|
|
108
|
-
const id = args[0]
|
|
108
|
+
const id = args[0] ? parseInt(args[0]) : (await chooseApp(platform)).id;
|
|
109
109
|
|
|
110
110
|
let updateInfo = {};
|
|
111
111
|
if (_fs2.default.existsSync('update.json')) {
|
package/package.json
CHANGED
package/src/api.js
CHANGED
package/src/app.js
CHANGED
|
@@ -100,7 +100,7 @@ export const commands = {
|
|
|
100
100
|
const platform = checkPlatform(
|
|
101
101
|
options.platform || (await question('平台(ios/android):')),
|
|
102
102
|
);
|
|
103
|
-
const id = args[0]
|
|
103
|
+
const id = args[0] ? parseInt(args[0]) : (await chooseApp(platform)).id;
|
|
104
104
|
|
|
105
105
|
let updateInfo = {};
|
|
106
106
|
if (fs.existsSync('update.json')) {
|