@remix-run/compression-middleware 0.1.12 → 0.1.13
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/dist/index.js +1 -1
- package/dist/lib/compression.d.ts +2 -1
- package/dist/lib/compression.d.ts.map +1 -1
- package/dist/lib/compression.js +2 -1
- package/package.json +12 -12
- package/src/lib/compression.ts +2 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { compression } from
|
|
1
|
+
export { compression } from './lib/compression.js';
|
|
@@ -40,7 +40,8 @@ export interface CompressionOptions {
|
|
|
40
40
|
/**
|
|
41
41
|
* Creates a middleware handler that automatically compresses responses based on the
|
|
42
42
|
* client's Accept-Encoding header, along with an additional Content-Type filter
|
|
43
|
-
* by default to only apply compression to appropriate media types.
|
|
43
|
+
* by default to only apply compression to appropriate media types. Eligible responses
|
|
44
|
+
* vary on `Accept-Encoding`, including when identity is selected.
|
|
44
45
|
*
|
|
45
46
|
* @param options Optional compression settings
|
|
46
47
|
* @returns A middleware handler that automatically compresses responses based on the client's Accept-Encoding header
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compression.d.ts","sourceRoot":"","sources":["../../src/lib/compression.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAIzD,KAAK,QAAQ,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS,CAAA;AAEzC;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAA;IAEhD;;;;;OAKG;IACH,SAAS,CAAC,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,KAAK,QAAQ,EAAE,CAAC,CAAA;IAE7D;;;;;OAKG;IACH,IAAI,CAAC,EAAE,WAAW,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,KAAK,WAAW,CAAC,CAAA;IAE1D;;;;;OAKG;IACH,MAAM,CAAC,EAAE,aAAa,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,KAAK,aAAa,CAAC,CAAA;CACjE;AAED
|
|
1
|
+
{"version":3,"file":"compression.d.ts","sourceRoot":"","sources":["../../src/lib/compression.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAIzD,KAAK,QAAQ,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS,CAAA;AAEzC;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAA;IAEhD;;;;;OAKG;IACH,SAAS,CAAC,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,KAAK,QAAQ,EAAE,CAAC,CAAA;IAE7D;;;;;OAKG;IACH,IAAI,CAAC,EAAE,WAAW,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,KAAK,WAAW,CAAC,CAAA;IAE1D;;;;;OAKG;IACH,MAAM,CAAC,EAAE,aAAa,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,KAAK,aAAa,CAAC,CAAA;CACjE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,WAAW,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,UAAU,CAwCpE"}
|
package/dist/lib/compression.js
CHANGED
|
@@ -3,7 +3,8 @@ import { isCompressibleMimeType } from '@remix-run/mime';
|
|
|
3
3
|
/**
|
|
4
4
|
* Creates a middleware handler that automatically compresses responses based on the
|
|
5
5
|
* client's Accept-Encoding header, along with an additional Content-Type filter
|
|
6
|
-
* by default to only apply compression to appropriate media types.
|
|
6
|
+
* by default to only apply compression to appropriate media types. Eligible responses
|
|
7
|
+
* vary on `Accept-Encoding`, including when identity is selected.
|
|
7
8
|
*
|
|
8
9
|
* @param options Optional compression settings
|
|
9
10
|
* @returns A middleware handler that automatically compresses responses based on the client's Accept-Encoding header
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remix-run/compression-middleware",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "Middleware for compressing HTTP responses",
|
|
5
5
|
"author": "Michael Jackson <mjijackson@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "^24.6.0",
|
|
30
|
-
"
|
|
31
|
-
"@remix-run/fetch-router": "0.20.1",
|
|
30
|
+
"typescript": "^7.0.2",
|
|
32
31
|
"@remix-run/assert": "0.3.0",
|
|
33
|
-
"@remix-run/
|
|
34
|
-
"@remix-run/
|
|
32
|
+
"@remix-run/fetch-router": "0.21.0",
|
|
33
|
+
"@remix-run/response": "0.3.8",
|
|
34
|
+
"@remix-run/test": "0.6.0",
|
|
35
35
|
"@remix-run/mime": "0.4.2"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@remix-run/
|
|
39
|
-
"@remix-run/response": "^0.3.
|
|
40
|
-
"@remix-run/
|
|
38
|
+
"@remix-run/fetch-router": "^0.21.0",
|
|
39
|
+
"@remix-run/response": "^0.3.8",
|
|
40
|
+
"@remix-run/mime": "^0.4.2"
|
|
41
41
|
},
|
|
42
42
|
"keywords": [
|
|
43
43
|
"fetch",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"deflate"
|
|
50
50
|
],
|
|
51
51
|
"scripts": {
|
|
52
|
-
"build": "
|
|
52
|
+
"build": "tsc -p tsconfig.build.json",
|
|
53
53
|
"clean": "git clean -fdX",
|
|
54
|
-
"test": "remix
|
|
55
|
-
"test:bun": "bun x --bun remix
|
|
56
|
-
"typecheck": "
|
|
54
|
+
"test": "remix test",
|
|
55
|
+
"test:bun": "bun x --bun remix test",
|
|
56
|
+
"typecheck": "tsc --noEmit"
|
|
57
57
|
}
|
|
58
58
|
}
|
package/src/lib/compression.ts
CHANGED
|
@@ -49,7 +49,8 @@ export interface CompressionOptions {
|
|
|
49
49
|
/**
|
|
50
50
|
* Creates a middleware handler that automatically compresses responses based on the
|
|
51
51
|
* client's Accept-Encoding header, along with an additional Content-Type filter
|
|
52
|
-
* by default to only apply compression to appropriate media types.
|
|
52
|
+
* by default to only apply compression to appropriate media types. Eligible responses
|
|
53
|
+
* vary on `Accept-Encoding`, including when identity is selected.
|
|
53
54
|
*
|
|
54
55
|
* @param options Optional compression settings
|
|
55
56
|
* @returns A middleware handler that automatically compresses responses based on the client's Accept-Encoding header
|