@hey-api/client-fetch
Advanced tools
Comparing version 0.4.2 to 0.4.3
{ | ||
"name": "@hey-api/client-fetch", | ||
"version": "0.4.2", | ||
"description": "Type-safe Fetch API client for your @hey-api/openapi-ts types", | ||
"version": "0.4.3", | ||
"description": "π Fetch API client for `@hey-api/openapi-ts` codegen.", | ||
"homepage": "https://heyapi.dev/", | ||
@@ -19,3 +19,3 @@ "repository": { | ||
}, | ||
"funding": "https://github.com/sponsors/mrlubos", | ||
"funding": "https://github.com/sponsors/hey-api", | ||
"keywords": [ | ||
@@ -65,4 +65,4 @@ "client", | ||
"test": "vitest run", | ||
"typecheck": "vitest --typecheck" | ||
"typecheck": "vitest --typecheck --watch=false" | ||
} | ||
} |
<div align="center"> | ||
<img width="150" height="150" src="https://heyapi.dev/logo.png" alt="Logo"> | ||
<h1 align="center"><b>Fetch API Client</b></h1> | ||
<p align="center">π Type-safe Fetch API client for your Hey API types.</p> | ||
<p align="center">π Fetch API client for `@hey-api/openapi-ts` codegen.</p> | ||
</div> | ||
Plug and play Fetch API wrapper for `@hey-api/openapi-ts` generator. | ||
[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) | ||
@@ -13,3 +11,3 @@ | ||
- seamless integration with `@hey-api/openapi-ts` | ||
- seamless integration with `@hey-api/openapi-ts` ecosystem | ||
- type-safe response data and errors | ||
@@ -27,3 +25,3 @@ - access to the original request and response | ||
Love Hey API? Please consider becoming a [sponsor](https://github.com/sponsors/mrlubos). | ||
Love Hey API? Please consider becoming a [sponsor](https://github.com/sponsors/hey-api). | ||
@@ -30,0 +28,0 @@ ## GitHub Integration (coming soon) |
@@ -335,2 +335,3 @@ import type { Config } from './types'; | ||
// TODO: parser - better detection of MIME types | ||
if (content.startsWith('application/json') || content.endsWith('+json')) { | ||
@@ -337,0 +338,0 @@ return 'json'; |
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
117333
1066
37