Skip to content

Commit 17a965c

Browse files
committed
feat: Expose lastEventId in node package
1 parent 4beb6ac commit 17a965c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
- [node] HTTP(S) Proxy support
6+
- [npde] Expose lastEventId method
67

78
## 4.3.4
89

packages/node/src/sdk.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,12 @@ export function init(options: NodeOptions = {}): void {
7575

7676
initAndBind(NodeClient, options);
7777
}
78+
79+
/**
80+
* This is the getter for lastEventId.
81+
*
82+
* @returns The last event id of a captured event.
83+
*/
84+
export function lastEventId(): string | undefined {
85+
return getCurrentHub().lastEventId();
86+
}

0 commit comments

Comments
 (0)