@cloudbase/manager-node 4.8.0 → 4.9.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/hosting/index.js +1 -1
- package/lib/index.js +2 -2
- package/package.json +1 -1
package/lib/hosting/index.js
CHANGED
|
@@ -131,7 +131,7 @@ class HostingService {
|
|
|
131
131
|
* @param options
|
|
132
132
|
*/
|
|
133
133
|
async uploadFiles(options) {
|
|
134
|
-
const { localPath, cloudPath, files = [], onProgress, onFileFinish, parallel = 20, ignore, retryCount, retryInterval } = options;
|
|
134
|
+
const { localPath, cloudPath, files = [], onProgress, onFileFinish, parallel = 20, ignore = ['.DS_Store'], retryCount, retryInterval } = options;
|
|
135
135
|
const hosting = await this.checkStatus();
|
|
136
136
|
const { Bucket, Regoin } = hosting;
|
|
137
137
|
const storageService = await this.environment.getStorageService();
|
package/lib/index.js
CHANGED
|
@@ -24,8 +24,8 @@ class CloudBase {
|
|
|
24
24
|
throw new Error('secretId and secretKey must be a pair');
|
|
25
25
|
}
|
|
26
26
|
this.cloudBaseConfig = {
|
|
27
|
-
secretId,
|
|
28
|
-
secretKey,
|
|
27
|
+
secretId: secretId ? secretId.trim() : secretId,
|
|
28
|
+
secretKey: secretKey ? secretKey.trim() : secretKey,
|
|
29
29
|
token,
|
|
30
30
|
envId,
|
|
31
31
|
envType,
|