@jcoreio/toolchain-aws-lambda 5.3.0 → 5.3.1
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/package.json +2 -2
- package/scripts/deploy.cjs +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jcoreio/toolchain-aws-lambda",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.1",
|
|
4
4
|
"description": "AWS Lambda function build toolchain",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dotenv": "^16.4.5",
|
|
24
24
|
"resolve-bin": "^1.0.0",
|
|
25
25
|
"zod": "^3.21.4",
|
|
26
|
-
"@jcoreio/toolchain": "5.3.
|
|
26
|
+
"@jcoreio/toolchain": "5.3.1"
|
|
27
27
|
},
|
|
28
28
|
"toolchainManaged": {
|
|
29
29
|
"devDependencies": {
|
package/scripts/deploy.cjs
CHANGED
|
@@ -117,12 +117,13 @@ module.exports = async function deploy() {
|
|
|
117
117
|
const isServerless = lambdaResource.Type === 'AWS::Serverless::Function'
|
|
118
118
|
|
|
119
119
|
// Adapt between janky difference between AWS::Serverless::Function and AWS::Lambda::Function
|
|
120
|
-
const adapter =
|
|
121
|
-
?
|
|
120
|
+
const adapter =
|
|
121
|
+
isServerless ?
|
|
122
|
+
{
|
|
122
123
|
get Code() {
|
|
123
124
|
const { CodeUri } = lambdaResource
|
|
124
|
-
return CodeUri
|
|
125
|
-
|
|
125
|
+
return CodeUri ?
|
|
126
|
+
{
|
|
126
127
|
get S3Bucket() {
|
|
127
128
|
return CodeUri.Bucket
|
|
128
129
|
},
|