@nocobase/sdk 2.3.0-beta.9 → 2.4.0-alpha.10

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 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,16 +1,16 @@
1
1
  {
2
2
  "name": "@nocobase/sdk",
3
- "version": "2.3.0-beta.9",
3
+ "version": "2.4.0-alpha.10",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
7
7
  "dependencies": {
8
+ "@nocobase/utils": "2.4.0-alpha.10",
8
9
  "axios": "^1.7.0",
9
10
  "qs": "^6.10.1"
10
11
  },
11
12
  "devDependencies": {
12
- "@nocobase/utils": "2.3.0-beta.9",
13
13
  "axios-mock-adapter": "^1.20.0"
14
14
  },
15
- "gitHead": "c215e60ed704afe6c086bd96304f4b0d3b46d02e"
15
+ "gitHead": "c869865c0413fbe4ef85b26be1f2b8d7078c38df"
16
16
  }