@kevisual/query 0.0.28 → 0.0.29
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/query-browser.d.ts +5 -8
- package/dist/query-browser.js +1 -1
- package/dist/query.d.ts +5 -8
- package/dist/query.js +1 -1
- package/package.json +1 -1
package/dist/query-browser.d.ts
CHANGED
|
@@ -94,16 +94,9 @@ type Fn = (opts: {
|
|
|
94
94
|
timeout?: number;
|
|
95
95
|
}) => Promise<Record<string, any> | false>;
|
|
96
96
|
type QueryOpts$1 = {
|
|
97
|
-
url?: string;
|
|
98
|
-
headers?: Record<string, string>;
|
|
99
|
-
body?: Record<string, any> | FormData;
|
|
100
|
-
timeout?: number;
|
|
101
|
-
method?: Method;
|
|
102
|
-
isBlob?: boolean;
|
|
103
|
-
isPostFile?: boolean;
|
|
104
97
|
adapter?: typeof adapter;
|
|
105
98
|
[key: string]: any;
|
|
106
|
-
};
|
|
99
|
+
} & AdapterOpts;
|
|
107
100
|
type Data = {
|
|
108
101
|
path?: string;
|
|
109
102
|
key?: string;
|
|
@@ -134,6 +127,10 @@ type DataOpts = Partial<QueryOpts$1> & {
|
|
|
134
127
|
res?: any;
|
|
135
128
|
fetch?: any;
|
|
136
129
|
}) => Promise<Result<S>>;
|
|
130
|
+
/**
|
|
131
|
+
* 是否在stop的时候不请求
|
|
132
|
+
*/
|
|
133
|
+
noStop?: boolean;
|
|
137
134
|
};
|
|
138
135
|
declare const wrapperError: ({ code, message }: {
|
|
139
136
|
code?: number;
|
package/dist/query-browser.js
CHANGED
package/dist/query.d.ts
CHANGED
|
@@ -94,16 +94,9 @@ type Fn = (opts: {
|
|
|
94
94
|
timeout?: number;
|
|
95
95
|
}) => Promise<Record<string, any> | false>;
|
|
96
96
|
type QueryOpts = {
|
|
97
|
-
url?: string;
|
|
98
|
-
headers?: Record<string, string>;
|
|
99
|
-
body?: Record<string, any> | FormData;
|
|
100
|
-
timeout?: number;
|
|
101
|
-
method?: Method;
|
|
102
|
-
isBlob?: boolean;
|
|
103
|
-
isPostFile?: boolean;
|
|
104
97
|
adapter?: typeof adapter;
|
|
105
98
|
[key: string]: any;
|
|
106
|
-
};
|
|
99
|
+
} & AdapterOpts;
|
|
107
100
|
type Data = {
|
|
108
101
|
path?: string;
|
|
109
102
|
key?: string;
|
|
@@ -134,6 +127,10 @@ type DataOpts = Partial<QueryOpts> & {
|
|
|
134
127
|
res?: any;
|
|
135
128
|
fetch?: any;
|
|
136
129
|
}) => Promise<Result<S>>;
|
|
130
|
+
/**
|
|
131
|
+
* 是否在stop的时候不请求
|
|
132
|
+
*/
|
|
133
|
+
noStop?: boolean;
|
|
137
134
|
};
|
|
138
135
|
/**
|
|
139
136
|
* 设置基础响应, 设置 success 和 showError,
|
package/dist/query.js
CHANGED