@pendo/agent 2.322.0 → 2.322.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/dom.esm.js +1 -1
- package/dist/pendo.module.js +34 -8
- package/dist/pendo.module.min.js +8 -8
- package/dist/servers.json +7 -7
- package/package.json +1 -1
package/dist/dom.esm.js
CHANGED
|
@@ -7484,7 +7484,7 @@ function applyMatrix2dRect(matrix2d, rect) {
|
|
|
7484
7484
|
return transformedRect;
|
|
7485
7485
|
}
|
|
7486
7486
|
|
|
7487
|
-
var VERSION = '2.322.
|
|
7487
|
+
var VERSION = '2.322.1_';
|
|
7488
7488
|
|
|
7489
7489
|
var decodeURIComponent = _.isFunction(window.decodeURIComponent) ? window.decodeURIComponent : _.identity;
|
|
7490
7490
|
|
package/dist/pendo.module.js
CHANGED
|
@@ -3967,8 +3967,8 @@ let SERVER = '';
|
|
|
3967
3967
|
let ASSET_HOST = '';
|
|
3968
3968
|
let ASSET_PATH = '';
|
|
3969
3969
|
let DESIGNER_SERVER = '';
|
|
3970
|
-
let VERSION = '2.322.
|
|
3971
|
-
let PACKAGE_VERSION = '2.322.
|
|
3970
|
+
let VERSION = '2.322.1_';
|
|
3971
|
+
let PACKAGE_VERSION = '2.322.1';
|
|
3972
3972
|
let LOADER = 'xhr';
|
|
3973
3973
|
/* eslint-enable web-sdk-eslint-rules/no-gulp-env-references */
|
|
3974
3974
|
/**
|
|
@@ -28384,12 +28384,22 @@ function registerPlugin(plugin) {
|
|
|
28384
28384
|
}
|
|
28385
28385
|
registeredPlugins.push(plugin);
|
|
28386
28386
|
if (initialized$1) {
|
|
28387
|
-
|
|
28387
|
+
try {
|
|
28388
|
+
plugin.initialize(pendo$1, PluginAPI);
|
|
28389
|
+
}
|
|
28390
|
+
catch (error) {
|
|
28391
|
+
log.error(`Error initializing plugin ${plugin.name}:`, error);
|
|
28392
|
+
}
|
|
28388
28393
|
}
|
|
28389
28394
|
}
|
|
28390
28395
|
function initializePlugins() {
|
|
28391
28396
|
_.each(registeredPlugins, function (plugin) {
|
|
28392
|
-
|
|
28397
|
+
try {
|
|
28398
|
+
plugin.initialize(pendo$1, PluginAPI);
|
|
28399
|
+
}
|
|
28400
|
+
catch (error) {
|
|
28401
|
+
log.error(`Error initializing plugin ${plugin.name}:`, error);
|
|
28402
|
+
}
|
|
28393
28403
|
});
|
|
28394
28404
|
initialized$1 = true;
|
|
28395
28405
|
return teardownPlugins;
|
|
@@ -28397,7 +28407,12 @@ function initializePlugins() {
|
|
|
28397
28407
|
function teardownPlugins() {
|
|
28398
28408
|
_.each(registeredPlugins, function (plugin) {
|
|
28399
28409
|
if (_.isFunction(plugin.teardown)) {
|
|
28400
|
-
|
|
28410
|
+
try {
|
|
28411
|
+
plugin.teardown(pendo$1, PluginAPI);
|
|
28412
|
+
}
|
|
28413
|
+
catch (error) {
|
|
28414
|
+
log.error(`Error tearing down plugin ${plugin.name}:`, error);
|
|
28415
|
+
}
|
|
28401
28416
|
}
|
|
28402
28417
|
});
|
|
28403
28418
|
initialized$1 = false;
|
|
@@ -28405,7 +28420,12 @@ function teardownPlugins() {
|
|
|
28405
28420
|
function validatePlugins(skipLogging) {
|
|
28406
28421
|
return _.map(registeredPlugins, function (plugin) {
|
|
28407
28422
|
if (plugin.validate && !skipLogging) {
|
|
28408
|
-
|
|
28423
|
+
try {
|
|
28424
|
+
plugin.validate(pendo$1, PluginAPI);
|
|
28425
|
+
}
|
|
28426
|
+
catch (error) {
|
|
28427
|
+
log.error(`Error validating plugin ${plugin.name}:`, error);
|
|
28428
|
+
}
|
|
28409
28429
|
}
|
|
28410
28430
|
return plugin.name;
|
|
28411
28431
|
});
|
|
@@ -51480,8 +51500,14 @@ function ConsoleCapture() {
|
|
|
51480
51500
|
setCaptureState({ shouldCapture: false, reason: 'recording stopped' });
|
|
51481
51501
|
}
|
|
51482
51502
|
function readyHandler() {
|
|
51483
|
-
|
|
51484
|
-
|
|
51503
|
+
try {
|
|
51504
|
+
addIntercepts();
|
|
51505
|
+
pluginAPI.attachEventInternal(window, 'securitypolicyviolation', securityPolicyViolationFn);
|
|
51506
|
+
}
|
|
51507
|
+
catch (error) {
|
|
51508
|
+
pluginAPI.log.error('Error setting up console capture intercepts: ', error);
|
|
51509
|
+
teardown();
|
|
51510
|
+
}
|
|
51485
51511
|
}
|
|
51486
51512
|
function addIntercepts() {
|
|
51487
51513
|
_.each(CONSOLE_METHODS, function (methodName) {
|