-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow passing a custom user-agent to the API client and use one per i…
…ntegration (#364) * Allow passing an user-agent to the API client * Use a custom user-agent for integrations * Change name * Lint * Pass userAgent everywhere
- Loading branch information
Showing
11 changed files
with
73 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@gitbook/runtime': minor | ||
'@gitbook/api': minor | ||
--- | ||
|
||
Allow passing a `userAgent` to the API client (`@gitbook/api`) and set a default user-agent for all integrations |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
{ | ||
"extends": "@gitbook/tsconfig/base.json", | ||
"include": ["src/**/*"], | ||
"include": [ | ||
"./src/**/*" | ||
], | ||
"rootDir": "./src", | ||
"compilerOptions": { | ||
"baseUrl": "./src", | ||
// This is not strictly true, as the API is being run in a CloudFlare worker (so not | ||
// the DOM). However, swagger-typescript-api generated types that depend on things in | ||
// the DOM lib like FormData and Response. | ||
"lib": ["DOM"] | ||
"lib": [ | ||
"DOM" | ||
] | ||
} | ||
} | ||
} |
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
Oops, something went wrong.