@lark-apaas/fullstack-cli 1.1.22-alpha.27 → 1.1.22-alpha.29
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/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7287,9 +7287,9 @@ async function uploadStatic(options) {
|
|
|
7287
7287
|
configureTosutil(tosutilPath, {
|
|
7288
7288
|
endpoint,
|
|
7289
7289
|
region,
|
|
7290
|
-
accessKeyID: uploadCredential.
|
|
7291
|
-
secretAccessKey: uploadCredential.
|
|
7292
|
-
sessionToken: uploadCredential.
|
|
7290
|
+
accessKeyID: uploadCredential.AccessKeyID,
|
|
7291
|
+
secretAccessKey: uploadCredential.SecretAccessKey,
|
|
7292
|
+
sessionToken: uploadCredential.SessionToken
|
|
7293
7293
|
});
|
|
7294
7294
|
console.error(`${LOG_PREFIX} \u4E0A\u4F20 ${resolvedStaticDir} -> ${uploadPrefix}`);
|
|
7295
7295
|
uploadToTos(tosutilPath, resolvedStaticDir, uploadPrefix);
|
|
@@ -7317,7 +7317,7 @@ async function fetchPreUpload(appId, bucketId) {
|
|
|
7317
7317
|
if (!uploadPrefix || !uploadID) {
|
|
7318
7318
|
throw new Error("preUploadStatic \u8FD4\u56DE\u6570\u636E\u4E0D\u5B8C\u6574\uFF0C\u7F3A\u5C11 uploadPrefix \u6216 uploadID");
|
|
7319
7319
|
}
|
|
7320
|
-
if (!uploadCredential?.
|
|
7320
|
+
if (!uploadCredential?.AccessKeyID || !uploadCredential?.SecretAccessKey || !uploadCredential?.SessionToken) {
|
|
7321
7321
|
throw new Error("preUploadStatic \u8FD4\u56DE\u7684\u51ED\u8BC1\u5B57\u6BB5\u4E0D\u5B8C\u6574");
|
|
7322
7322
|
}
|
|
7323
7323
|
return response;
|