-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Include
lastReadPosition
in the flush
event
Users will sometimes want to track the current position that `tail-file` is reading from. This could be useful between two separate `tail-file` instances on the same file. Since the `flush` event represents being "caught up" when reading from the source file, emit a `lastReadPosition` in the `flush` event payload for informative purposes. This value represents the `startPos` value at the time of flush. Semver: minor Fixes: #19
- Loading branch information
1 parent
165c5c9
commit 91762e0
Showing
4 changed files
with
115 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters