Skip to content

Commit 414647c

Browse files
committed
meta: Export parseRequest
1 parent 7d0b4ef commit 414647c

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22

33
## Unreleased
44

5-
## 4.2.3
6-
7-
- [core]: Several internal fixes regarding integration, exports and domain.
8-
95
## 4.2.2
106

7+
- [core]: Several internal fixes regarding integration, exports and domain.
118
- [core]: "De-deprecate" name of `Integration` interface.
9+
- [node]: Export `parseRequest` on `Handlers`.
1210

1311
## 4.2.1
1412

packages/node/src/handlers.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,15 @@ function extractUserData(req: { [key: string]: any }, keys: boolean | string[]):
145145
return user;
146146
}
147147

148-
/** JSDoc */
149-
function parseRequest(
148+
/**
149+
* Enriches passed event with request data.
150+
*
151+
*
152+
* @param event Will be mutated and enriched with req data
153+
* @param req Request object
154+
* @param options object containing flags to enable functionality
155+
*/
156+
export function parseRequest(
150157
event: SentryEvent,
151158
req: {
152159
[key: string]: any;

0 commit comments

Comments
 (0)