@kevisual/query 0.0.36 → 0.0.37
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-adapter.js +2 -2
- package/dist/query-browser.js +2 -2
- package/dist/query.js +2 -2
- package/package.json +1 -1
- package/src/adapter.ts +2 -2
package/dist/query-adapter.js
CHANGED
|
@@ -49,9 +49,9 @@ const adapter = async (opts = {}, overloadOpts) => {
|
|
|
49
49
|
// 浏览器环境下,自动将 body 中的 path 和 key 提取到查询参数中, 更容易排查问题
|
|
50
50
|
let body = opts.body || {};
|
|
51
51
|
if (!params.path && body?.path) {
|
|
52
|
-
|
|
52
|
+
searchParams.set('path', body.path);
|
|
53
53
|
if (body?.key) {
|
|
54
|
-
|
|
54
|
+
searchParams.set('key', body.key);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}
|
package/dist/query-browser.js
CHANGED
|
@@ -48,9 +48,9 @@ const adapter = async (opts = {}, overloadOpts) => {
|
|
|
48
48
|
// 浏览器环境下,自动将 body 中的 path 和 key 提取到查询参数中, 更容易排查问题
|
|
49
49
|
let body = opts.body || {};
|
|
50
50
|
if (!params.path && body?.path) {
|
|
51
|
-
|
|
51
|
+
searchParams.set('path', body.path);
|
|
52
52
|
if (body?.key) {
|
|
53
|
-
|
|
53
|
+
searchParams.set('key', body.key);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
}
|
package/dist/query.js
CHANGED
|
@@ -48,9 +48,9 @@ const adapter = async (opts = {}, overloadOpts) => {
|
|
|
48
48
|
// 浏览器环境下,自动将 body 中的 path 和 key 提取到查询参数中, 更容易排查问题
|
|
49
49
|
let body = opts.body || {};
|
|
50
50
|
if (!params.path && body?.path) {
|
|
51
|
-
|
|
51
|
+
searchParams.set('path', body.path);
|
|
52
52
|
if (body?.key) {
|
|
53
|
-
|
|
53
|
+
searchParams.set('key', body.key);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
}
|
package/package.json
CHANGED
package/src/adapter.ts
CHANGED
|
@@ -74,9 +74,9 @@ export const adapter = async (opts: AdapterOpts = {}, overloadOpts?: RequestInit
|
|
|
74
74
|
// 浏览器环境下,自动将 body 中的 path 和 key 提取到查询参数中, 更容易排查问题
|
|
75
75
|
let body = opts.body as Record<string, any> || {};
|
|
76
76
|
if (!params.path && body?.path) {
|
|
77
|
-
|
|
77
|
+
searchParams.set('path', body.path);
|
|
78
78
|
if (body?.key) {
|
|
79
|
-
|
|
79
|
+
searchParams.set('key', body.key);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
}
|