@pendo/agent 2.302.1 → 2.302.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 CHANGED
@@ -7359,7 +7359,7 @@ function getScreenPosition(element) {
7359
7359
  };
7360
7360
  }
7361
7361
 
7362
- var VERSION = '2.302.1_';
7362
+ var VERSION = '2.302.2_';
7363
7363
 
7364
7364
  var decodeURIComponent = _.isFunction(window.decodeURIComponent) ? window.decodeURIComponent : _.identity;
7365
7365
 
@@ -3904,8 +3904,8 @@ let SERVER = '';
3904
3904
  let ASSET_HOST = '';
3905
3905
  let ASSET_PATH = '';
3906
3906
  let DESIGNER_SERVER = '';
3907
- let VERSION = '2.302.1_';
3908
- let PACKAGE_VERSION = '2.302.1';
3907
+ let VERSION = '2.302.2_';
3908
+ let PACKAGE_VERSION = '2.302.2';
3909
3909
  let LOADER = 'xhr';
3910
3910
  /* eslint-enable agent-eslint-rules/no-gulp-env-references */
3911
3911
  /**
@@ -26799,9 +26799,8 @@ class NetworkRequestIntercept {
26799
26799
  window.fetch = function (...args) {
26800
26800
  return __awaiter(this, void 0, void 0, function* () {
26801
26801
  let [url, config = {}] = args;
26802
- let isRequestObject = false;
26803
- if (_.isObject(args[0])) {
26804
- isRequestObject = true;
26802
+ const isRequestObject = _.isObject(args[0]) && _.isFunction(args[0].clone) && !(args[0] instanceof URL);
26803
+ if (isRequestObject) {
26805
26804
  url = args[0].url;
26806
26805
  // Clone the Request object to avoid consuming the body
26807
26806
  config = args[0].clone();