serverless-offline 13.3.1 → 13.3.2

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.1",
4
+ "version": "13.3.2",
5
5
  "description": "Emulate AWS λ and API Gateway locally when developing your Serverless project",
6
6
  "license": "MIT",
7
7
  "exports": {
@@ -73,7 +73,7 @@
73
73
  ]
74
74
  },
75
75
  "dependencies": {
76
- "@aws-sdk/client-lambda": "^3.468.0",
76
+ "@aws-sdk/client-lambda": "^3.470.0",
77
77
  "@hapi/boom": "^10.0.1",
78
78
  "@hapi/h2o2": "^10.0.4",
79
79
  "@hapi/hapi": "^21.3.2",
@@ -96,7 +96,7 @@
96
96
  "p-memoize": "^7.1.1",
97
97
  "p-retry": "^6.1.0",
98
98
  "velocityjs": "^2.0.6",
99
- "ws": "^8.14.2"
99
+ "ws": "^8.15.1"
100
100
  },
101
101
  "devDependencies": {
102
102
  "@istanbuljs/esm-loader-hook": "^0.2.0",
@@ -110,7 +110,7 @@
110
110
  "eslint-plugin-unicorn": "^49.0.0",
111
111
  "mocha": "^10.2.0",
112
112
  "nyc": "^15.1.0",
113
- "prettier": "^3.1.0",
113
+ "prettier": "^3.1.1",
114
114
  "serverless": "^3.38.0"
115
115
  },
116
116
  "peerDependencies": {
@@ -1,7 +1,15 @@
1
1
  export default function getApiKeysValues(apiKeys) {
2
2
  return new Set(
3
3
  apiKeys
4
- .filter((apiKey) => typeof apiKey === 'object' && apiKey.value != null)
5
- .map(({ value }) => value),
4
+ .map((apiKey) => {
5
+ if (typeof apiKey === 'object' && apiKey.value != null) {
6
+ return apiKey.value
7
+ }
8
+ if (typeof apiKey === 'string') {
9
+ return apiKey
10
+ }
11
+ return undefined
12
+ })
13
+ .filter((apiKey) => !!apiKey),
6
14
  )
7
15
  }