@jsenv/server 15.1.0 → 15.1.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 +2 -2
- package/src/fetch_filesystem.js +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/server",
|
|
3
|
-
"version": "15.1.
|
|
3
|
+
"version": "15.1.2",
|
|
4
4
|
"description": "Write your Node.js server using pure functions",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@jsenv/log": "3.4.0",
|
|
39
39
|
"@jsenv/url-meta": "8.1.0",
|
|
40
40
|
"@jsenv/utils": "2.0.1",
|
|
41
|
-
"ws": "8.
|
|
41
|
+
"ws": "8.14.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@jsenv/fetch": "../fetch/",
|
package/src/fetch_filesystem.js
CHANGED
|
@@ -372,9 +372,10 @@ const getCompressedResponse = async ({ sourceUrl, headers }) => {
|
|
|
372
372
|
}
|
|
373
373
|
|
|
374
374
|
const fileReadableStream = fileUrlToReadableStream(sourceUrl);
|
|
375
|
-
const body =
|
|
376
|
-
|
|
377
|
-
|
|
375
|
+
const body =
|
|
376
|
+
await availableCompressionFormats[acceptedCompressionFormat](
|
|
377
|
+
fileReadableStream,
|
|
378
|
+
);
|
|
378
379
|
|
|
379
380
|
return {
|
|
380
381
|
status: 200,
|