@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.iife.js
CHANGED
|
@@ -274,7 +274,7 @@ var Utils = (function () {
|
|
|
274
274
|
let itemSplit = item.split("=");
|
|
275
275
|
let itemName = itemSplit[0];
|
|
276
276
|
itemSplit.splice(0, 1);
|
|
277
|
-
let itemValue = itemSplit.join("");
|
|
277
|
+
let itemValue = decodeURIComponent(itemSplit.join(""));
|
|
278
278
|
if (itemName === cookieName) {
|
|
279
279
|
findValue = {
|
|
280
280
|
domain: globalThis.location.hostname,
|
|
@@ -319,7 +319,7 @@ var Utils = (function () {
|
|
|
319
319
|
let itemSplit = item.split("=");
|
|
320
320
|
let itemName = itemSplit[0];
|
|
321
321
|
itemSplit.splice(0, 1);
|
|
322
|
-
let itemValue = itemSplit.join("");
|
|
322
|
+
let itemValue = decodeURIComponent(itemSplit.join(""));
|
|
323
323
|
let nameRegexp = details.name instanceof RegExp
|
|
324
324
|
? details.name
|
|
325
325
|
: new RegExp("^" + details.name, "g");
|
|
@@ -370,7 +370,7 @@ var Utils = (function () {
|
|
|
370
370
|
let itemSplit = item.split("=");
|
|
371
371
|
let itemName = itemSplit[0];
|
|
372
372
|
itemSplit.splice(0, 1);
|
|
373
|
-
let itemValue = itemSplit.join("");
|
|
373
|
+
let itemValue = decodeURIComponent(itemSplit.join(""));
|
|
374
374
|
let nameRegexp = details.name instanceof RegExp
|
|
375
375
|
? details.name
|
|
376
376
|
: new RegExp("^" + details.name, "g");
|
|
@@ -3358,9 +3358,7 @@ var Utils = (function () {
|
|
|
3358
3358
|
* 颜色转换
|
|
3359
3359
|
* @returns
|
|
3360
3360
|
*/
|
|
3361
|
-
ColorConversion
|
|
3362
|
-
return new ColorConversion();
|
|
3363
|
-
}
|
|
3361
|
+
ColorConversion = ColorConversion;
|
|
3364
3362
|
deepClone(obj) {
|
|
3365
3363
|
let UtilsContext = this;
|
|
3366
3364
|
if (obj === void 0)
|