@nocobase/sdk 2.3.0-beta.13 → 2.3.0-beta.14
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/lib/APIClient.js +3 -0
- package/lib/Auth.d.ts +2 -2
- package/package.json +3 -3
package/lib/APIClient.js
CHANGED
|
@@ -141,6 +141,9 @@ const _APIClient = class _APIClient {
|
|
|
141
141
|
interceptors() {
|
|
142
142
|
this.axios.interceptors.request.use((config) => {
|
|
143
143
|
config.paramsSerializer = (params) => {
|
|
144
|
+
if (params instanceof URLSearchParams) {
|
|
145
|
+
return params.toString();
|
|
146
|
+
}
|
|
144
147
|
return import_qs.default.stringify(params, {
|
|
145
148
|
strictNullHandling: true,
|
|
146
149
|
arrayFormat: "brackets"
|
package/lib/Auth.d.ts
CHANGED
|
@@ -75,11 +75,11 @@ export declare class Auth {
|
|
|
75
75
|
* use {@link Auth#authenticator} instead
|
|
76
76
|
*/
|
|
77
77
|
setAuthenticator(authenticator: string): void;
|
|
78
|
-
middleware(config: AxiosRequestConfig): AxiosRequestConfig<any>;
|
|
78
|
+
middleware(config: AxiosRequestConfig): AxiosRequestConfig<any, any>;
|
|
79
79
|
signIn(values: any, authenticator?: string): Promise<AxiosResponse<any>>;
|
|
80
80
|
signUp(values: any, authenticator?: string): Promise<AxiosResponse<any>>;
|
|
81
81
|
syncCookies(): Promise<AxiosResponse<unknown> | undefined>;
|
|
82
|
-
signOut(): Promise<AxiosResponse<any, any>>;
|
|
82
|
+
signOut(): Promise<AxiosResponse<any, any, {}, any>>;
|
|
83
83
|
lostPassword(values: any): Promise<AxiosResponse<any>>;
|
|
84
84
|
resetPassword(values: any): Promise<AxiosResponse<any>>;
|
|
85
85
|
checkResetToken(values: any): Promise<AxiosResponse<any>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/sdk",
|
|
3
|
-
"version": "2.3.0-beta.
|
|
3
|
+
"version": "2.3.0-beta.14",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"qs": "^6.10.1"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@nocobase/utils": "2.3.0-beta.
|
|
12
|
+
"@nocobase/utils": "2.3.0-beta.14",
|
|
13
13
|
"axios-mock-adapter": "^1.20.0"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "2e19a2924cd2452eaacb99c5ca3419e656ed89bc"
|
|
16
16
|
}
|