serverless-offline 12.0.0 → 12.0.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dedicatedTo": "Blue, a great migrating bird.",
|
|
3
3
|
"name": "serverless-offline",
|
|
4
|
-
"version": "12.0.
|
|
4
|
+
"version": "12.0.1",
|
|
5
5
|
"description": "Emulate AWS λ and API Gateway locally when developing your Serverless project",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"exports": {
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
]
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@aws-sdk/client-lambda": "^3.
|
|
85
|
+
"@aws-sdk/client-lambda": "^3.224.0",
|
|
86
86
|
"@hapi/boom": "^10.0.0",
|
|
87
87
|
"@hapi/h2o2": "^10.0.0",
|
|
88
88
|
"@hapi/hapi": "^21.1.0",
|
|
@@ -110,14 +110,14 @@
|
|
|
110
110
|
"devDependencies": {
|
|
111
111
|
"@istanbuljs/esm-loader-hook": "^0.2.0",
|
|
112
112
|
"archiver": "^5.3.1",
|
|
113
|
-
"eslint": "^8.
|
|
113
|
+
"eslint": "^8.29.0",
|
|
114
114
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
115
115
|
"eslint-config-prettier": "^8.5.0",
|
|
116
116
|
"eslint-plugin-import": "^2.25.4",
|
|
117
117
|
"eslint-plugin-prettier": "^4.2.1",
|
|
118
118
|
"git-list-updated": "^1.2.1",
|
|
119
119
|
"husky": "^8.0.2",
|
|
120
|
-
"lint-staged": "^13.0
|
|
120
|
+
"lint-staged": "^13.1.0",
|
|
121
121
|
"mocha": "^10.1.0",
|
|
122
122
|
"nyc": "^15.1.0",
|
|
123
123
|
"prettier": "^2.8.0",
|
|
@@ -247,12 +247,10 @@ export default class HttpServer {
|
|
|
247
247
|
|
|
248
248
|
let statusCode = 200
|
|
249
249
|
|
|
250
|
-
if (err) {
|
|
251
|
-
statusCode = errorStatusCode
|
|
252
|
-
}
|
|
253
|
-
|
|
254
250
|
if (result && !result.errorType) {
|
|
255
251
|
statusCode = result.statusCode || 200
|
|
252
|
+
} else if (err) {
|
|
253
|
+
statusCode = errorStatusCode || 502
|
|
256
254
|
} else {
|
|
257
255
|
statusCode = 502
|
|
258
256
|
}
|
|
@@ -280,7 +280,7 @@ export default class LambdaFunction {
|
|
|
280
280
|
async #timeoutAndTerminate() {
|
|
281
281
|
await setTimeoutPromise(this.#timeout)
|
|
282
282
|
|
|
283
|
-
throw new LambdaTimeoutError('Lambda timeout.')
|
|
283
|
+
throw new LambdaTimeoutError('[504] - Lambda timeout.')
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
async runHandler() {
|