@pendo/agent 2.269.0 → 2.269.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/dist/pendo.module.js +32 -23
- package/dist/pendo.module.min.js +1 -1
- package/package.json +1 -1
package/dist/pendo.module.js
CHANGED
|
@@ -10634,8 +10634,8 @@ var SERVER = '';
|
|
|
10634
10634
|
var ASSET_HOST = '';
|
|
10635
10635
|
var ASSET_PATH = '';
|
|
10636
10636
|
var DESIGNER_ENV = '';
|
|
10637
|
-
var VERSION = '2.269.
|
|
10638
|
-
var PACKAGE_VERSION = '2.269.
|
|
10637
|
+
var VERSION = '2.269.1_';
|
|
10638
|
+
var PACKAGE_VERSION = '2.269.1';
|
|
10639
10639
|
var LOADER = 'xhr';
|
|
10640
10640
|
/* eslint-enable agent-eslint-rules/no-gulp-env-references */
|
|
10641
10641
|
/**
|
|
@@ -19525,29 +19525,38 @@ function getHtmlAttributeTester(htmlAttributes) {
|
|
|
19525
19525
|
}
|
|
19526
19526
|
return _.constant(false);
|
|
19527
19527
|
}
|
|
19528
|
+
// APP-118929
|
|
19529
|
+
// Due to SFDC being SFDC and the fact that their apps will sometimes use Proxies as part of their event targets
|
|
19530
|
+
// we need to protect ourselves from unexpected invalid attributes.
|
|
19528
19531
|
function filterAttributeList(attributeNodes, defaultAttributes, includeFn, excludeFn) {
|
|
19529
|
-
|
|
19530
|
-
|
|
19531
|
-
|
|
19532
|
-
|
|
19533
|
-
|
|
19534
|
-
|
|
19535
|
-
|
|
19536
|
-
|
|
19537
|
-
|
|
19538
|
-
var groupedAttributes = _.groupBy(attributeNodes, function (attributeNode) {
|
|
19539
|
-
if (defaultAttributeLookup[attributeNode.nodeName]) {
|
|
19540
|
-
return 'defaults';
|
|
19541
|
-
}
|
|
19542
|
-
if (_.isString(attributeNode.value) && attributeNode.value.length > MAX_ATTRIBUTE_LENGTH) {
|
|
19543
|
-
return 'large';
|
|
19532
|
+
try {
|
|
19533
|
+
var defaultAttributeLookup = _.indexBy(defaultAttributes);
|
|
19534
|
+
var filteredAttributes = _.filter(_.filter(attributeNodes, function (attributeNode) {
|
|
19535
|
+
return includeFn(attributeNode.nodeName) || defaultAttributeLookup[attributeNode.nodeName];
|
|
19536
|
+
}), function (attributeNode) {
|
|
19537
|
+
return !excludeFn(attributeNode.nodeName);
|
|
19538
|
+
});
|
|
19539
|
+
if (filteredAttributes.length <= MAX_ATTRIBUTES) {
|
|
19540
|
+
return _.pluck(filteredAttributes, 'nodeName');
|
|
19544
19541
|
}
|
|
19545
|
-
|
|
19546
|
-
|
|
19547
|
-
|
|
19548
|
-
|
|
19549
|
-
|
|
19550
|
-
|
|
19542
|
+
var groupedAttributes = _.groupBy(attributeNodes, function (attributeNode) {
|
|
19543
|
+
if (defaultAttributeLookup[attributeNode.nodeName]) {
|
|
19544
|
+
return 'defaults';
|
|
19545
|
+
}
|
|
19546
|
+
if (_.isString(attributeNode.value) && attributeNode.value.length > MAX_ATTRIBUTE_LENGTH) {
|
|
19547
|
+
return 'large';
|
|
19548
|
+
}
|
|
19549
|
+
return 'small';
|
|
19550
|
+
});
|
|
19551
|
+
return _.pluck([].concat(_.sortBy(groupedAttributes.defaults, 'nodeName'))
|
|
19552
|
+
.concat(_.sortBy(groupedAttributes.small, 'nodeName'))
|
|
19553
|
+
.concat(_.sortBy(groupedAttributes.large, 'nodeName'))
|
|
19554
|
+
.slice(0, MAX_ATTRIBUTES), 'nodeName');
|
|
19555
|
+
}
|
|
19556
|
+
catch (e) {
|
|
19557
|
+
log.error("Error collecting DOM Node attributes: ".concat(e));
|
|
19558
|
+
return [];
|
|
19559
|
+
}
|
|
19551
19560
|
}
|
|
19552
19561
|
function attributeSerializer(context, node) {
|
|
19553
19562
|
var shouldIncludeAttribute = getHtmlAttributeTester(ConfigReader.get('htmlAttributes'));
|