@scirexs/fetchy 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # fetchy
2
2
 
3
- A lightweight, type-safe fetch wrapper with built-in retry logic, timeout handling, and automatic body parsing.
4
-
5
3
  [![npm version](https://img.shields.io/npm/v/%40scirexs%2Ffetchy)](https://www.npmjs.com/package/@scirexs/fetchy)
6
4
  [![JSR](https://img.shields.io/jsr/v/%40scirexs/fetchy)](https://jsr.io/@scirexs/fetchy)
7
5
  [![license](https://img.shields.io/github/license/scirexs/fetchy)](https://github.com/scirexs/fetchy/blob/main/LICENSE)
8
6
 
7
+ A lightweight, type-safe fetch wrapper with built-in retry logic, timeout handling, and automatic body parsing.
8
+
9
9
  ## Features
10
10
 
11
11
  - **Lightweight** - Zero dependencies, works in Deno, Node.js, and browsers
@@ -52,8 +52,8 @@ console.log(user?.name);
52
52
  Performs an HTTP request and returns the raw Response object.
53
53
 
54
54
  #### Parameters
55
- - `url`: string | URL | Request - The request URL
56
- - `options`: FetchyOptions (optional) - Configuration options
55
+ - `url`: `string | URL | Request` - The request URL
56
+ - `options`: `FetchyOptions` (optional) - Configuration options
57
57
 
58
58
  #### Returns
59
59
  `Promise<Response | null>`
@@ -78,9 +78,9 @@ if (response?.ok) {
78
78
  Performs an HTTP request and automatically parses the response body.
79
79
 
80
80
  #### Parameters
81
- - `url`: string | URL | Request - The request URL
82
- - `type`: "text" | "json" | "bytes" | "auto" (default: "auto") - Response parsing type
83
- - `options`: FetchyOptions (optional) - Configuration options
81
+ - `url`: `string | URL | Request` - The request URL
82
+ - `type`: `"text" | "json" | "bytes" | "auto"` (default: `"auto"`) - Response parsing type
83
+ - `options`: `FetchyOptions` (optional) - Configuration options
84
84
 
85
85
  #### Returns
86
86
  `Promise<T | string | Uint8Array | null>`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scirexs/fetchy",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "A lightweight fetch wrapper.",
5
5
  "keywords": [
6
6
  "fetch",