@whitesev/utils 2.4.0 → 2.4.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/dist/index.amd.js +2 -2
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +2 -2
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +2 -2
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/Httpx.d.ts +1 -1
- package/dist/types/src/types/Httpx.d.ts +7 -0
- package/package.json +1 -1
- package/src/Httpx.ts +2 -3
- package/src/Utils.ts +1 -1
- package/src/types/Httpx.d.ts +7 -0
package/dist/index.system.js
CHANGED
|
@@ -1943,8 +1943,8 @@ System.register('Utils', [], (function (exports) {
|
|
|
1943
1943
|
});
|
|
1944
1944
|
if (ContentTypeIndex !== -1) {
|
|
1945
1945
|
let ContentTypeKey = headersKeyList[ContentTypeIndex];
|
|
1946
|
+
let ContentType = requestOption.headers[ContentTypeKey];
|
|
1946
1947
|
// 设置了Content-Type
|
|
1947
|
-
let ContentType = requestOption.headers[ContentTypeIndex].toLowerCase();
|
|
1948
1948
|
if (ContentType.includes("application/json")) {
|
|
1949
1949
|
// application/json
|
|
1950
1950
|
if (requestOption.data instanceof FormData) {
|
|
@@ -4069,7 +4069,7 @@ System.register('Utils', [], (function (exports) {
|
|
|
4069
4069
|
this.windowApi = new WindowApi(option);
|
|
4070
4070
|
}
|
|
4071
4071
|
/** 版本号 */
|
|
4072
|
-
version = "2024.10.
|
|
4072
|
+
version = "2024.10.29";
|
|
4073
4073
|
addStyle(cssText) {
|
|
4074
4074
|
if (typeof cssText !== "string") {
|
|
4075
4075
|
throw new Error("Utils.addStyle 参数cssText 必须为String类型");
|