@whitesev/utils 2.3.2 → 2.3.3
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 +13 -1
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +13 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +13 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +13 -1
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +13 -1
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +13 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/Httpx.d.ts +62 -12
- package/package.json +1 -1
- package/src/Httpx.ts +117 -38
- package/src/Utils.ts +1 -1
package/dist/index.iife.js
CHANGED
|
@@ -1756,6 +1756,8 @@ var Utils = (function () {
|
|
|
1756
1756
|
data: details.data || this.context.#defaultDetails.data,
|
|
1757
1757
|
redirect: details.redirect || this.context.#defaultDetails.redirect,
|
|
1758
1758
|
cookie: details.cookie || this.context.#defaultDetails.cookie,
|
|
1759
|
+
cookiePartition: details.cookiePartition ||
|
|
1760
|
+
this.context.#defaultDetails.cookiePartition,
|
|
1759
1761
|
binary: details.binary || this.context.#defaultDetails.binary,
|
|
1760
1762
|
nocache: details.nocache || this.context.#defaultDetails.nocache,
|
|
1761
1763
|
revalidate: details.revalidate || this.context.#defaultDetails.revalidate,
|
|
@@ -1857,6 +1859,15 @@ var Utils = (function () {
|
|
|
1857
1859
|
else {
|
|
1858
1860
|
result.fetchInit = details.fetchInit;
|
|
1859
1861
|
}
|
|
1862
|
+
// 处理新的cookiePartition
|
|
1863
|
+
if (typeof result.cookiePartition === "object" &&
|
|
1864
|
+
result.cookiePartition != null) {
|
|
1865
|
+
if (Reflect.has(result.cookiePartition, "topLevelSite") &&
|
|
1866
|
+
typeof result.cookiePartition.topLevelSite !== "string") {
|
|
1867
|
+
// topLevelSite必须是字符串
|
|
1868
|
+
Reflect.deleteProperty(result.cookiePartition, "topLevelSite");
|
|
1869
|
+
}
|
|
1870
|
+
}
|
|
1860
1871
|
return result;
|
|
1861
1872
|
},
|
|
1862
1873
|
/**
|
|
@@ -2346,6 +2357,7 @@ var Utils = (function () {
|
|
|
2346
2357
|
data: void 0,
|
|
2347
2358
|
redirect: void 0,
|
|
2348
2359
|
cookie: void 0,
|
|
2360
|
+
cookiePartition: void 0,
|
|
2349
2361
|
binary: void 0,
|
|
2350
2362
|
nocache: void 0,
|
|
2351
2363
|
revalidate: void 0,
|
|
@@ -3929,7 +3941,7 @@ var Utils = (function () {
|
|
|
3929
3941
|
this.windowApi = new WindowApi(option);
|
|
3930
3942
|
}
|
|
3931
3943
|
/** 版本号 */
|
|
3932
|
-
version = "2024.9.
|
|
3944
|
+
version = "2024.9.28";
|
|
3933
3945
|
addStyle(cssText) {
|
|
3934
3946
|
if (typeof cssText !== "string") {
|
|
3935
3947
|
throw new Error("Utils.addStyle 参数cssText 必须为String类型");
|