@cloudbase/cli 2.1.7-alpha.0 → 2.1.8
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/.vscode/settings.json +3 -0
- package/bin/cloudbase.js +0 -0
- package/bin/tcb.js +0 -0
- package/lib/commands/functions/index.js +1 -0
- package/lib/commands/functions/layer/create.js +1 -1
- package/lib/function/layer/create.js +1 -1
- package/package.json +1 -1
- package/types/commands/functions/index.d.ts +1 -0
package/bin/cloudbase.js
CHANGED
|
File without changes
|
package/bin/tcb.js
CHANGED
|
File without changes
|
|
@@ -50,7 +50,7 @@ let CreateFileLayer = class CreateFileLayer extends common_1.Command {
|
|
|
50
50
|
const { file } = options;
|
|
51
51
|
const layerName = `${alias}_${envId}`;
|
|
52
52
|
const filePath = path_1.default.resolve(file);
|
|
53
|
-
const runtimes = ['Nodejs8.9', 'Php7', 'Java8'];
|
|
53
|
+
const runtimes = ['Nodejs12.16', 'Nodejs8.9', 'Php7', 'Java8'];
|
|
54
54
|
const loading = (0, utils_1.loadingFactory)();
|
|
55
55
|
loading.start('文件层创建中...');
|
|
56
56
|
yield (0, function_1.createLayer)({
|
|
@@ -22,7 +22,7 @@ function createLayer(options) {
|
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
23
|
const { contentPath = '', layerName, base64Content = '', runtimes = [] } = options;
|
|
24
24
|
(0, utils_1.checkFullAccess)(contentPath);
|
|
25
|
-
const validRuntime = ['Nodejs8.9', 'Php7', 'Java8'];
|
|
25
|
+
const validRuntime = ['Nodejs8.9', 'Php7', 'Java8', 'Nodejs12.16'];
|
|
26
26
|
if (runtimes.some(item => validRuntime.indexOf(item) === -1)) {
|
|
27
27
|
throw new toolbox_1.CloudBaseError(`Invalid runtime value. Now only support: ${validRuntime.join(', ')}`);
|
|
28
28
|
}
|
package/package.json
CHANGED