@batkit/express-middleware 0.1.5 → 1.0.0
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/README.md +0 -11
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -197,17 +197,6 @@ Wraps async route handlers to catch errors.
|
|
|
197
197
|
|
|
198
198
|
### Types
|
|
199
199
|
|
|
200
|
-
#### `RequestContext`
|
|
201
|
-
|
|
202
|
-
```typescript
|
|
203
|
-
interface RequestContext {
|
|
204
|
-
requestId: string;
|
|
205
|
-
logger: Logger;
|
|
206
|
-
userId?: string;
|
|
207
|
-
metadata: Record<string, unknown>;
|
|
208
|
-
}
|
|
209
|
-
```
|
|
210
|
-
|
|
211
200
|
#### `ErrorFormatter`
|
|
212
201
|
|
|
213
202
|
```typescript
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batkit/express-middleware",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Express middleware for error handling and request context (Node.js only)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"error-handling",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@batkit/errors": "0.
|
|
50
|
-
"@batkit/logger": "0.
|
|
51
|
-
"@batkit/rfc9457": "0.
|
|
49
|
+
"@batkit/errors": "1.0.0",
|
|
50
|
+
"@batkit/logger": "1.0.0",
|
|
51
|
+
"@batkit/rfc9457": "1.0.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@total-typescript/shoehorn": "^0.1.2",
|