@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.umd.js
CHANGED
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
let itemSplit = item.split("=");
|
|
278
278
|
let itemName = itemSplit[0];
|
|
279
279
|
itemSplit.splice(0, 1);
|
|
280
|
-
let itemValue = itemSplit.join("");
|
|
280
|
+
let itemValue = decodeURIComponent(itemSplit.join(""));
|
|
281
281
|
if (itemName === cookieName) {
|
|
282
282
|
findValue = {
|
|
283
283
|
domain: globalThis.location.hostname,
|
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
let itemSplit = item.split("=");
|
|
323
323
|
let itemName = itemSplit[0];
|
|
324
324
|
itemSplit.splice(0, 1);
|
|
325
|
-
let itemValue = itemSplit.join("");
|
|
325
|
+
let itemValue = decodeURIComponent(itemSplit.join(""));
|
|
326
326
|
let nameRegexp = details.name instanceof RegExp
|
|
327
327
|
? details.name
|
|
328
328
|
: new RegExp("^" + details.name, "g");
|
|
@@ -373,7 +373,7 @@
|
|
|
373
373
|
let itemSplit = item.split("=");
|
|
374
374
|
let itemName = itemSplit[0];
|
|
375
375
|
itemSplit.splice(0, 1);
|
|
376
|
-
let itemValue = itemSplit.join("");
|
|
376
|
+
let itemValue = decodeURIComponent(itemSplit.join(""));
|
|
377
377
|
let nameRegexp = details.name instanceof RegExp
|
|
378
378
|
? details.name
|
|
379
379
|
: new RegExp("^" + details.name, "g");
|
|
@@ -3361,9 +3361,7 @@
|
|
|
3361
3361
|
* 颜色转换
|
|
3362
3362
|
* @returns
|
|
3363
3363
|
*/
|
|
3364
|
-
ColorConversion
|
|
3365
|
-
return new ColorConversion();
|
|
3366
|
-
}
|
|
3364
|
+
ColorConversion = ColorConversion;
|
|
3367
3365
|
deepClone(obj) {
|
|
3368
3366
|
let UtilsContext = this;
|
|
3369
3367
|
if (obj === void 0)
|