@nocobase/sdk 2.2.22 → 2.2.23

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.
Files changed (2) hide show
  1. package/lib/APIClient.js +3 -0
  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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/sdk",
3
- "version": "2.2.22",
3
+ "version": "2.2.23",
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.2.22",
12
+ "@nocobase/utils": "2.2.23",
13
13
  "axios-mock-adapter": "^1.20.0"
14
14
  },
15
- "gitHead": "cee3e817effc899e8273b4e4c0bbc0fc6daa0870"
15
+ "gitHead": "71852bf1353c21818600ffe7b2a38aa68b5e47e6"
16
16
  }