befly-shared 2.0.1 → 2.0.2
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/package.json +2 -2
- package/utils/createHttp.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "befly-shared",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Befly Shared - 通用工具函数库",
|
|
6
6
|
"type": "module",
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"engines": {
|
|
22
22
|
"bun": ">=1.3.0"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "5095ad2f54f7d8b7daa01cd7e099459b66a0d61a"
|
|
25
25
|
}
|
package/utils/createHttp.js
CHANGED
|
@@ -23,7 +23,7 @@ export function createHttp(options) {
|
|
|
23
23
|
try {
|
|
24
24
|
const fullUrl = `${apiPath}${url}`;
|
|
25
25
|
const isForm = data instanceof FormData;
|
|
26
|
-
const dropList = Array.isArray(dropValues) ? dropValues : [null, undefined];
|
|
26
|
+
const dropList = Array.isArray(dropValues) ? dropValues : [null, undefined, "", 0];
|
|
27
27
|
const dropKeyMap = dropKeyValue && typeof dropKeyValue === "object" ? dropKeyValue : {};
|
|
28
28
|
let payloadData = data ?? {};
|
|
29
29
|
if (isForm) {
|