@whitesev/utils 1.1.5 → 1.1.6
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 +3 -3
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +3 -3
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +3 -3
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- 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");
|