Skip to content

Commit 17f9609

Browse files
committed
chore(build): Generate latest bundle [skip ci]
1 parent 3fa1b70 commit 17f9609

File tree

3 files changed

+418
-16
lines changed

3 files changed

+418
-16
lines changed

dist/FacebookEventForwarder.common.js

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ function isObject(val) {
1111
return val != null && typeof val === 'object' && Array.isArray(val) === false;
1212
}
1313

14+
var isobject = /*#__PURE__*/Object.freeze({
15+
'default': isObject
16+
});
17+
18+
function getCjsExportFromNamespace (n) {
19+
return n && n['default'] || n;
20+
}
21+
22+
var isobject$1 = getCjsExportFromNamespace(isobject);
23+
1424
/* eslint-disable no-undef */
1525
// Copyright 2015 mParticle, Inc.
1626
//
@@ -63,13 +73,13 @@ function isObject(val) {
6373
},
6474
SupportedCommerceTypes = [],
6575
// Standard FB Event Names from https://developers.facebook.com/docs/facebook-pixel/reference#standard-events
66-
ADD_TO_CART_EVENT_NAME = 'AddToCart';
67-
ADD_TO_WISHLIST_EVENT_NAME = 'AddToWishlist';
68-
CHECKOUT_EVENT_NAME = 'InitiateCheckout';
69-
PAGE_VIEW_EVENT_NAME = 'PageView';
70-
PURCHASE_EVENT_NAME = 'Purchase';
71-
REMOVE_FROM_CART_EVENT_NAME = 'RemoveFromCart';
72-
VIEW_CONTENT_EVENT_NAME = 'ViewContent';
76+
ADD_TO_CART_EVENT_NAME = 'AddToCart',
77+
ADD_TO_WISHLIST_EVENT_NAME = 'AddToWishlist',
78+
CHECKOUT_EVENT_NAME = 'InitiateCheckout',
79+
PAGE_VIEW_EVENT_NAME = 'PageView',
80+
PURCHASE_EVENT_NAME = 'Purchase',
81+
REMOVE_FROM_CART_EVENT_NAME = 'RemoveFromCart',
82+
VIEW_CONTENT_EVENT_NAME = 'ViewContent',
7383
constructor = function () {
7484
var self = this,
7585
isInitialized = false,
@@ -357,12 +367,12 @@ function isObject(val) {
357367
return;
358368
}
359369

360-
if (!isObject(config)) {
370+
if (!isobject$1(config)) {
361371
console.log('\'config\' must be an object. You passed in a ' + typeof config);
362372
return;
363373
}
364374

365-
if (isObject(config.kits)) {
375+
if (isobject$1(config.kits)) {
366376
config.kits[name] = {
367377
constructor: constructor
368378
};

0 commit comments

Comments
 (0)