serverless-offline 10.3.0 → 10.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dedicatedTo": "Blue, a great migrating bird.",
|
|
3
3
|
"name": "serverless-offline",
|
|
4
|
-
"version": "10.3.
|
|
4
|
+
"version": "10.3.1",
|
|
5
5
|
"description": "Emulate AWS λ and API Gateway locally when developing your Serverless project",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"exports": {
|
|
@@ -83,10 +83,10 @@
|
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"@hapi/boom": "^10.0.0",
|
|
86
|
-
"@hapi/h2o2": "^
|
|
86
|
+
"@hapi/h2o2": "^10.0.0",
|
|
87
87
|
"@hapi/hapi": "^20.2.2",
|
|
88
88
|
"@serverless/utils": "^6.7.0",
|
|
89
|
-
"aws-sdk": "^2.
|
|
89
|
+
"aws-sdk": "^2.1224.0",
|
|
90
90
|
"boxen": "^7.0.0",
|
|
91
91
|
"chalk": "^5.0.1",
|
|
92
92
|
"execa": "^6.1.0",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"jsonpath-plus": "^7.2.0",
|
|
98
98
|
"jsonschema": "^1.4.1",
|
|
99
99
|
"jszip": "^3.10.1",
|
|
100
|
-
"luxon": "^3.0.
|
|
100
|
+
"luxon": "^3.0.4",
|
|
101
101
|
"node-fetch": "^3.2.10",
|
|
102
102
|
"node-schedule": "^2.1.0",
|
|
103
103
|
"object.hasown": "^1.1.1",
|
package/src/events/http/Http.js
CHANGED
|
@@ -36,10 +36,10 @@ export default class Http {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
create(events) {
|
|
39
|
-
events.forEach(({ functionKey, handler, http
|
|
39
|
+
events.forEach(({ functionKey, handler, http }) => {
|
|
40
40
|
this.#createEvent(functionKey, http, handler)
|
|
41
41
|
|
|
42
|
-
if (
|
|
42
|
+
if (http.private) {
|
|
43
43
|
this.#hasPrivateHttpEvent = true
|
|
44
44
|
}
|
|
45
45
|
})
|
|
@@ -898,8 +898,6 @@ export default class HttpServer {
|
|
|
898
898
|
}
|
|
899
899
|
|
|
900
900
|
createRoutes(functionKey, httpEvent, handler) {
|
|
901
|
-
const [handlerPath] = splitHandlerPathAndName(handler)
|
|
902
|
-
|
|
903
901
|
let method
|
|
904
902
|
let path
|
|
905
903
|
let hapiPath
|
|
@@ -926,6 +924,8 @@ export default class HttpServer {
|
|
|
926
924
|
hapiPath = generateHapiPath(path, this.#options, this.#serverless)
|
|
927
925
|
}
|
|
928
926
|
|
|
927
|
+
const [handlerPath] = splitHandlerPathAndName(handler)
|
|
928
|
+
|
|
929
929
|
const endpoint = new Endpoint(
|
|
930
930
|
join(this.#serverless.config.servicePath, handlerPath),
|
|
931
931
|
httpEvent,
|