@liquidcommercedev/rmn-sdk 1.5.0-beta.21 → 1.5.0-beta.22
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs +7 -2
- package/dist/index.esm.js +7 -2
- package/package.json +1 -1
- package/umd/liquidcommerce-rmn-sdk.min.js +1 -1
package/dist/index.cjs
CHANGED
@@ -19205,8 +19205,13 @@ class DataLayerMonitor {
|
|
19205
19205
|
start() {
|
19206
19206
|
window.dataLayer.push = (...args) => {
|
19207
19207
|
const result = this.originalPush.apply(window.dataLayer, args);
|
19208
|
-
|
19209
|
-
|
19208
|
+
if (!this.listener) {
|
19209
|
+
return result;
|
19210
|
+
}
|
19211
|
+
if (!Array.isArray(args) || args.length === 0) {
|
19212
|
+
return result;
|
19213
|
+
}
|
19214
|
+
for (const pushedEvent of args) {
|
19210
19215
|
const normalizedData = this.cleanEventData(pushedEvent);
|
19211
19216
|
if (normalizedData) {
|
19212
19217
|
this.listener(normalizedData);
|
package/dist/index.esm.js
CHANGED
@@ -19203,8 +19203,13 @@ class DataLayerMonitor {
|
|
19203
19203
|
start() {
|
19204
19204
|
window.dataLayer.push = (...args) => {
|
19205
19205
|
const result = this.originalPush.apply(window.dataLayer, args);
|
19206
|
-
|
19207
|
-
|
19206
|
+
if (!this.listener) {
|
19207
|
+
return result;
|
19208
|
+
}
|
19209
|
+
if (!Array.isArray(args) || args.length === 0) {
|
19210
|
+
return result;
|
19211
|
+
}
|
19212
|
+
for (const pushedEvent of args) {
|
19208
19213
|
const normalizedData = this.cleanEventData(pushedEvent);
|
19209
19214
|
if (normalizedData) {
|
19210
19215
|
this.listener(normalizedData);
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@liquidcommercedev/rmn-sdk",
|
3
3
|
"description": "LiquidCommerce RMN SDK",
|
4
4
|
"author": "LiquidCommerce Tech",
|
5
|
-
"version": "1.5.0-beta.
|
5
|
+
"version": "1.5.0-beta.22",
|
6
6
|
"homepage": "https://docs.liquidcommerce.co/rmn-sdk",
|
7
7
|
"main": "./dist/index.cjs",
|
8
8
|
"module": "./dist/index.esm.js",
|