serverless-offline 9.2.4 → 9.2.5
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": "9.2.
|
|
4
|
+
"version": "9.2.5",
|
|
5
5
|
"description": "Emulate AWS λ and API Gateway locally when developing your Serverless project",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "./src/index.js",
|
|
@@ -788,12 +788,6 @@ export default class HttpServer {
|
|
|
788
788
|
response.variety = 'buffer'
|
|
789
789
|
} else if (typeof result === 'string') {
|
|
790
790
|
response.source = stringify(result)
|
|
791
|
-
} else if (result && result.body && typeof result.body !== 'string') {
|
|
792
|
-
return this.#reply502(
|
|
793
|
-
response,
|
|
794
|
-
'According to the API Gateway specs, the body content must be stringified. Check your Lambda response and make sure you are invoking JSON.stringify(YOUR_CONTENT) on your body object',
|
|
795
|
-
{},
|
|
796
|
-
)
|
|
797
791
|
} else {
|
|
798
792
|
response.source = result
|
|
799
793
|
}
|
|
@@ -888,6 +882,7 @@ export default class HttpServer {
|
|
|
888
882
|
response.variety = 'buffer'
|
|
889
883
|
} else {
|
|
890
884
|
if (result && result.body && typeof result.body !== 'string') {
|
|
885
|
+
// FIXME TODO we should probably just write to console instead of returning a payload
|
|
891
886
|
return this.#reply502(
|
|
892
887
|
response,
|
|
893
888
|
'According to the API Gateway specs, the body content must be stringified. Check your Lambda response and make sure you are invoking JSON.stringify(YOUR_CONTENT) on your body object',
|