rudder-sdk-js 2.3.3 → 2.3.6
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.js +10 -16
- package/package.json +1 -1
package/index.js
CHANGED
@@ -4709,7 +4709,7 @@
|
|
4709
4709
|
|
4710
4710
|
// Reserved Keywords for properties/traits
|
4711
4711
|
var ReservedPropertyKeywords = ["anonymous_id", "id", "sent_at", "received_at", "timestamp", "original_timestamp", "event_text", "event"]; // ECommerce Parameter Names Enumeration
|
4712
|
-
var CONFIG_URL = "https://api.rudderlabs.com/sourceConfig/?p=npm&v=2.3.
|
4712
|
+
var CONFIG_URL = "https://api.rudderlabs.com/sourceConfig/?p=npm&v=2.3.6";
|
4713
4713
|
var CDN_INT_DIR = "js-integrations";
|
4714
4714
|
var DEST_SDK_BASE_URL = "https://cdn.rudderlabs.com/v1.1/".concat(CDN_INT_DIR);
|
4715
4715
|
var MAX_WAIT_FOR_INTEGRATION_LOAD = 10000;
|
@@ -11306,7 +11306,7 @@
|
|
11306
11306
|
this.build = "1.0.0";
|
11307
11307
|
this.name = "RudderLabs JavaScript SDK";
|
11308
11308
|
this.namespace = "com.rudderlabs.javascript";
|
11309
|
-
this.version = "2.3.
|
11309
|
+
this.version = "2.3.6";
|
11310
11310
|
});
|
11311
11311
|
|
11312
11312
|
/* eslint-disable max-classes-per-file */
|
@@ -11315,7 +11315,7 @@
|
|
11315
11315
|
_classCallCheck(this, RudderLibraryInfo);
|
11316
11316
|
|
11317
11317
|
this.name = "RudderLabs JavaScript SDK";
|
11318
|
-
this.version = "2.3.
|
11318
|
+
this.version = "2.3.6";
|
11319
11319
|
}); // Operating System information class
|
11320
11320
|
|
11321
11321
|
|
@@ -13085,7 +13085,7 @@
|
|
13085
13085
|
key: "enqueue",
|
13086
13086
|
value: function enqueue(rudderElement, type) {
|
13087
13087
|
var message = rudderElement.getElementContent();
|
13088
|
-
message.originalTimestamp = getCurrentTimeFormatted();
|
13088
|
+
message.originalTimestamp = message.originalTimestamp || getCurrentTimeFormatted();
|
13089
13089
|
message.sentAt = getCurrentTimeFormatted(); // add this, will get modified when actually being sent
|
13090
13090
|
// check message size, if greater log an error
|
13091
13091
|
|
@@ -14037,6 +14037,8 @@
|
|
14037
14037
|
return false;
|
14038
14038
|
}
|
14039
14039
|
|
14040
|
+
var formattedEventName = eventName.trim().toUpperCase();
|
14041
|
+
|
14040
14042
|
switch (eventFilteringOption) {
|
14041
14043
|
// disabled filtering
|
14042
14044
|
case "disable":
|
@@ -14044,13 +14046,9 @@
|
|
14044
14046
|
// Blacklist is choosen for filtering events
|
14045
14047
|
|
14046
14048
|
case "blacklistedEvents":
|
14047
|
-
|
14048
|
-
return x.eventName !== "";
|
14049
|
-
});
|
14050
|
-
|
14051
|
-
if (isValidBlackList) {
|
14049
|
+
if (Array.isArray(blacklistedEvents)) {
|
14052
14050
|
return blacklistedEvents.find(function (eventObj) {
|
14053
|
-
return eventObj.eventName.trim().toUpperCase() ===
|
14051
|
+
return eventObj.eventName.trim().toUpperCase() === formattedEventName;
|
14054
14052
|
}) === undefined ? false : true;
|
14055
14053
|
} else {
|
14056
14054
|
return false;
|
@@ -14059,13 +14057,9 @@
|
|
14059
14057
|
// Whitelist is choosen for filtering events
|
14060
14058
|
|
14061
14059
|
case "whitelistedEvents":
|
14062
|
-
|
14063
|
-
return x.eventName !== "";
|
14064
|
-
});
|
14065
|
-
|
14066
|
-
if (isValidWhiteList) {
|
14060
|
+
if (Array.isArray(whitelistedEvents)) {
|
14067
14061
|
return whitelistedEvents.find(function (eventObj) {
|
14068
|
-
return eventObj.eventName.trim().toUpperCase() ===
|
14062
|
+
return eventObj.eventName.trim().toUpperCase() === formattedEventName;
|
14069
14063
|
}) === undefined ? true : false;
|
14070
14064
|
} else {
|
14071
14065
|
return true;
|