@cloudbase/manager-node 4.2.8 → 4.2.10
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/function/index.js
CHANGED
|
@@ -146,6 +146,9 @@ class FunctionService {
|
|
|
146
146
|
functionPath,
|
|
147
147
|
functionRootPath
|
|
148
148
|
}, params.InstallDependency);
|
|
149
|
+
const { TopicId, LogsetId } = this.getClsServiceConfig();
|
|
150
|
+
params.ClsTopicId = TopicId;
|
|
151
|
+
params.ClsLogsetId = LogsetId;
|
|
149
152
|
try {
|
|
150
153
|
// 创建云函数
|
|
151
154
|
const res = await this.scfService.request('CreateFunction', params);
|
package/lib/hosting/index.js
CHANGED
|
@@ -218,9 +218,10 @@ class HostingService {
|
|
|
218
218
|
*/
|
|
219
219
|
async downloadFile(options) {
|
|
220
220
|
const { cloudPath, localPath } = options;
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
221
|
+
if (localPath) {
|
|
222
|
+
const fileDir = path_1.default.dirname(localPath);
|
|
223
|
+
utils_1.checkFullAccess(fileDir, true);
|
|
224
|
+
}
|
|
224
225
|
const envConfig = this.environment.lazyEnvironmentConfig;
|
|
225
226
|
const cacheHosting = envDomainCache.get(envConfig.EnvId);
|
|
226
227
|
let CdnDomain;
|
|
@@ -241,6 +242,7 @@ class HostingService {
|
|
|
241
242
|
if (!localPath) {
|
|
242
243
|
return res.body;
|
|
243
244
|
}
|
|
245
|
+
const resolveLocalPath = path_1.default.resolve(localPath);
|
|
244
246
|
const dest = fs_1.default.createWriteStream(resolveLocalPath);
|
|
245
247
|
res.body.pipe(dest);
|
|
246
248
|
// 写完成后返回
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/manager-node",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.10",
|
|
4
4
|
"description": "The node manage service api for cloudbase.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@cloudbase/database": "^0.6.2",
|
|
38
38
|
"archiver": "^3.1.1",
|
|
39
|
-
"cos-nodejs-sdk-v5": "2.
|
|
39
|
+
"cos-nodejs-sdk-v5": "2.14.0",
|
|
40
40
|
"del": "^5.1.0",
|
|
41
41
|
"https-proxy-agent": "^5.0.1",
|
|
42
42
|
"make-dir": "^3.0.0",
|