@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/src/Utils.d.ts
CHANGED
package/package.json
CHANGED
package/src/Utils.ts
CHANGED
package/src/UtilsGMCookie.ts
CHANGED
|
@@ -68,7 +68,7 @@ class UtilsGMCookie {
|
|
|
68
68
|
let itemSplit = item.split("=");
|
|
69
69
|
let itemName = itemSplit[0];
|
|
70
70
|
itemSplit.splice(0, 1);
|
|
71
|
-
let itemValue = itemSplit.join("");
|
|
71
|
+
let itemValue = decodeURIComponent(itemSplit.join(""));
|
|
72
72
|
if (itemName === cookieName) {
|
|
73
73
|
findValue = {
|
|
74
74
|
domain: globalThis.location.hostname,
|
|
@@ -116,7 +116,7 @@ class UtilsGMCookie {
|
|
|
116
116
|
let itemSplit = item.split("=");
|
|
117
117
|
let itemName = itemSplit[0];
|
|
118
118
|
itemSplit.splice(0, 1);
|
|
119
|
-
let itemValue = itemSplit.join("");
|
|
119
|
+
let itemValue = decodeURIComponent(itemSplit.join(""));
|
|
120
120
|
let nameRegexp =
|
|
121
121
|
(details.name as RegExp) instanceof RegExp
|
|
122
122
|
? details.name
|
|
@@ -169,7 +169,7 @@ class UtilsGMCookie {
|
|
|
169
169
|
let itemSplit = item.split("=");
|
|
170
170
|
let itemName = itemSplit[0];
|
|
171
171
|
itemSplit.splice(0, 1);
|
|
172
|
-
let itemValue = itemSplit.join("");
|
|
172
|
+
let itemValue = decodeURIComponent(itemSplit.join(""));
|
|
173
173
|
let nameRegexp =
|
|
174
174
|
(details.name as RegExp) instanceof RegExp
|
|
175
175
|
? details.name
|