@hoajs/request-id 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/request-id",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Request ID middleware for Hoa.",
|
|
5
5
|
"main": "./dist/cjs/request-id.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 { HoaContext } from 'hoa'
|
|
1
|
+
import type { HoaContext, HoaMiddleware } from 'hoa'
|
|
2
2
|
|
|
3
3
|
export type RequestIdGenerator = (ctx: HoaContext) => string
|
|
4
4
|
|
|
@@ -8,8 +8,6 @@ export interface RequestIdOptions {
|
|
|
8
8
|
generator?: RequestIdGenerator
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
export function requestId(options?: RequestIdOptions): RequestIdMiddleware
|
|
11
|
+
export function requestId(options?: RequestIdOptions): HoaMiddleware
|
|
14
12
|
|
|
15
13
|
export default requestId
|