-
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: updated getUserAgentIntegration
- Loading branch information
Egor Didenko
committed
Apr 29, 2024
1 parent
a840e90
commit 38b8cc5
Showing
4 changed files
with
13 additions
and
9 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
10 changes: 7 additions & 3 deletions
10
packages/react-uploader/src/utils/getUserAgentIntegration.ts
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import { version, name } from "../../package.json"; | ||
import { | ||
version as reactUploaderVersion, | ||
name as reactUploaderName, | ||
} from "../../package.json"; | ||
import { version } from "react"; | ||
|
||
export const getUserAgentIntegration = (pubkey: string) => { | ||
return `${name}/${version}/${pubkey} (JavaScript; React;)`; | ||
export const getUserAgentIntegration = () => { | ||
return `React/${version}; ${reactUploaderName}/${reactUploaderVersion}`; | ||
}; |