-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: don't require ua-parser-js in lambda-context
BREAKING CHANGE: If you want to continue to use `ua-parser-js` in `lambda-context` you will need to use `lambdaContextWithUaParser` and pass in your own parser function as described here: https://github.com/birchill/bugsnag-zero?tab=readme-ov-file#using-a-custom-user-agent-string-parser This is because from version `ua-parser-js` version 2 onwards, users are required to either use the AGPL version or license the library. It's best to allow users of this package to decide how they want to consume `ua-parser-js`.
- Loading branch information
Showing
7 changed files
with
38 additions
and
41 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export type UserAgentInfo = { | ||
browserName?: string; | ||
browserVersion?: string; | ||
osName?: string; | ||
osVersion?: string; | ||
manufacturer?: string; | ||
model?: string; | ||
modelNumber?: string; | ||
}; | ||
|
||
export type UserAgentParserFn = (userAgent: string) => UserAgentInfo; |