@pendo/agent 2.337.3 → 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 +20 -22
- package/dist/pendo.debugger.min.js +13 -8
- package/dist/pendo.module.js +224 -76
- package/dist/pendo.module.min.js +10 -10
- package/dist/pendo.preview.min.js +5 -5
- package/dist/replay.worker.min.js +1 -1
- 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
|
*/
|
|
@@ -7302,7 +7293,14 @@ function isMobileUserAgent() {
|
|
|
7302
7293
|
}
|
|
7303
7294
|
function isSafari(userAgent) {
|
|
7304
7295
|
if (userAgent === void 0) { userAgent = getUA(); }
|
|
7305
|
-
return userAgent.indexOf('Safari') >= 0 && !userAgent
|
|
7296
|
+
return userAgent.indexOf('Safari') >= 0 && !isChromium(userAgent);
|
|
7297
|
+
}
|
|
7298
|
+
// Every Chromium UA carries a trailing Safari/ token, so Chrome, Edge, Opera,
|
|
7299
|
+
// Brave and Electron all have to be excluded from isSafari(). Chromium builds
|
|
7300
|
+
// report Chromium/ without a Chrome/ token, hence both checks.
|
|
7301
|
+
function isChromium(userAgent) {
|
|
7302
|
+
if (userAgent === void 0) { userAgent = getUA(); }
|
|
7303
|
+
return userAgent.indexOf('Chrome') >= 0 || userAgent.indexOf('Chromium') >= 0;
|
|
7306
7304
|
}
|
|
7307
7305
|
var sniffer = {
|
|
7308
7306
|
supportsHistoryApi: shouldWrapNativeHistory,
|
|
@@ -7531,11 +7529,11 @@ function applyMatrix2dRect(matrix2d, rect) {
|
|
|
7531
7529
|
return transformedRect;
|
|
7532
7530
|
}
|
|
7533
7531
|
|
|
7534
|
-
var VERSION = '2.
|
|
7532
|
+
var VERSION = '2.338.2_';
|
|
7535
7533
|
|
|
7536
|
-
var decodeURIComponent = _.isFunction(
|
|
7534
|
+
var decodeURIComponent = _.isFunction(globalScope.decodeURIComponent) ? globalScope.decodeURIComponent : _.identity;
|
|
7537
7535
|
|
|
7538
|
-
var encodeURIComponent = _.isFunction(
|
|
7536
|
+
var encodeURIComponent = _.isFunction(globalScope.encodeURIComponent) ? globalScope.encodeURIComponent : _.identity;
|
|
7539
7537
|
|
|
7540
7538
|
var allowKeys = function () {
|
|
7541
7539
|
var allowKeys = ConfigReader.get('storage.allowKeys') || '*';
|
|
@@ -10102,7 +10100,7 @@ var WeakRef = (function(global, factory) {
|
|
|
10102
10100
|
}
|
|
10103
10101
|
|
|
10104
10102
|
return nativeWeakRef;
|
|
10105
|
-
})(
|
|
10103
|
+
})(globalScope, WeakRefFactory);
|
|
10106
10104
|
|
|
10107
10105
|
var trimString = function (str, limit) {
|
|
10108
10106
|
var len = str.length;
|