Skip to content

Commit 00a36a9

Browse files
committed
feat: add layer module
1 parent ef0a06f commit 00a36a9

38 files changed

+265
-37
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@
7070
"semantic-release": "^17.0.4"
7171
},
7272
"dependencies": {
73-
"@tencent-sdk/capi": "0.2.15",
73+
"@tencent-sdk/capi": "^0.2.17",
7474
"@ygkit/request": "^0.0.6",
7575
"klaw-sync": "^6.0.0",
7676
"moment": "^2.25.3",
77-
"tencent-cloud-sdk": "^0.1.5"
77+
"tencent-cloud-sdk": "^0.1.6"
7878
}
7979
}

src/index.js

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
const Apigw = require('./baas/apigw');
2-
const Cdn = require('./baas/cdn');
3-
const Cns = require('./baas/cns');
4-
const Cos = require('./baas/cos');
5-
const Domain = require('./baas/domain');
6-
const MultiApigw = require('./baas/multi-apigw');
7-
const MultiScf = require('./baas/multi-scf');
8-
const Scf = require('./baas/scf');
9-
const Tag = require('./baas/tag');
10-
const Postgresql = require('./baas/postgresql');
11-
const Vpc = require('./baas/vpc');
12-
const Cam = require('./baas/cam');
13-
const Metrics = require('./baas/metrics');
1+
const Apigw = require('./modules/apigw');
2+
const Cdn = require('./modules/cdn');
3+
const Cns = require('./modules/cns');
4+
const Cos = require('./modules/cos');
5+
const Domain = require('./modules/domain');
6+
const MultiApigw = require('./modules/multi-apigw');
7+
const MultiScf = require('./modules/multi-scf');
8+
const Scf = require('./modules/scf');
9+
const Tag = require('./modules/tag');
10+
const Postgresql = require('./modules/postgresql');
11+
const Vpc = require('./modules/vpc');
12+
const Cam = require('./modules/cam');
13+
const Metrics = require('./modules/metrics');
14+
const Layer = require('./modules/layer');
15+
1416
module.exports = {
1517
Apigw,
1618
Cdn,
@@ -25,4 +27,5 @@ module.exports = {
2527
Vpc,
2628
Cam,
2729
Metrics,
30+
Layer,
2831
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/baas/cdn/apis.js renamed to src/modules/cdn/apis.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function apiFactory(actions) {
4545
}
4646
return Response;
4747
} catch (e) {
48-
throw new TypeError(`API_CDN_${action}`, JSON.stringify(e), e.stack);
48+
throw new TypeError(`API_CDN_${action}`, e.message, e.stack);
4949
}
5050
};
5151
});
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)