Skip to content

Commit b7f7d9e

Browse files
committed
fix: support cfs
1 parent 62315a9 commit b7f7d9e

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

serverless.component.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: koa
2-
version: 0.0.9
2+
version: 0.0.10
33
author: Tencent Cloud, Inc.
44
org: Tencent Cloud, Inc.
55
description: Deploy a serverless Koa.js application onto Tencent SCF and API Gateway.

src/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"dependencies": {
33
"download": "^8.0.0",
4-
"tencent-component-toolkit": "^1.13.2",
4+
"tencent-component-toolkit": "^1.15.7",
55
"type": "^2.0.0"
66
}
77
}

src/utils.js

+3
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ const prepareInputs = async (instance, credentials, inputs = {}) => {
243243
layers: ensureIterable(tempFunctionConf.layers ? tempFunctionConf.layers : inputs.layers, {
244244
default: []
245245
}),
246+
cfs: ensureIterable(tempFunctionConf.cfs ? tempFunctionConf.cfs : inputs.cfs, {
247+
default: []
248+
}),
246249
publish: inputs.publish,
247250
traffic: inputs.traffic,
248251
lastVersion: instance.state.lastVersion,

tests/integration.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jest.setTimeout(300000)
1010
const instanceYaml = {
1111
org: 'orgDemo',
1212
app: 'appDemo',
13-
component: 'koa@dev',
13+
component: 'koa',
1414
name: `koa-integration-tests-${generateId()}`,
1515
stage: 'dev',
1616
inputs: {
1717
region: 'ap-guangzhou',
18-
runtime: 'Nodejs8.9',
18+
runtime: 'Nodejs10.15',
1919
apigatewayConf: { environment: 'test' }
2020
}
2121
}

0 commit comments

Comments
 (0)