@blotoutio/providers-snapchat-sdk 0.40.0 → 0.41.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 +4 -2
- package/index.js +4 -2
- package/index.mjs +4 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -58,7 +58,9 @@ const snippet = () => {
|
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
const init = ({ manifest }) => {
|
|
61
|
-
if (!manifest.variables ||
|
|
61
|
+
if (!manifest.variables ||
|
|
62
|
+
!manifest.variables['pixelId'] ||
|
|
63
|
+
manifest.variables['enableBrowser'] !== '1') {
|
|
62
64
|
return;
|
|
63
65
|
}
|
|
64
66
|
snippet();
|
|
@@ -176,7 +178,7 @@ const getSnapEventName = (name) => {
|
|
|
176
178
|
return name.toUpperCase();
|
|
177
179
|
};
|
|
178
180
|
const tag = ({ data, eventName, manifestVariables, eventId, executionContext, }) => {
|
|
179
|
-
const result = { sdkVersion: "0.
|
|
181
|
+
const result = { sdkVersion: "0.41.1" };
|
|
180
182
|
if (executionContext.get('pixelFired')) {
|
|
181
183
|
return result;
|
|
182
184
|
}
|
package/index.js
CHANGED
|
@@ -59,7 +59,9 @@ var ProvidersSnapchatSdk = (function () {
|
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
const init = ({ manifest }) => {
|
|
62
|
-
if (!manifest.variables ||
|
|
62
|
+
if (!manifest.variables ||
|
|
63
|
+
!manifest.variables['pixelId'] ||
|
|
64
|
+
manifest.variables['enableBrowser'] !== '1') {
|
|
63
65
|
return;
|
|
64
66
|
}
|
|
65
67
|
snippet();
|
|
@@ -177,7 +179,7 @@ var ProvidersSnapchatSdk = (function () {
|
|
|
177
179
|
return name.toUpperCase();
|
|
178
180
|
};
|
|
179
181
|
const tag = ({ data, eventName, manifestVariables, eventId, executionContext, }) => {
|
|
180
|
-
const result = { sdkVersion: "0.
|
|
182
|
+
const result = { sdkVersion: "0.41.1" };
|
|
181
183
|
if (executionContext.get('pixelFired')) {
|
|
182
184
|
return result;
|
|
183
185
|
}
|
package/index.mjs
CHANGED
|
@@ -56,7 +56,9 @@ const snippet = () => {
|
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
const init = ({ manifest }) => {
|
|
59
|
-
if (!manifest.variables ||
|
|
59
|
+
if (!manifest.variables ||
|
|
60
|
+
!manifest.variables['pixelId'] ||
|
|
61
|
+
manifest.variables['enableBrowser'] !== '1') {
|
|
60
62
|
return;
|
|
61
63
|
}
|
|
62
64
|
snippet();
|
|
@@ -174,7 +176,7 @@ const getSnapEventName = (name) => {
|
|
|
174
176
|
return name.toUpperCase();
|
|
175
177
|
};
|
|
176
178
|
const tag = ({ data, eventName, manifestVariables, eventId, executionContext, }) => {
|
|
177
|
-
const result = { sdkVersion: "0.
|
|
179
|
+
const result = { sdkVersion: "0.41.1" };
|
|
178
180
|
if (executionContext.get('pixelFired')) {
|
|
179
181
|
return result;
|
|
180
182
|
}
|