@whitesev/utils 1.1.5 → 1.1.7
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 +4 -6
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +4 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +4 -6
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +4 -6
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +4 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/src/Utils.d.ts +1 -1
- package/package.json +1 -1
- package/src/Utils.ts +1 -3
- package/src/UtilsGMCookie.ts +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -271,7 +271,7 @@ class UtilsGMCookie {
|
|
|
271
271
|
let itemSplit = item.split("=");
|
|
272
272
|
let itemName = itemSplit[0];
|
|
273
273
|
itemSplit.splice(0, 1);
|
|
274
|
-
let itemValue = itemSplit.join("");
|
|
274
|
+
let itemValue = decodeURIComponent(itemSplit.join(""));
|
|
275
275
|
if (itemName === cookieName) {
|
|
276
276
|
findValue = {
|
|
277
277
|
domain: globalThis.location.hostname,
|
|
@@ -316,7 +316,7 @@ class UtilsGMCookie {
|
|
|
316
316
|
let itemSplit = item.split("=");
|
|
317
317
|
let itemName = itemSplit[0];
|
|
318
318
|
itemSplit.splice(0, 1);
|
|
319
|
-
let itemValue = itemSplit.join("");
|
|
319
|
+
let itemValue = decodeURIComponent(itemSplit.join(""));
|
|
320
320
|
let nameRegexp = details.name instanceof RegExp
|
|
321
321
|
? details.name
|
|
322
322
|
: new RegExp("^" + details.name, "g");
|
|
@@ -367,7 +367,7 @@ class UtilsGMCookie {
|
|
|
367
367
|
let itemSplit = item.split("=");
|
|
368
368
|
let itemName = itemSplit[0];
|
|
369
369
|
itemSplit.splice(0, 1);
|
|
370
|
-
let itemValue = itemSplit.join("");
|
|
370
|
+
let itemValue = decodeURIComponent(itemSplit.join(""));
|
|
371
371
|
let nameRegexp = details.name instanceof RegExp
|
|
372
372
|
? details.name
|
|
373
373
|
: new RegExp("^" + details.name, "g");
|
|
@@ -3355,9 +3355,7 @@ class Utils {
|
|
|
3355
3355
|
* 颜色转换
|
|
3356
3356
|
* @returns
|
|
3357
3357
|
*/
|
|
3358
|
-
ColorConversion
|
|
3359
|
-
return new ColorConversion();
|
|
3360
|
-
}
|
|
3358
|
+
ColorConversion = ColorConversion;
|
|
3361
3359
|
deepClone(obj) {
|
|
3362
3360
|
let UtilsContext = this;
|
|
3363
3361
|
if (obj === void 0)
|