@hey-api/client-fetch
Advanced tools
Comparing version 0.1.10 to 0.1.11
{ | ||
"name": "@hey-api/client-fetch", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Typesafe Fetch API client for your @hey-api/openapi-ts types", |
<div align="center"> | ||
<img width="150" height="150" src="https://heyapi.vercel.app/logo.png" alt="Logo"> | ||
<h1 align="center"><b>Fetch API Client</b></h1> | ||
<p align="center">🚀 Typesafe Fetch API client for your @hey-api/openapi-ts types.</p> | ||
<p align="center">🚀 Typesafe Fetch API client for your Hey API types.</p> | ||
</div> | ||
Plug and play Fetch API wrapper for @hey-api/openapi-ts generator. | ||
Plug and play Fetch API wrapper for `@hey-api/openapi-ts` generator. | ||
@@ -16,4 +16,5 @@ [Live demo](https://stackblitz.com/edit/hey-api-client-fetch-example?file=openapi-ts.config.ts,src%2Fclient%2Fschemas.gen.ts,src%2Fclient%2Fservices.gen.ts,src%2Fclient%2Ftypes.gen.ts,src%2FApp.tsx) | ||
- access to the original request and response | ||
- each request call is configurable | ||
- granular request and response customization options | ||
- minimal learning curve thanks to extending the underlying technology | ||
- support bundling inside the generated output | ||
@@ -20,0 +21,0 @@ ## Documentation |
@@ -121,4 +121,4 @@ import type { Client, Config, RequestOptions } from './types'; | ||
let data = await response[parseAs](); | ||
if (parseAs === 'json' && options.responseTransformer) { | ||
data = await options.responseTransformer(data); | ||
if (parseAs === 'json' && opts.responseTransformer) { | ||
data = await opts.responseTransformer(data); | ||
} | ||
@@ -125,0 +125,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
44333
35