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.1.2 to 0.1.3

13

dist/node/index.d.ts

@@ -136,9 +136,8 @@ type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';

type Options<T = unknown> = T extends {
body: any;
headers: any;
} ? OmitKeys<OptionsBase, 'body' | 'headers'> & T : T extends {
body: any;
} ? OmitKeys<OptionsBase, 'body'> & T : T extends {
headers: any;
} ? OmitKeys<OptionsBase, 'headers'> & T : OptionsBase & T;
body?: any;
} ? T extends {
headers?: any;
} ? OmitKeys<OptionsBase, 'body' | 'headers'> & T : OmitKeys<OptionsBase, 'body'> & T & Pick<OptionsBase, 'headers'> : T extends {
headers?: any;
} ? OmitKeys<OptionsBase, 'headers'> & T & Pick<OptionsBase, 'body'> : OptionsBase & T;

@@ -145,0 +144,0 @@ declare const createClient: (config: Config) => Client;

{
"name": "@hey-api/client-fetch",
"version": "0.1.2",
"version": "0.1.3",
"type": "module",

@@ -5,0 +5,0 @@ "description": "Typesafe Fetch API client for your @hey-api/openapi-ts types",

@@ -145,8 +145,8 @@ import type {

export type Options<T = unknown> = T extends { body: any; headers: any }
? OmitKeys<OptionsBase, 'body' | 'headers'> & T
: T extends { body: any }
? OmitKeys<OptionsBase, 'body'> & T
: T extends { headers: any }
? OmitKeys<OptionsBase, 'headers'> & T
: OptionsBase & T;
export type Options<T = unknown> = T extends { body?: any }
? T extends { headers?: any }
? OmitKeys<OptionsBase, 'body' | 'headers'> & T
: OmitKeys<OptionsBase, 'body'> & T & Pick<OptionsBase, 'headers'>
: T extends { headers?: any }
? OmitKeys<OptionsBase, 'headers'> & T & Pick<OptionsBase, 'body'>
: OptionsBase & T;
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