@gmcb/cli 0.9.13 → 0.9.14
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/CHANGELOG.md +5 -0
- package/lib/apis/index.js +9 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/lib/apis/index.js
CHANGED
|
@@ -190,6 +190,15 @@ async function publishVersion(params) {
|
|
|
190
190
|
fallbackFullUrl = '';
|
|
191
191
|
fallbackResUrl = '';
|
|
192
192
|
}
|
|
193
|
+
// 子应用允许 wgt/zip 只发一个,禁止用历史版本补齐另一包,
|
|
194
|
+
// 否则新版本链接会指向历史版本文件,客户端更新检查会一直命中历史版本。
|
|
195
|
+
if (publishType == 3) {
|
|
196
|
+
fallbackFullUrl = '';
|
|
197
|
+
fallbackResUrl = '';
|
|
198
|
+
}
|
|
199
|
+
if (publishType == 3 && !fullUrl && !resUrl) {
|
|
200
|
+
throw new Error('子应用发布未上传 wgt 或 zip 文件');
|
|
201
|
+
}
|
|
193
202
|
await postVersion({
|
|
194
203
|
id: versionId,
|
|
195
204
|
fullPackageUrl: fullUrl || fallbackFullUrl,
|