@hey-api/client-fetch
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -158,5 +158,5 @@ type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited'; | ||
headers?: any; | ||
} ? OmitKeys<OptionsBase<ThrowOnError>, 'body' | 'headers' | 'responseTransformer'> & T : OmitKeys<OptionsBase<ThrowOnError>, 'body' | 'responseTransformer'> & T & Pick<OptionsBase<ThrowOnError>, 'headers'> : T extends { | ||
} ? OmitKeys<OptionsBase<ThrowOnError>, 'body' | 'headers'> & T : OmitKeys<OptionsBase<ThrowOnError>, 'body'> & T & Pick<OptionsBase<ThrowOnError>, 'headers'> : T extends { | ||
headers?: any; | ||
} ? OmitKeys<OptionsBase<ThrowOnError>, 'headers' | 'responseTransformer'> & T & Pick<OptionsBase<ThrowOnError>, 'body'> : OptionsBase<ThrowOnError> & T; | ||
} ? OmitKeys<OptionsBase<ThrowOnError>, 'headers'> & T & Pick<OptionsBase<ThrowOnError>, 'body'> : OptionsBase<ThrowOnError> & T; | ||
@@ -163,0 +163,0 @@ declare const createClient: (config?: Config) => Client; |
{ | ||
"name": "@hey-api/client-fetch", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Type-safe Fetch API client for your @hey-api/openapi-ts types", |
@@ -187,14 +187,10 @@ import type { | ||
? T extends { headers?: any } | ||
? OmitKeys< | ||
OptionsBase<ThrowOnError>, | ||
'body' | 'headers' | 'responseTransformer' | ||
> & | ||
T | ||
: OmitKeys<OptionsBase<ThrowOnError>, 'body' | 'responseTransformer'> & | ||
? OmitKeys<OptionsBase<ThrowOnError>, 'body' | 'headers'> & T | ||
: OmitKeys<OptionsBase<ThrowOnError>, 'body'> & | ||
T & | ||
Pick<OptionsBase<ThrowOnError>, 'headers'> | ||
: T extends { headers?: any } | ||
? OmitKeys<OptionsBase<ThrowOnError>, 'headers' | 'responseTransformer'> & | ||
? OmitKeys<OptionsBase<ThrowOnError>, 'headers'> & | ||
T & | ||
Pick<OptionsBase<ThrowOnError>, 'body'> | ||
: OptionsBase<ThrowOnError> & T; |
@@ -256,6 +256,6 @@ import type { Config } from './types'; | ||
url = url.replace( | ||
match, | ||
const replaceValue = encodeURIComponent( | ||
style === 'label' ? `.${value as string}` : (value as string), | ||
); | ||
url = url.replace(match, replaceValue); | ||
} | ||
@@ -262,0 +262,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49494
1053