@dune2/tools 1.0.3 → 1.0.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dune2/tools",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"i18n"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"bignumber.js": "^9.1.2",
|
|
39
|
-
"es-toolkit": "^1
|
|
39
|
+
"es-toolkit": "^1",
|
|
40
40
|
"js-cookie": "^3.0.5",
|
|
41
41
|
"store2": "^2.14.3"
|
|
42
42
|
},
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { QueryClient } from "@tanstack/react-query";
|
|
2
2
|
|
|
3
|
-
import { queryClient } from "./defaultQueryClient";
|
|
4
3
|
import type { Basic, RequestBuilderOptions, RequestConfig } from "./options";
|
|
5
4
|
|
|
6
5
|
export class RequestBuilder<Req = any, Res = any> {
|
|
@@ -19,7 +18,7 @@ export class RequestBuilder<Req = any, Res = any> {
|
|
|
19
18
|
//#endregion
|
|
20
19
|
|
|
21
20
|
// 这是默认的 Query Client 实例
|
|
22
|
-
static queryClient: QueryClient | null =
|
|
21
|
+
static queryClient: QueryClient | null = null;
|
|
23
22
|
static setQueryClient(queryClient: QueryClient | null) {
|
|
24
23
|
RequestBuilder.queryClient = queryClient;
|
|
25
24
|
}
|