snyk 1.915.0 → 1.916.0

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.
@@ -502,8 +502,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
502
502
  exports.getCodeClientProxyUrl = void 0;
503
503
  const config_1 = __webpack_require__(22541);
504
504
  function getCodeClientProxyUrl() {
505
+ const url = new URL(config_1.default.API);
506
+ const domain = url.origin;
505
507
  return (config_1.default.CODE_CLIENT_PROXY_URL ||
506
- config_1.default.API.replace(/snyk\.io.*/, 'snyk.io').replace(/\/\/(app\.)?/, '//deeproxy.'));
508
+ domain.replace(/\/\/(app\.)?/, '//deeproxy.'));
507
509
  }
508
510
  exports.getCodeClientProxyUrl = getCodeClientProxyUrl;
509
511