soon-fetch 4.0.0-beta.4 → 4.0.0-beta.5

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.
package/dist/index.d.cts CHANGED
@@ -194,14 +194,14 @@ declare function requestWithStore<T>(store: ReturnType<typeof createRequestStore
194
194
  aborts?: [AbortController] | [];
195
195
  staleTime?: number;
196
196
  }): Promise<T>;
197
- declare const soonFetch: <T>(config: {
197
+ declare const soonFetch: (config: {
198
198
  url: string;
199
199
  options?: SoonOptions;
200
200
  baseURL?: string;
201
201
  baseOptions?: SoonOptions;
202
202
  store?: ReturnType<typeof createRequestStore>;
203
203
  sortRequestKey?: boolean;
204
- }) => Promise<T>;
204
+ }) => Promise<Response>;
205
205
  declare function createSoon<Options extends SoonOptions>(request: <T>(url: string, options?: Options) => Promise<T>): {
206
206
  options: <T>(url: string, options?: Options) => Promise<T>;
207
207
  get: <T>(url: string, options?: Options) => Promise<T>;
package/dist/index.d.mts CHANGED
@@ -194,14 +194,14 @@ declare function requestWithStore<T>(store: ReturnType<typeof createRequestStore
194
194
  aborts?: [AbortController] | [];
195
195
  staleTime?: number;
196
196
  }): Promise<T>;
197
- declare const soonFetch: <T>(config: {
197
+ declare const soonFetch: (config: {
198
198
  url: string;
199
199
  options?: SoonOptions;
200
200
  baseURL?: string;
201
201
  baseOptions?: SoonOptions;
202
202
  store?: ReturnType<typeof createRequestStore>;
203
203
  sortRequestKey?: boolean;
204
- }) => Promise<T>;
204
+ }) => Promise<Response>;
205
205
  declare function createSoon<Options extends SoonOptions>(request: <T>(url: string, options?: Options) => Promise<T>): {
206
206
  options: <T>(url: string, options?: Options) => Promise<T>;
207
207
  get: <T>(url: string, options?: Options) => Promise<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "soon-fetch",
3
- "version": "4.0.0-beta.4",
3
+ "version": "4.0.0-beta.5",
4
4
  "description": "a request lib alternative to axios with timeout, request reusing, race, response cache ...",
5
5
  "homepage": "https://github.com/leafio/soon-fetch",
6
6
  "type": "module",
@@ -21,16 +21,19 @@
21
21
  "request",
22
22
  "fetch",
23
23
  "lightweight",
24
+ "axios",
24
25
  "timeout",
25
- "http",
26
- "axios"
26
+ "request reusing",
27
+ "race",
28
+ "response cache",
29
+ "abort controller"
27
30
  ],
28
- "author": "",
31
+ "author": "leaf",
29
32
  "license": "MIT",
30
33
  "devDependencies": {
34
+ "@types/node": "^20.11.30",
31
35
  "tsdown": "^0.21.7",
32
- "tsup": "^8.5.1",
33
- "typescript": "^5.6.2",
34
- "vitest": "^2.1.1"
36
+ "typescript": "^5.4.3",
37
+ "vitest": "^1.3.1"
35
38
  }
36
- }
39
+ }