Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hey-api/client-fetch

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hey-api/client-fetch - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

4

dist/node/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc