@nsnanocat/util 2.5.6 → 2.5.8

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/index.mjs CHANGED
@@ -5,7 +5,7 @@ export * from "./lib/notification.mjs";
5
5
  export * from "./lib/time.mjs";
6
6
  export * from "./lib/wait.mjs";
7
7
  export * from "./polyfill/Console.mjs";
8
- export * from "./polyfill/fetch.js";
8
+ export * from "./polyfill/fetch.mjs";
9
9
  export * from "./polyfill/Lodash.mjs";
10
10
  export * from "./polyfill/qs.mjs";
11
11
  export * from "./polyfill/StatusTexts.mjs";
package/package.json CHANGED
@@ -41,5 +41,5 @@
41
41
  "registry": "https://registry.npmjs.org/",
42
42
  "access": "public"
43
43
  },
44
- "version": "2.5.6"
44
+ "version": "2.5.8"
45
45
  }
@@ -41,3 +41,5 @@ export interface FetchResponse {
41
41
  * @returns 统一响应结构 / Normalized response payload.
42
42
  */
43
43
  export type Fetch = (resource: FetchRequest | string, options?: Partial<FetchRequest>) => Promise<FetchResponse>;
44
+
45
+ export const fetch: Fetch;
@@ -0,0 +1,6 @@
1
+ import { fetch as fetchRuntime } from "./fetch.mjs";
2
+ import type { Fetch } from "./fetch.d.ts";
3
+
4
+ export type { Fetch, FetchRequest, FetchResponse } from "./fetch.d.ts";
5
+
6
+ export const fetch: Fetch = fetchRuntime as Fetch;
@@ -1,5 +1,5 @@
1
1
  export * from "./Console.mjs";
2
- export * from "./fetch.js";
2
+ export * from "./fetch.mjs";
3
3
  export * from "./Lodash.mjs";
4
4
  export * from "./qs.mjs";
5
5
  export * from "./StatusTexts.mjs";
File without changes