1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-11-08 10:15:47 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

add version id null

This commit is contained in:
sunnylqm
2024-10-16 23:20:58 +08:00
parent 69f4372b63
commit 5a05679e2b
8 changed files with 3039 additions and 3582 deletions

View File

@@ -74,9 +74,12 @@ async function query(url, options) {
}
if (resp.status !== 200) {
throw Object.assign(new Error(json.message || json.error), {
status: resp.status,
});
throw Object.assign(
new Error(json.message || json.error || resp.statusText),
{
status: resp.status,
},
);
}
return json;
}

View File

@@ -124,7 +124,10 @@ export const commands = {
options.platform || (await question('平台(ios/android):')),
);
const { appId } = await getSelectedApp(platform);
const versionId = options.versionId || (await chooseVersion(appId)).id;
let versionId = options.versionId || (await chooseVersion(appId)).id;
if (versionId === 'null') {
versionId = null;
}
let pkgId;
let pkgVersion = options.packageVersion;