serverless-offline 12.0.2 → 12.0.3
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.3",
|
|
5
5
|
"description": "Emulate AWS λ and API Gateway locally when developing your Serverless project",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"exports": {
|
|
@@ -82,11 +82,12 @@
|
|
|
82
82
|
]
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@aws-sdk/client-lambda": "^3.
|
|
85
|
+
"@aws-sdk/client-lambda": "^3.231.0",
|
|
86
86
|
"@hapi/boom": "^10.0.0",
|
|
87
87
|
"@hapi/h2o2": "^10.0.0",
|
|
88
88
|
"@hapi/hapi": "^21.1.0",
|
|
89
89
|
"@serverless/utils": "^6.8.2",
|
|
90
|
+
"array-unflat-js": "^0.1.0",
|
|
90
91
|
"boxen": "^7.0.0",
|
|
91
92
|
"chalk": "^5.2.0",
|
|
92
93
|
"execa": "^6.1.0",
|
|
@@ -110,7 +111,7 @@
|
|
|
110
111
|
"devDependencies": {
|
|
111
112
|
"@istanbuljs/esm-loader-hook": "^0.2.0",
|
|
112
113
|
"archiver": "^5.3.1",
|
|
113
|
-
"eslint": "^8.
|
|
114
|
+
"eslint": "^8.30.0",
|
|
114
115
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
115
116
|
"eslint-config-prettier": "^8.5.0",
|
|
116
117
|
"eslint-plugin-import": "^2.25.4",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import unflat from 'array-unflat-js'
|
|
2
2
|
|
|
3
3
|
const { fromEntries } = Object
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ export default function parseHeaders(rawHeaders) {
|
|
|
8
8
|
return null
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
const unflattened =
|
|
11
|
+
const unflattened = unflat(rawHeaders)
|
|
12
12
|
|
|
13
13
|
return fromEntries(unflattened)
|
|
14
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import unflat from 'array-unflat-js'
|
|
2
2
|
|
|
3
3
|
const { fromEntries } = Object
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ export default function parseMultiValueHeaders(rawHeaders) {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
const map = new Map()
|
|
13
|
-
const unflattened =
|
|
13
|
+
const unflattened = unflat(rawHeaders)
|
|
14
14
|
|
|
15
15
|
// eslint-disable-next-line no-restricted-syntax
|
|
16
16
|
for (const [key, value] of unflattened) {
|
package/src/utils/unflatten.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// [0, 1, 2, 3, 4 ,5] => [[0, 1], [2, 3], [4, 5]]
|
|
2
|
-
export default function unflatten(value, size) {
|
|
3
|
-
const unflattened = []
|
|
4
|
-
|
|
5
|
-
for (let i = 0; i < value.length; i += size) {
|
|
6
|
-
const slice = value.slice(i, i + size)
|
|
7
|
-
unflattened.push(slice)
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
return unflattened
|
|
11
|
-
}
|