@blotoutio/edgetag-sdk-js 0.10.11 → 0.10.12
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 +2 -2
- package/index.esm.js +2 -2
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -204,7 +204,7 @@ const getReferrer = () => {
|
|
|
204
204
|
};
|
|
205
205
|
const getPageUrl = () => {
|
|
206
206
|
try {
|
|
207
|
-
if (window.edgetagData['pageUrl']) {
|
|
207
|
+
if (window.edgetagData && window.edgetagData['pageUrl']) {
|
|
208
208
|
return window.edgetagData['pageUrl'];
|
|
209
209
|
}
|
|
210
210
|
return window.location.href;
|
|
@@ -519,7 +519,7 @@ const ajax = (method, url, payload) => __awaiter(void 0, void 0, void 0, functio
|
|
|
519
519
|
});
|
|
520
520
|
});
|
|
521
521
|
const getStandardPayload = (payload) => {
|
|
522
|
-
const data = Object.assign({ pageUrl: getPageUrl(), pageTitle: getPageTitle(), userAgent: getUserAgent(), referrer: getReferrer(), search: getSearch(), sdkVersion: "0.10.
|
|
522
|
+
const data = Object.assign({ pageUrl: getPageUrl(), pageTitle: getPageTitle(), userAgent: getUserAgent(), referrer: getReferrer(), search: getSearch(), sdkVersion: "0.10.12" }, (payload || {}));
|
|
523
523
|
let storage = {};
|
|
524
524
|
const session = getData$1('session');
|
|
525
525
|
if (session) {
|
package/index.esm.js
CHANGED
|
@@ -200,7 +200,7 @@ const getReferrer = () => {
|
|
|
200
200
|
};
|
|
201
201
|
const getPageUrl = () => {
|
|
202
202
|
try {
|
|
203
|
-
if (window.edgetagData['pageUrl']) {
|
|
203
|
+
if (window.edgetagData && window.edgetagData['pageUrl']) {
|
|
204
204
|
return window.edgetagData['pageUrl'];
|
|
205
205
|
}
|
|
206
206
|
return window.location.href;
|
|
@@ -515,7 +515,7 @@ const ajax = (method, url, payload) => __awaiter(void 0, void 0, void 0, functio
|
|
|
515
515
|
});
|
|
516
516
|
});
|
|
517
517
|
const getStandardPayload = (payload) => {
|
|
518
|
-
const data = Object.assign({ pageUrl: getPageUrl(), pageTitle: getPageTitle(), userAgent: getUserAgent(), referrer: getReferrer(), search: getSearch(), sdkVersion: "0.10.
|
|
518
|
+
const data = Object.assign({ pageUrl: getPageUrl(), pageTitle: getPageTitle(), userAgent: getUserAgent(), referrer: getReferrer(), search: getSearch(), sdkVersion: "0.10.12" }, (payload || {}));
|
|
519
519
|
let storage = {};
|
|
520
520
|
const session = getData$1('session');
|
|
521
521
|
if (session) {
|