Skip to content

Commit 51243f8

Browse files
chore(deps): lock file maintenance (#711)
This PR contains the following updates: | Update | Change | |---|---| | lockFileMaintenance | All locks refreshed | 🔧 This Pull Request updates lock files to use the latest dependency versions. --- ### Configuration 📅 **Schedule**: Branch creation - "before 2am" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/apify/apify-cli). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS40Mi40IiwidXBkYXRlZEluVmVyIjoiMzkuNzIuNSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Vlad Frangu <[email protected]>
1 parent fcd8271 commit 51243f8

File tree

3 files changed

+2419
-2381
lines changed

3 files changed

+2419
-2381
lines changed

src/lib/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ const getTokenWithAuthFileFallback = (existingToken?: string) => {
151151
return existingToken;
152152
};
153153

154+
type CJSAxiosHeaders = import('axios', { with: { 'resolution-mode': 'require' } }).AxiosRequestConfig['headers'];
155+
154156
/**
155157
* Returns options for ApifyClient
156158
*/
@@ -162,7 +164,7 @@ export const getApifyClientOptions = (token?: string, apiBaseUrl?: string): Apif
162164
baseUrl: apiBaseUrl || process.env.APIFY_CLIENT_BASE_URL,
163165
requestInterceptors: [
164166
(config) => {
165-
config.headers ??= new AxiosHeaders();
167+
config.headers ??= new AxiosHeaders() as CJSAxiosHeaders;
166168

167169
for (const [key, value] of Object.entries(APIFY_CLIENT_DEFAULT_HEADERS)) {
168170
config.headers![key] = value;

0 commit comments

Comments
 (0)