@pendo/agent 2.338.0 → 2.338.2
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 +12 -21
- package/dist/pendo.module.js +28 -44
- package/dist/pendo.module.min.js +7 -7
- package/dist/servers.json +8 -8
- package/package.json +1 -1
package/dist/dom.esm.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
// Resolve the global object without relying on a bare `window` identifier.
|
|
2
|
-
// `window` is only a bound global in a normal browser realm;
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
2
|
+
// `window` is only a bound global in a normal browser realm; the compat builds
|
|
3
|
+
// bind it via their `(function(window, document){...})` wrapper, but the npm
|
|
4
|
+
// module build has no wrapper, so its module scope can be evaluated in realms
|
|
5
|
+
// where `window` is undeclared (a Web Worker, or a customer bundler re-chunking
|
|
6
|
+
// the module into worker-reachable code) and a bare reference throws a
|
|
7
|
+
// ReferenceError at module-load. `globalThis` resolves in every realm; the
|
|
8
|
+
// `self`/`window` fallbacks cover engines that predate it. APP-160669, APP-165809.
|
|
6
9
|
function getGlobalScope() {
|
|
7
10
|
if (typeof globalThis !== 'undefined') {
|
|
8
11
|
return globalThis;
|
|
@@ -2105,18 +2108,6 @@ var underscore = {exports: {}};
|
|
|
2105
2108
|
var underscoreExports = underscore.exports;
|
|
2106
2109
|
var _ = /*@__PURE__*/getDefaultExportFromCjs(underscoreExports);
|
|
2107
2110
|
|
|
2108
|
-
/*
|
|
2109
|
-
* @license MIT - https://github.com/taylorhakes/promise-polyfill
|
|
2110
|
-
*/
|
|
2111
|
-
// Modified to not affect global environment: the `var` keeps the binding module-local
|
|
2112
|
-
// so the polyfill never assigns to the real global `Promise`.
|
|
2113
|
-
//
|
|
2114
|
-
// Main-thread only. Reading `window` here is safe because rollup's `inject` is skipped
|
|
2115
|
-
// for the nested worker build (see `skipPlugins` on webWorkerLoader in
|
|
2116
|
-
// rollup/web-sdk.config.mjs): a worker realm has a native Promise and no `window`, so
|
|
2117
|
-
// injecting this polyfill there was both unreachable and fatal — it threw
|
|
2118
|
-
// `ReferenceError: window is not defined` at worker startup and stopped session replay
|
|
2119
|
-
// with a WORKER_ERROR. APP-163474.
|
|
2120
2111
|
var Promise$1;
|
|
2121
2112
|
|
|
2122
2113
|
Promise$1 = (function (global, factory) {
|
|
@@ -2126,7 +2117,7 @@ Promise$1 = (function (global, factory) {
|
|
|
2126
2117
|
}
|
|
2127
2118
|
|
|
2128
2119
|
return nativePromise;
|
|
2129
|
-
}(
|
|
2120
|
+
}(globalScope, (function () {
|
|
2130
2121
|
/**
|
|
2131
2122
|
* @this {Promise}
|
|
2132
2123
|
*/
|
|
@@ -7538,11 +7529,11 @@ function applyMatrix2dRect(matrix2d, rect) {
|
|
|
7538
7529
|
return transformedRect;
|
|
7539
7530
|
}
|
|
7540
7531
|
|
|
7541
|
-
var VERSION = '2.338.
|
|
7532
|
+
var VERSION = '2.338.2_';
|
|
7542
7533
|
|
|
7543
|
-
var decodeURIComponent = _.isFunction(
|
|
7534
|
+
var decodeURIComponent = _.isFunction(globalScope.decodeURIComponent) ? globalScope.decodeURIComponent : _.identity;
|
|
7544
7535
|
|
|
7545
|
-
var encodeURIComponent = _.isFunction(
|
|
7536
|
+
var encodeURIComponent = _.isFunction(globalScope.encodeURIComponent) ? globalScope.encodeURIComponent : _.identity;
|
|
7546
7537
|
|
|
7547
7538
|
var allowKeys = function () {
|
|
7548
7539
|
var allowKeys = ConfigReader.get('storage.allowKeys') || '*';
|
|
@@ -10109,7 +10100,7 @@ var WeakRef = (function(global, factory) {
|
|
|
10109
10100
|
}
|
|
10110
10101
|
|
|
10111
10102
|
return nativeWeakRef;
|
|
10112
|
-
})(
|
|
10103
|
+
})(globalScope, WeakRefFactory);
|
|
10113
10104
|
|
|
10114
10105
|
var trimString = function (str, limit) {
|
|
10115
10106
|
var len = str.length;
|
package/dist/pendo.module.js
CHANGED
|
@@ -657,10 +657,13 @@ function getPendoConfigValue(key) {
|
|
|
657
657
|
}
|
|
658
658
|
|
|
659
659
|
// Resolve the global object without relying on a bare `window` identifier.
|
|
660
|
-
// `window` is only a bound global in a normal browser realm;
|
|
661
|
-
//
|
|
662
|
-
//
|
|
663
|
-
//
|
|
660
|
+
// `window` is only a bound global in a normal browser realm; the compat builds
|
|
661
|
+
// bind it via their `(function(window, document){...})` wrapper, but the npm
|
|
662
|
+
// module build has no wrapper, so its module scope can be evaluated in realms
|
|
663
|
+
// where `window` is undeclared (a Web Worker, or a customer bundler re-chunking
|
|
664
|
+
// the module into worker-reachable code) and a bare reference throws a
|
|
665
|
+
// ReferenceError at module-load. `globalThis` resolves in every realm; the
|
|
666
|
+
// `self`/`window` fallbacks cover engines that predate it. APP-160669, APP-165809.
|
|
664
667
|
function getGlobalScope() {
|
|
665
668
|
if (typeof globalThis !== 'undefined') {
|
|
666
669
|
return globalThis;
|
|
@@ -4043,8 +4046,8 @@ let SERVER = '';
|
|
|
4043
4046
|
let ASSET_HOST = '';
|
|
4044
4047
|
let ASSET_PATH = '';
|
|
4045
4048
|
let DESIGNER_SERVER = '';
|
|
4046
|
-
let VERSION = '2.338.
|
|
4047
|
-
let PACKAGE_VERSION = '2.338.
|
|
4049
|
+
let VERSION = '2.338.2_';
|
|
4050
|
+
let PACKAGE_VERSION = '2.338.2';
|
|
4048
4051
|
let LOADER = 'xhr';
|
|
4049
4052
|
/* eslint-enable web-sdk-eslint-rules/no-gulp-env-references */
|
|
4050
4053
|
/**
|
|
@@ -4349,9 +4352,9 @@ function unwrapFirefoxObject(obj) {
|
|
|
4349
4352
|
return obj;
|
|
4350
4353
|
}
|
|
4351
4354
|
|
|
4352
|
-
var decodeURIComponent = _.isFunction(
|
|
4355
|
+
var decodeURIComponent = _.isFunction(globalScope.decodeURIComponent) ? globalScope.decodeURIComponent : _.identity;
|
|
4353
4356
|
|
|
4354
|
-
var encodeURIComponent = _.isFunction(
|
|
4357
|
+
var encodeURIComponent = _.isFunction(globalScope.encodeURIComponent) ? globalScope.encodeURIComponent : _.identity;
|
|
4355
4358
|
|
|
4356
4359
|
class EventTarget {
|
|
4357
4360
|
constructor() {
|
|
@@ -4927,18 +4930,6 @@ var agentStorage = (function () {
|
|
|
4927
4930
|
};
|
|
4928
4931
|
})();
|
|
4929
4932
|
|
|
4930
|
-
/*
|
|
4931
|
-
* @license MIT - https://github.com/taylorhakes/promise-polyfill
|
|
4932
|
-
*/
|
|
4933
|
-
// Modified to not affect global environment: the `var` keeps the binding module-local
|
|
4934
|
-
// so the polyfill never assigns to the real global `Promise`.
|
|
4935
|
-
//
|
|
4936
|
-
// Main-thread only. Reading `window` here is safe because rollup's `inject` is skipped
|
|
4937
|
-
// for the nested worker build (see `skipPlugins` on webWorkerLoader in
|
|
4938
|
-
// rollup/web-sdk.config.mjs): a worker realm has a native Promise and no `window`, so
|
|
4939
|
-
// injecting this polyfill there was both unreachable and fatal — it threw
|
|
4940
|
-
// `ReferenceError: window is not defined` at worker startup and stopped session replay
|
|
4941
|
-
// with a WORKER_ERROR. APP-163474.
|
|
4942
4933
|
var Promise$1;
|
|
4943
4934
|
|
|
4944
4935
|
Promise$1 = (function (global, factory) {
|
|
@@ -4948,7 +4939,7 @@ Promise$1 = (function (global, factory) {
|
|
|
4948
4939
|
}
|
|
4949
4940
|
|
|
4950
4941
|
return nativePromise;
|
|
4951
|
-
}(
|
|
4942
|
+
}(globalScope, (function () {
|
|
4952
4943
|
/**
|
|
4953
4944
|
* @this {Promise}
|
|
4954
4945
|
*/
|
|
@@ -6277,6 +6268,7 @@ function wasSessionCleared(evt) {
|
|
|
6277
6268
|
//
|
|
6278
6269
|
// NOTE: This, for now, at least is identified as an instanceof HTMLAnchorElement
|
|
6279
6270
|
|
|
6271
|
+
|
|
6280
6272
|
function URLPolyfillFactory(doc) {
|
|
6281
6273
|
return function URL(str) {
|
|
6282
6274
|
var a = doc.createElement('a');
|
|
@@ -6308,11 +6300,11 @@ function URLPolyfillFactory(doc) {
|
|
|
6308
6300
|
var URL = (function(global, factory) {
|
|
6309
6301
|
var nativeURL = global.URL;
|
|
6310
6302
|
if (typeof nativeURL !== 'function' || !/native/.test(nativeURL)) {
|
|
6311
|
-
return factory(document);
|
|
6303
|
+
return factory(global.document);
|
|
6312
6304
|
}
|
|
6313
6305
|
|
|
6314
6306
|
return nativeURL;
|
|
6315
|
-
})(
|
|
6307
|
+
})(globalScope, URLPolyfillFactory);
|
|
6316
6308
|
|
|
6317
6309
|
function hasComposedPath(evt) {
|
|
6318
6310
|
return evt && typeof evt.composedPath === 'function';
|
|
@@ -11658,7 +11650,7 @@ var WeakRef = (function(global, factory) {
|
|
|
11658
11650
|
}
|
|
11659
11651
|
|
|
11660
11652
|
return nativeWeakRef;
|
|
11661
|
-
})(
|
|
11653
|
+
})(globalScope, WeakRefFactory);
|
|
11662
11654
|
|
|
11663
11655
|
const trimString = (str, limit) => {
|
|
11664
11656
|
const len = str.length;
|
|
@@ -42910,10 +42902,13 @@ function GuideMarkdown() {
|
|
|
42910
42902
|
}
|
|
42911
42903
|
|
|
42912
42904
|
// Resolve the global object without relying on a bare `window` identifier.
|
|
42913
|
-
// `window` is only a bound global in a normal browser realm;
|
|
42914
|
-
//
|
|
42915
|
-
//
|
|
42916
|
-
//
|
|
42905
|
+
// `window` is only a bound global in a normal browser realm; the compat builds
|
|
42906
|
+
// bind it via their `(function(window, document){...})` wrapper, but the npm
|
|
42907
|
+
// module build has no wrapper, so its module scope can be evaluated in realms
|
|
42908
|
+
// where `window` is undeclared (a Web Worker, or a customer bundler re-chunking
|
|
42909
|
+
// the module into worker-reachable code) and a bare reference throws a
|
|
42910
|
+
// ReferenceError at module-load. `globalThis` resolves in every realm; the
|
|
42911
|
+
// `self`/`window` fallbacks cover engines that predate it. APP-160669, APP-165809.
|
|
42917
42912
|
function getGlobalScope() {
|
|
42918
42913
|
if (typeof globalThis !== 'undefined') {
|
|
42919
42914
|
return globalThis;
|
|
@@ -42961,6 +42956,7 @@ var setTimeout$1 = setTimeout;
|
|
|
42961
42956
|
//
|
|
42962
42957
|
// NOTE: This, for now, at least is identified as an instanceof HTMLAnchorElement
|
|
42963
42958
|
|
|
42959
|
+
|
|
42964
42960
|
function URLPolyfillFactory(doc) {
|
|
42965
42961
|
return function URL(str) {
|
|
42966
42962
|
var a = doc.createElement('a');
|
|
@@ -42992,24 +42988,12 @@ function URLPolyfillFactory(doc) {
|
|
|
42992
42988
|
var URL$1 = (function(global, factory) {
|
|
42993
42989
|
var nativeURL = global.URL;
|
|
42994
42990
|
if (typeof nativeURL !== 'function' || !/native/.test(nativeURL)) {
|
|
42995
|
-
return factory(document);
|
|
42991
|
+
return factory(global.document);
|
|
42996
42992
|
}
|
|
42997
42993
|
|
|
42998
42994
|
return nativeURL;
|
|
42999
|
-
})(
|
|
42995
|
+
})(globalScope, URLPolyfillFactory);
|
|
43000
42996
|
|
|
43001
|
-
/*
|
|
43002
|
-
* @license MIT - https://github.com/taylorhakes/promise-polyfill
|
|
43003
|
-
*/
|
|
43004
|
-
// Modified to not affect global environment: the `var` keeps the binding module-local
|
|
43005
|
-
// so the polyfill never assigns to the real global `Promise`.
|
|
43006
|
-
//
|
|
43007
|
-
// Main-thread only. Reading `window` here is safe because rollup's `inject` is skipped
|
|
43008
|
-
// for the nested worker build (see `skipPlugins` on webWorkerLoader in
|
|
43009
|
-
// rollup/web-sdk.config.mjs): a worker realm has a native Promise and no `window`, so
|
|
43010
|
-
// injecting this polyfill there was both unreachable and fatal — it threw
|
|
43011
|
-
// `ReferenceError: window is not defined` at worker startup and stopped session replay
|
|
43012
|
-
// with a WORKER_ERROR. APP-163474.
|
|
43013
42997
|
var Promise$1;
|
|
43014
42998
|
|
|
43015
42999
|
Promise$1 = (function (global, factory) {
|
|
@@ -43019,7 +43003,7 @@ Promise$1 = (function (global, factory) {
|
|
|
43019
43003
|
}
|
|
43020
43004
|
|
|
43021
43005
|
return nativePromise;
|
|
43022
|
-
}(
|
|
43006
|
+
}(globalScope, (function () {
|
|
43023
43007
|
/**
|
|
43024
43008
|
* @this {Promise}
|
|
43025
43009
|
*/
|
|
@@ -55467,7 +55451,7 @@ var underscore = {exports: {}};
|
|
|
55467
55451
|
var underscoreExports = underscore.exports;
|
|
55468
55452
|
var _ = /*@__PURE__*/getDefaultExportFromCjs(underscoreExports);
|
|
55469
55453
|
|
|
55470
|
-
var encodeURIComponent = _.isFunction(
|
|
55454
|
+
var encodeURIComponent = _.isFunction(globalScope.encodeURIComponent) ? globalScope.encodeURIComponent : _.identity;
|
|
55471
55455
|
|
|
55472
55456
|
const WIDGET_SETTINGS_API = '/external/widget/settings';
|
|
55473
55457
|
class PredictApiService {
|