@hoajs/compress 0.1.0 → 0.1.1
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/CHANGELOG.md +4 -0
- package/package.json +2 -2
- package/types/index.d.ts +2 -4
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hoajs/compress",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Compress middleware for Hoa.",
|
|
5
5
|
"main": "./dist/cjs/compress.js",
|
|
6
6
|
"type": "module",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@commitlint/config-conventional": "20.0.0",
|
|
45
45
|
"eslint": "9.37.0",
|
|
46
46
|
"globals": "16.4.0",
|
|
47
|
-
"hoa": "
|
|
47
|
+
"hoa": "*",
|
|
48
48
|
"husky": "9.1.7",
|
|
49
49
|
"jest": "30.2.0",
|
|
50
50
|
"neostandard": "0.12.2",
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { HoaMiddleware } from 'hoa'
|
|
2
2
|
|
|
3
3
|
export type EncodingType = 'gzip' | 'deflate'
|
|
4
4
|
|
|
@@ -7,8 +7,6 @@ export type CompressionOptions = {
|
|
|
7
7
|
threshold?: number
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
export function compress(options?: CompressionOptions): CompressMiddleware
|
|
10
|
+
export function compress(options?: CompressionOptions): HoaMiddleware
|
|
13
11
|
|
|
14
12
|
export default compress
|