serverless-offline 13.3.3 → 13.3.4

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": "13.3.3",
4
+ "version": "13.3.4",
5
5
  "description": "Emulate AWS λ and API Gateway locally when developing your Serverless project",
6
6
  "license": "MIT",
7
7
  "exports": {
@@ -20,8 +20,9 @@
20
20
  "prettier:fix": "prettier --write .",
21
21
  "test": "mocha --require ./tests/mochaHooks.cjs",
22
22
  "test:cov": "NODE_OPTIONS='--experimental-loader @istanbuljs/esm-loader-hook' nyc --reporter=html npm test",
23
- "test:node": "TEST=unit mocha --require ./tests/mochaHooks.cjs",
24
- "test:unit": "TEST=unit mocha --require ./tests/mochaHooks.cjs"
23
+ "test:node": "TEST=node mocha --require ./tests/mochaHooks.cjs",
24
+ "test:unit": "TEST=unit mocha --require ./tests/mochaHooks.cjs",
25
+ "test:e2e": "TEST=e2e mocha --require ./tests/mochaHooks.cjs"
25
26
  },
26
27
  "repository": {
27
28
  "type": "git",
@@ -74,10 +75,10 @@
74
75
  ]
75
76
  },
76
77
  "dependencies": {
77
- "@aws-sdk/client-lambda": "^3.496.0",
78
+ "@aws-sdk/client-lambda": "^3.509.0",
78
79
  "@hapi/boom": "^10.0.1",
79
80
  "@hapi/h2o2": "^10.0.4",
80
- "@hapi/hapi": "^21.3.2",
81
+ "@hapi/hapi": "^21.3.3",
81
82
  "@serverless/utils": "^6.15.0",
82
83
  "array-unflat-js": "^0.1.3",
83
84
  "boxen": "^7.1.1",
@@ -87,7 +88,7 @@
87
88
  "fs-extra": "^11.2.0",
88
89
  "is-wsl": "^3.1.0",
89
90
  "java-invoke-local": "0.0.6",
90
- "jose": "^5.2.0",
91
+ "jose": "^5.2.1",
91
92
  "js-string-escape": "^1.0.1",
92
93
  "jsonpath-plus": "^8.0.0",
93
94
  "jsonschema": "^1.4.1",
@@ -108,10 +109,10 @@
108
109
  "eslint-config-prettier": "^9.1.0",
109
110
  "eslint-plugin-import": "^2.29.1",
110
111
  "eslint-plugin-prettier": "^5.1.3",
111
- "eslint-plugin-unicorn": "^50.0.1",
112
- "mocha": "^10.2.0",
112
+ "eslint-plugin-unicorn": "^51.0.1",
113
+ "mocha": "^10.3.0",
113
114
  "nyc": "^15.1.0",
114
- "prettier": "^3.2.4",
115
+ "prettier": "^3.2.5",
115
116
  "serverless": "^3.38.0"
116
117
  },
117
118
  "peerDependencies": {
@@ -654,8 +654,7 @@ export default class HttpServer {
654
654
 
655
655
  log.debug(`Using response '${responseName}'`)
656
656
 
657
- const chosenResponse = endpoint.responses[responseName]
658
-
657
+ const chosenResponse = endpoint.responses?.[responseName] ?? {}
659
658
  /* RESPONSE PARAMETERS PROCCESSING */
660
659
 
661
660
  const { responseParameters } = chosenResponse