@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.
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/manager-node",
3
- "version": "4.8.0",
3
+ "version": "4.9.0",
4
4
  "description": "The node manage service api for cloudbase.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {