@nsnanocat/util 2.5.10 → 2.5.12

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 ADDED
@@ -0,0 +1,24 @@
1
+ export * from "./lib/app.mjs";
2
+ export * from "./lib/argument.mjs";
3
+ export * from "./lib/done.mjs";
4
+ export * from "./lib/notification.mjs";
5
+ export * from "./lib/time.mjs";
6
+ export * from "./lib/wait.mjs";
7
+ export * from "./polyfill/Console.mjs";
8
+ export * from "./polyfill/fetch.js";
9
+ export * from "./polyfill/Lodash.mjs";
10
+ export * from "./polyfill/qs.mjs";
11
+ export * from "./polyfill/StatusTexts.mjs";
12
+ export * from "./polyfill/Storage.js";
13
+
14
+ /**
15
+ * 已标准化的 `$argument` 快照。
16
+ * Normalized `$argument` snapshot.
17
+ */
18
+ export const $argument = globalThis.$argument ?? {};
19
+
20
+ /**
21
+ * 兼容别名(建议优先使用 `$argument`)。
22
+ * Backward-compatible alias (prefer `$argument`).
23
+ */
24
+ export const argument = $argument;
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.10"
44
+ "version": "2.5.12"
45
45
  }
@@ -3,9 +3,9 @@
3
3
  * Aggregated exports for polyfill modules.
4
4
  */
5
5
  export { Console } from "./Console.mjs";
6
- export { fetch } from "./fetch.mjs";
7
- export type { Fetch, FetchRequest, FetchResponse } from "./fetch.mjs";
6
+ export { fetch } from "./fetch.js";
7
+ export type { Fetch, FetchRequest, FetchResponse } from "./fetch.js";
8
8
  export { Lodash } from "./Lodash.mjs";
9
9
  export { qs } from "./qs.mjs";
10
10
  export { StatusTexts } from "./StatusTexts.mjs";
11
- export { Storage } from "./Storage.mjs";
11
+ export { Storage } from "./Storage.js";
package/polyfill/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from "./Console.mjs";
2
- export * from "./fetch.mjs";
2
+ export * from "./fetch.js";
3
3
  export * from "./Lodash.mjs";
4
4
  export * from "./qs.mjs";
5
5
  export * from "./StatusTexts.mjs";
6
- export * from "./Storage.mjs";
6
+ export * from "./Storage.js";
@@ -1,6 +0,0 @@
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;
File without changes
File without changes
File without changes