File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 11import { getLogger } from '../internal/logger'
22import type { ClientConfig } from './client-ini-factory'
3- import { withLegacyInterceptors , withProfile } from './client-ini-factory'
4- import type { Profile } from './client-ini-profile'
3+ import {
4+ withAdditionalInterceptors ,
5+ withLegacyInterceptors ,
6+ withProfile ,
7+ } from './client-ini-factory'
58import type { Settings } from './client-settings'
69import { assertValidSettings } from './client-settings'
710import { userAgent , version } from './constants'
@@ -99,5 +102,8 @@ export const createAdvancedClient = (...configs: ClientConfig[]): Client => {
99102 *
100103 * @public
101104 */
102- export const createClient = ( profile : Profile = { } ) : Client =>
103- createAdvancedClient ( withProfile ( profile ) )
105+ export const createClient = ( settings : Partial < Settings > = { } ) : Client =>
106+ createAdvancedClient (
107+ withProfile ( settings ) ,
108+ withAdditionalInterceptors ( settings . interceptors ?? [ ] ) ,
109+ )
You can’t perform that action at this time.
0 commit comments