@blotoutio/edgetag-sdk-js 0.62.0 → 0.62.1
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/index.cjs.js +3 -2
- package/index.mjs +3 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -484,7 +484,8 @@ const parseCookies = (cookie) => {
|
|
|
484
484
|
return Object.fromEntries(cookie
|
|
485
485
|
.split(/;\s+/)
|
|
486
486
|
.map((r) => r.split('=').map((str) => str.trim()))
|
|
487
|
-
.map(([cookieKey,
|
|
487
|
+
.map(([cookieKey, ...cookieValues]) => {
|
|
488
|
+
const cookieValue = cookieValues.join('=');
|
|
488
489
|
if (!cookieKey) {
|
|
489
490
|
return [];
|
|
490
491
|
}
|
|
@@ -560,7 +561,7 @@ const getStandardPayload = (destination, payload) => {
|
|
|
560
561
|
referrer: getReferrer(destination),
|
|
561
562
|
search: getSearch(destination),
|
|
562
563
|
locale: getLocale(),
|
|
563
|
-
sdkVersion: "0.62.
|
|
564
|
+
sdkVersion: "0.62.1" ,
|
|
564
565
|
...(payload || {}),
|
|
565
566
|
};
|
|
566
567
|
let storage = {};
|
package/index.mjs
CHANGED
|
@@ -482,7 +482,8 @@ const parseCookies = (cookie) => {
|
|
|
482
482
|
return Object.fromEntries(cookie
|
|
483
483
|
.split(/;\s+/)
|
|
484
484
|
.map((r) => r.split('=').map((str) => str.trim()))
|
|
485
|
-
.map(([cookieKey,
|
|
485
|
+
.map(([cookieKey, ...cookieValues]) => {
|
|
486
|
+
const cookieValue = cookieValues.join('=');
|
|
486
487
|
if (!cookieKey) {
|
|
487
488
|
return [];
|
|
488
489
|
}
|
|
@@ -558,7 +559,7 @@ const getStandardPayload = (destination, payload) => {
|
|
|
558
559
|
referrer: getReferrer(destination),
|
|
559
560
|
search: getSearch(destination),
|
|
560
561
|
locale: getLocale(),
|
|
561
|
-
sdkVersion: "0.62.
|
|
562
|
+
sdkVersion: "0.62.1" ,
|
|
562
563
|
...(payload || {}),
|
|
563
564
|
};
|
|
564
565
|
let storage = {};
|