@sap/ux-ui5-tooling 1.7.4 → 1.7.6

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.
@@ -39323,6 +39323,7 @@ var require_page = __commonJS({
39323
39323
  PageType2["ListReport"] = "ListReport";
39324
39324
  PageType2["OverviewPage"] = "OverviewPage";
39325
39325
  PageType2["CustomPage"] = "CustomPage";
39326
+ PageType2["FPMCustomPage"] = "FPMCustomPage";
39326
39327
  PageType2["AnalyticalListPage"] = "AnalyticalListPage";
39327
39328
  })(PageType = exports2.PageType || (exports2.PageType = {}));
39328
39329
  }
@@ -51364,7 +51365,7 @@ var require_package5 = __commonJS({
51364
51365
  "../lib/telemetry/dist/package.json"(exports2, module2) {
51365
51366
  module2.exports = {
51366
51367
  name: "@sap/ux-telemetry",
51367
- version: "1.7.4",
51368
+ version: "1.7.6",
51368
51369
  description: "SAP Fiori tools telemetry library",
51369
51370
  main: "dist/src/index.js",
51370
51371
  author: "SAP SE",
@@ -51389,10 +51390,10 @@ var require_package5 = __commonJS({
51389
51390
  },
51390
51391
  dependencies: {
51391
51392
  "@sap-ux/store": "0.3.0",
51392
- "@sap/ux-cds": "1.7.4",
51393
- "@sap/ux-common-utils": "1.7.4",
51394
- "@sap/ux-feature-toggle": "1.7.4",
51395
- "@sap/ux-project-access": "1.7.4",
51393
+ "@sap/ux-cds": "1.7.6",
51394
+ "@sap/ux-common-utils": "1.7.6",
51395
+ "@sap/ux-feature-toggle": "1.7.6",
51396
+ "@sap/ux-project-access": "1.7.6",
51396
51397
  applicationinsights: "1.4.1",
51397
51398
  "performance-now": "2.1.0",
51398
51399
  yaml: "2.0.0-10"
@@ -54974,6 +54975,9 @@ var require_commandRunner = __commonJS({
54974
54975
  spawnedCmd.stderr.on("data", (data2) => {
54975
54976
  stack.push(data2.toString());
54976
54977
  });
54978
+ spawnedCmd.on("error", (error6) => {
54979
+ reject(`Command failed with error: ${error6.message}`);
54980
+ });
54977
54981
  spawnedCmd.on("close", (errorCode) => {
54978
54982
  if (errorCode !== 0) {
54979
54983
  reject(`Command failed, \`${cmd} ${args.join(" ")}\`, ${stack.join(", ")}`);
@@ -57797,7 +57801,9 @@ var require_ui5_info = __commonJS({
57797
57801
  if (ui5SelectedVersion && ui5SelectedVersion.length) {
57798
57802
  const latestMinIdx = latestVersions.findIndex((v) => v === ui5SelectedVersion);
57799
57803
  if (latestMinIdx === -1) {
57800
- if (ui5SelectedVersion < latestVersions.slice(-1)[0]) {
57804
+ if (semver_compare_1.default(ui5SelectedVersion, latestVersions.slice(-1)[0]) > 0 || ui5SelectedVersion === "Latest" || !semver_1.valid(ui5SelectedVersion)) {
57805
+ latestVersions = latestVersions.slice(0);
57806
+ } else {
57801
57807
  latestVersions = latestVersions.slice(-1);
57802
57808
  }
57803
57809
  } else {
@@ -57863,7 +57869,7 @@ var require_dist6 = __commonJS({
57863
57869
  "../lib/ui5-info/core/dist/index.js"(exports2) {
57864
57870
  "use strict";
57865
57871
  Object.defineProperty(exports2, "__esModule", { value: true });
57866
- exports2.UI5Info = exports2.minUI5VersionForLocalDev = exports2.FioriElementsVersion = exports2.getSpecTagVersion = exports2.getLatestSapui5Version = exports2.parseUI5VersionsOverview = exports2.getUI5VersionsEnhanced = exports2.getSapSystemUI5Version = exports2.parseUI5Versions = exports2.uI5VersionsWithCodeAssist = exports2.getManifestVersion = exports2.getDefaultTheme = exports2.getUi5Themes = exports2.retrieveUI5Versions = exports2.MIN_UI5_VERSION_FPM_TEMPLATE = exports2.MIN_UI5_VERSION_OVERVIEW_V4_TEMPLATE = exports2.MIN_UI5_VERSION_WORKLIST_V4_TEMPLATE = exports2.MIN_UI5_VERSION_FORM_ENTRY_TEMPLATE = exports2.MIN_UI5_VERSION_ALP_V4_TEMPLATE = exports2.MIN_UI5_VERSION = exports2.MIN_UI5_VERSION_V4_TEMPLATE = exports2.CommandRunner = void 0;
57872
+ exports2.UI5Info = exports2.minUI5VersionForLocalDev = exports2.FioriElementsVersion = exports2.ThemeIds = exports2.getSpecTagVersion = exports2.getLatestSapui5Version = exports2.parseUI5VersionsOverview = exports2.getUI5VersionsEnhanced = exports2.getSapSystemUI5Version = exports2.parseUI5Versions = exports2.uI5VersionsWithCodeAssist = exports2.getManifestVersion = exports2.getDefaultTheme = exports2.getUi5Themes = exports2.retrieveUI5Versions = exports2.MIN_UI5_VERSION_FPM_TEMPLATE = exports2.MIN_UI5_VERSION_OVERVIEW_V4_TEMPLATE = exports2.MIN_UI5_VERSION_WORKLIST_V4_TEMPLATE = exports2.MIN_UI5_VERSION_FORM_ENTRY_TEMPLATE = exports2.MIN_UI5_VERSION_ALP_V4_TEMPLATE = exports2.MIN_UI5_VERSION = exports2.MIN_UI5_VERSION_V4_TEMPLATE = exports2.CommandRunner = void 0;
57867
57873
  var commandRunner_1 = require_commandRunner();
57868
57874
  Object.defineProperty(exports2, "CommandRunner", { enumerable: true, get: function() {
57869
57875
  return commandRunner_1.CommandRunner;
@@ -57923,6 +57929,9 @@ var require_dist6 = __commonJS({
57923
57929
  Object.defineProperty(exports2, "getSpecTagVersion", { enumerable: true, get: function() {
57924
57930
  return ui5_info_1.getSpecTagVersion;
57925
57931
  } });
57932
+ Object.defineProperty(exports2, "ThemeIds", { enumerable: true, get: function() {
57933
+ return ui5_info_1.ThemeIds;
57934
+ } });
57926
57935
  var types_1 = require_types4();
57927
57936
  Object.defineProperty(exports2, "FioriElementsVersion", { enumerable: true, get: function() {
57928
57937
  return types_1.FioriElementsVersion;
@@ -58420,6 +58429,25 @@ var require_utils9 = __commonJS({
58420
58429
  throw new Error(i18n_1.i18n.t("ERROR_DETAIL_PROJECT_TYPE", { appRoot, projectRoot }));
58421
58430
  }
58422
58431
  exports2.getDetailedProjectType = getDetailedProjectType;
58432
+ function findRootsWithSapux(sapux, path, root) {
58433
+ if (typeof sapux === "boolean" && sapux === true) {
58434
+ return {
58435
+ appRoot: root,
58436
+ projectRoot: root
58437
+ };
58438
+ } else if (Array.isArray(sapux)) {
58439
+ const pathWithSep = path.endsWith(path_1.sep) ? path : path + path_1.sep;
58440
+ const relAppPaths = sapux.map((a) => path_1.join(...a.split(/\\|\//)));
58441
+ const relApp = relAppPaths.find((app) => pathWithSep.startsWith(path_1.join(root, app) + path_1.sep));
58442
+ if (relApp) {
58443
+ return {
58444
+ appRoot: path_1.join(root, relApp),
58445
+ projectRoot: root
58446
+ };
58447
+ }
58448
+ }
58449
+ return null;
58450
+ }
58423
58451
  async function findRootsForPath(path) {
58424
58452
  try {
58425
58453
  const appRoot = await findProjectRoot(path, false);
@@ -58427,23 +58455,8 @@ var require_utils9 = __commonJS({
58427
58455
  return null;
58428
58456
  }
58429
58457
  const appPckJson = await file_1.readJSON(path_1.join(appRoot, project_spec_1.FileName.Package));
58430
- if (appPckJson == null ? void 0 : appPckJson.sapux) {
58431
- if (typeof appPckJson.sapux === "boolean" && appPckJson.sapux === true) {
58432
- return {
58433
- appRoot,
58434
- projectRoot: appRoot
58435
- };
58436
- } else if (Array.isArray(appPckJson.sapux)) {
58437
- const relAppPaths = appPckJson.sapux.map((a) => path_1.join(...a.split(/\\|\//)));
58438
- const relApp = relAppPaths.find((app) => path.startsWith(path_1.join(appRoot, app) + path_1.sep));
58439
- if (relApp) {
58440
- return {
58441
- appRoot: path_1.join(appRoot, relApp),
58442
- projectRoot: appRoot
58443
- };
58444
- }
58445
- }
58446
- return null;
58458
+ if (appPckJson.sapux) {
58459
+ return findRootsWithSapux(appPckJson.sapux, path, appRoot);
58447
58460
  }
58448
58461
  if (await capProject_1.isCapProject(appRoot, appPckJson)) {
58449
58462
  return null;
@@ -58458,13 +58471,11 @@ var require_utils9 = __commonJS({
58458
58471
  const { root } = path_1.parse(appRoot);
58459
58472
  let projectRoot = path_1.dirname(appRoot);
58460
58473
  while (projectRoot !== root) {
58461
- if (await capProject_1.isCapProject(projectRoot)) {
58462
- if (path_1.join(projectRoot, "app") !== appRoot) {
58463
- return {
58464
- appRoot,
58465
- projectRoot
58466
- };
58467
- }
58474
+ if (await capProject_1.isCapProject(projectRoot) && path_1.join(projectRoot, "app") !== appRoot) {
58475
+ return {
58476
+ appRoot,
58477
+ projectRoot
58478
+ };
58468
58479
  }
58469
58480
  projectRoot = path_1.dirname(projectRoot);
58470
58481
  }
@@ -86862,7 +86873,7 @@ var require_dist10 = __commonJS({
86862
86873
  }
86863
86874
  });
86864
86875
 
86865
- // ../../node_modules/@sap-ux/yaml/node_modules/i18next/dist/esm/i18next.js
86876
+ // ../../node_modules/@sap-ux/ui5-config/node_modules/i18next/dist/esm/i18next.js
86866
86877
  var i18next_exports3 = {};
86867
86878
  __export(i18next_exports3, {
86868
86879
  default: () => i18next_default3
@@ -87121,7 +87132,7 @@ function noop3() {
87121
87132
  }
87122
87133
  var consoleLogger3, Logger3, baseLogger3, EventEmitter3, _entityMap3, isIE102, ResourceStore3, postProcessor3, checkedLoadedFor3, Translator3, LanguageUtil3, sets3, _rulesPluralsTypes3, PluralResolver3, Interpolator3, Connector3, I18n3, i18next3, i18next_default3;
87123
87134
  var init_i18next3 = __esm({
87124
- "../../node_modules/@sap-ux/yaml/node_modules/i18next/dist/esm/i18next.js"() {
87135
+ "../../node_modules/@sap-ux/ui5-config/node_modules/i18next/dist/esm/i18next.js"() {
87125
87136
  init_typeof();
87126
87137
  init_objectSpread();
87127
87138
  init_classCallCheck();
@@ -89059,9 +89070,9 @@ var init_i18next3 = __esm({
89059
89070
  }
89060
89071
  });
89061
89072
 
89062
- // ../../node_modules/@sap-ux/yaml/dist/i18n.js
89073
+ // ../../node_modules/@sap-ux/ui5-config/node_modules/@sap-ux/yaml/dist/i18n.js
89063
89074
  var require_i18n5 = __commonJS({
89064
- "../../node_modules/@sap-ux/yaml/dist/i18n.js"(exports2) {
89075
+ "../../node_modules/@sap-ux/ui5-config/node_modules/@sap-ux/yaml/dist/i18n.js"(exports2) {
89065
89076
  "use strict";
89066
89077
  var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
89067
89078
  function adopt(value) {
@@ -89837,9 +89848,9 @@ var require_lodash2 = __commonJS({
89837
89848
  }
89838
89849
  });
89839
89850
 
89840
- // ../../node_modules/@sap-ux/yaml/dist/yaml-document.js
89851
+ // ../../node_modules/@sap-ux/ui5-config/node_modules/@sap-ux/yaml/dist/yaml-document.js
89841
89852
  var require_yaml_document = __commonJS({
89842
- "../../node_modules/@sap-ux/yaml/dist/yaml-document.js"(exports2) {
89853
+ "../../node_modules/@sap-ux/ui5-config/node_modules/@sap-ux/yaml/dist/yaml-document.js"(exports2) {
89843
89854
  "use strict";
89844
89855
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
89845
89856
  if (k2 === void 0)
@@ -89987,6 +89998,9 @@ var require_yaml_document = __commonJS({
89987
89998
  throw new Error(i18n_1.t("error.seqDoesNotExist", { path }));
89988
89999
  }
89989
90000
  const node = seq.items.find((nodeInput) => nodeInput.toJSON()[matcher.key] === matcher.value);
90001
+ if (!node) {
90002
+ throw new Error(i18n_1.t("error.nodeNotFoundMatching", { path, key: matcher.key, value: matcher.value }));
90003
+ }
89990
90004
  const newNode = this.document.createNode(merge(node.toJSON(), value));
89991
90005
  seq.items.splice(seq.items.indexOf(node), 1, newNode);
89992
90006
  return this;
@@ -90057,9 +90071,9 @@ var require_yaml_document = __commonJS({
90057
90071
  }
90058
90072
  });
90059
90073
 
90060
- // ../../node_modules/@sap-ux/yaml/dist/index.js
90074
+ // ../../node_modules/@sap-ux/ui5-config/node_modules/@sap-ux/yaml/dist/index.js
90061
90075
  var require_dist11 = __commonJS({
90062
- "../../node_modules/@sap-ux/yaml/dist/index.js"(exports2) {
90076
+ "../../node_modules/@sap-ux/ui5-config/node_modules/@sap-ux/yaml/dist/index.js"(exports2) {
90063
90077
  "use strict";
90064
90078
  Object.defineProperty(exports2, "__esModule", { value: true });
90065
90079
  exports2.YAMLMap = exports2.YAMLSeq = exports2.YamlDocument = void 0;
@@ -90130,7 +90144,7 @@ var require_middlewares = __commonJS({
90130
90144
  return { config: fioriToolsProxy, comments };
90131
90145
  }
90132
90146
  exports2.getFioriToolsProxyMiddlewareConfig = getFioriToolsProxyMiddlewareConfig;
90133
- exports2.getMockServerMiddlewareConfig = (path) => {
90147
+ var getMockServerMiddlewareConfig = (path) => {
90134
90148
  path = path === null || path === void 0 ? void 0 : path.replace(/\/$/, "");
90135
90149
  return {
90136
90150
  name: "sap-fe-mockserver",
@@ -90149,6 +90163,7 @@ var require_middlewares = __commonJS({
90149
90163
  }
90150
90164
  };
90151
90165
  };
90166
+ exports2.getMockServerMiddlewareConfig = getMockServerMiddlewareConfig;
90152
90167
  }
90153
90168
  });
90154
90169
 
@@ -90301,6 +90316,31 @@ var require_ui5config = __commonJS({
90301
90316
  });
90302
90317
  return this;
90303
90318
  }
90319
+ removeCustomTask(name2) {
90320
+ this.document.deleteAt({
90321
+ path: "builder.customTasks",
90322
+ matcher: { key: "name", value: name2 }
90323
+ });
90324
+ return this;
90325
+ }
90326
+ findCustomActivity(name2, path) {
90327
+ let list;
90328
+ try {
90329
+ list = this.document.getSequence({ path });
90330
+ } catch (error6) {
90331
+ }
90332
+ let item;
90333
+ if (list) {
90334
+ item = this.document.findItem(list, (item2) => item2.name === name2);
90335
+ }
90336
+ return item ? item.toJSON() : void 0;
90337
+ }
90338
+ findCustomMiddleware(name2) {
90339
+ return this.findCustomActivity(name2, "server.customMiddleware");
90340
+ }
90341
+ findCustomTask(name2) {
90342
+ return this.findCustomActivity(name2, "builder.customTasks");
90343
+ }
90304
90344
  toString() {
90305
90345
  return this.document.toString();
90306
90346
  }
@@ -92648,21 +92688,24 @@ var require_utils14 = __commonJS({
92648
92688
  var path_1 = require("path");
92649
92689
  var constants_1 = require_constants10();
92650
92690
  var i18n_1 = require_i18n6();
92651
- exports2.proxyResponseHandler = (proxyRes, etag) => {
92691
+ var proxyResponseHandler = (proxyRes, etag) => {
92652
92692
  proxyRes.headers["Etag"] = etag;
92653
92693
  proxyRes.headers["cache-control"] = "no-cache";
92654
92694
  };
92655
- exports2.proxyRequestHandler = (proxyReq, res, etag, logger) => {
92695
+ exports2.proxyResponseHandler = proxyResponseHandler;
92696
+ var proxyRequestHandler = (proxyReq, res, etag, logger) => {
92656
92697
  logger.info(proxyReq.path);
92657
92698
  if (proxyReq.getHeader("if-none-match") === etag) {
92658
92699
  res.statusCode = 304;
92659
92700
  res.end();
92660
92701
  }
92661
92702
  };
92662
- exports2.getCorporateProxyServer = (yamlProxyServer) => {
92703
+ exports2.proxyRequestHandler = proxyRequestHandler;
92704
+ var getCorporateProxyServer2 = (yamlProxyServer) => {
92663
92705
  return yamlProxyServer || process.env.FIORI_TOOLS_PROXY || process.env.http_proxy || process.env.HTTP_PROXY || process.env.https_proxy || process.env.HTTPS_PROXY || process.env.npm_config_proxy || process.env.npm_config_https_proxy;
92664
92706
  };
92665
- exports2.hideProxyCredentials = (proxy) => {
92707
+ exports2.getCorporateProxyServer = getCorporateProxyServer2;
92708
+ var hideProxyCredentials = (proxy) => {
92666
92709
  if (proxy) {
92667
92710
  const forwardSlashIndex = proxy.indexOf("//");
92668
92711
  const atIndex = proxy.indexOf("@");
@@ -92672,7 +92715,8 @@ var require_utils14 = __commonJS({
92672
92715
  }
92673
92716
  return proxy;
92674
92717
  };
92675
- exports2.isHostExcludedFromProxy = (noProxyConfig, url) => {
92718
+ exports2.hideProxyCredentials = hideProxyCredentials;
92719
+ var isHostExcludedFromProxy2 = (url, noProxyConfig = process.env.no_proxy || process.env.npm_config_noproxy) => {
92676
92720
  if (noProxyConfig === "*") {
92677
92721
  return true;
92678
92722
  } else {
@@ -92681,7 +92725,8 @@ var require_utils14 = __commonJS({
92681
92725
  return !!noProxyList.find((entry) => entry.startsWith(".") ? host.endsWith(entry) : host.endsWith(`.${entry}`));
92682
92726
  }
92683
92727
  };
92684
- exports2.getHtmlFile = (url) => {
92728
+ exports2.isHostExcludedFromProxy = isHostExcludedFromProxy2;
92729
+ var getHtmlFile2 = (url) => {
92685
92730
  let html = url;
92686
92731
  if (html.indexOf("?") !== -1) {
92687
92732
  html = html.split("?")[0].replace(/["']/g, "");
@@ -92692,7 +92737,8 @@ var require_utils14 = __commonJS({
92692
92737
  }
92693
92738
  return html;
92694
92739
  };
92695
- exports2.getYamlFile = (args) => {
92740
+ exports2.getHtmlFile = getHtmlFile2;
92741
+ var getYamlFile2 = (args) => {
92696
92742
  let yaml = "ui5.yaml";
92697
92743
  const index = args.indexOf("--config") !== -1 ? args.indexOf("--config") : args.indexOf("-c");
92698
92744
  if (index !== -1) {
@@ -92700,7 +92746,8 @@ var require_utils14 = __commonJS({
92700
92746
  }
92701
92747
  return yaml;
92702
92748
  };
92703
- exports2.getWebAppFolderFromYaml = (ui5YamlPath) => __awaiter(void 0, void 0, void 0, function* () {
92749
+ exports2.getYamlFile = getYamlFile2;
92750
+ var getWebAppFolderFromYaml2 = (ui5YamlPath) => __awaiter(void 0, void 0, void 0, function* () {
92704
92751
  var _a2, _b;
92705
92752
  if (fs_1.existsSync(ui5YamlPath)) {
92706
92753
  const ui5Config = yield ui5_config_1.UI5Config.newInstance(fs_1.readFileSync(ui5YamlPath, { encoding: "utf8" }));
@@ -92709,7 +92756,8 @@ var require_utils14 = __commonJS({
92709
92756
  return "webapp";
92710
92757
  }
92711
92758
  });
92712
- exports2.setHtmlResponse = (res, html) => {
92759
+ exports2.getWebAppFolderFromYaml = getWebAppFolderFromYaml2;
92760
+ var setHtmlResponse2 = (res, html) => {
92713
92761
  if (res["_livereload"]) {
92714
92762
  res.write(html);
92715
92763
  res.end();
@@ -92717,7 +92765,8 @@ var require_utils14 = __commonJS({
92717
92765
  res.status(200).contentType("html").send(html);
92718
92766
  }
92719
92767
  };
92720
- exports2.getManifest = (args) => __awaiter(void 0, void 0, void 0, function* () {
92768
+ exports2.setHtmlResponse = setHtmlResponse2;
92769
+ var getManifest2 = (args) => __awaiter(void 0, void 0, void 0, function* () {
92721
92770
  const projectRoot = process.cwd();
92722
92771
  const yamlFileName = exports2.getYamlFile(args);
92723
92772
  const ui5YamlPath = path_1.join(projectRoot, yamlFileName);
@@ -92726,6 +92775,7 @@ var require_utils14 = __commonJS({
92726
92775
  const manifest = JSON.parse(fs_1.readFileSync(manifestPath, { encoding: "utf8" }));
92727
92776
  return manifest;
92728
92777
  });
92778
+ exports2.getManifest = getManifest2;
92729
92779
  function getUI5VersionFromManifest2(args) {
92730
92780
  var _a2, _b;
92731
92781
  return __awaiter(this, void 0, void 0, function* () {
@@ -92779,7 +92829,7 @@ var require_utils14 = __commonJS({
92779
92829
  }
92780
92830
  }
92781
92831
  exports2.injectUI5Url = injectUI5Url2;
92782
- exports2.injectScripts = (req, res, next, ui5Configs) => __awaiter(void 0, void 0, void 0, function* () {
92832
+ var injectScripts2 = (req, res, next, ui5Configs) => __awaiter(void 0, void 0, void 0, function* () {
92783
92833
  try {
92784
92834
  const projectRoot = process.cwd();
92785
92835
  const args = process.argv;
@@ -92798,13 +92848,15 @@ var require_utils14 = __commonJS({
92798
92848
  next(error6);
92799
92849
  }
92800
92850
  });
92801
- exports2.filterCompressedHtmlFiles = (_pathname, req) => {
92851
+ exports2.injectScripts = injectScripts2;
92852
+ var filterCompressedHtmlFiles = (_pathname, req) => {
92802
92853
  const acceptHeader = req.headers["accept"] || "";
92803
92854
  if (req.headers["accept-encoding"] && (acceptHeader.includes("text/html") || acceptHeader.includes("application/xhtml+xml"))) {
92804
92855
  delete req.headers["accept-encoding"];
92805
92856
  }
92806
92857
  return true;
92807
92858
  };
92859
+ exports2.filterCompressedHtmlFiles = filterCompressedHtmlFiles;
92808
92860
  function proxyErrorHandler(err, req, logger, _res, _target) {
92809
92861
  var _a2;
92810
92862
  if (err && ((_a2 = err.stack) === null || _a2 === void 0 ? void 0 : _a2.toLowerCase()) !== "error") {
@@ -93487,7 +93539,8 @@ var require_utils15 = __commonJS({
93487
93539
  }
93488
93540
  }
93489
93541
  var colorGenerator = color();
93490
- exports2.nextColor = () => colorGenerator.next().value;
93542
+ var nextColor = () => colorGenerator.next().value;
93543
+ exports2.nextColor = nextColor;
93491
93544
  }
93492
93545
  });
93493
93546
 
@@ -93686,7 +93739,7 @@ var require_proxy = __commonJS({
93686
93739
  var http_proxy_middleware_1 = require_dist10();
93687
93740
  var utils_1 = require_utils14();
93688
93741
  var logger_1 = require_dist13();
93689
- exports2.ui5Proxy = (config2, options2, filter) => {
93742
+ var ui5Proxy2 = (config2, options2, filter) => {
93690
93743
  const logger = new logger_1.ToolsLogger({
93691
93744
  transports: [new logger_1.UI5ToolingTransport({ moduleName: "ui5-proxy-middleware" })]
93692
93745
  });
@@ -93714,6 +93767,7 @@ var require_proxy = __commonJS({
93714
93767
  }
93715
93768
  return http_proxy_middleware_1.createProxyMiddleware(proxyFilter, proxyConfig);
93716
93769
  };
93770
+ exports2.ui5Proxy = ui5Proxy2;
93717
93771
  }
93718
93772
  });
93719
93773
 
@@ -96754,19 +96808,17 @@ var require_connection2 = __commonJS({
96754
96808
  var _a2, _b, _c;
96755
96809
  if (response.status === 401) {
96756
96810
  throw new error_1.ConnectionError(response.statusText, response);
96811
+ } else if (isSamlLogonNeeded(response) && ((_a2 = provider.defaults.params) === null || _a2 === void 0 ? void 0 : _a2.saml2) !== "disabled") {
96812
+ provider.defaults.params = (_b = provider.defaults.params) !== null && _b !== void 0 ? _b : {};
96813
+ provider.defaults.params.saml2 = "disabled";
96814
+ return provider.request(response.config);
96757
96815
  } else {
96758
- if (isSamlLogonNeeded(response) && ((_a2 = provider.defaults.params) === null || _a2 === void 0 ? void 0 : _a2.saml2) !== "disabled") {
96759
- provider.defaults.params = (_b = provider.defaults.params) !== null && _b !== void 0 ? _b : {};
96760
- provider.defaults.params.saml2 = "disabled";
96761
- return provider.request(response.config);
96762
- } else {
96763
- throwIfHtmlLoginForm(response);
96764
- if ((_c = response.headers) === null || _c === void 0 ? void 0 : _c[CSRF.ResponseHeaderName]) {
96765
- provider.defaults.headers.common[CSRF.RequestHeaderName] = response.headers[CSRF.ResponseHeaderName];
96766
- }
96767
- provider.interceptors.response.eject(oneTimeRespInterceptorId);
96768
- return response;
96816
+ throwIfHtmlLoginForm(response);
96817
+ if ((_c = response.headers) === null || _c === void 0 ? void 0 : _c[CSRF.ResponseHeaderName]) {
96818
+ provider.defaults.headers.common[CSRF.RequestHeaderName] = response.headers[CSRF.ResponseHeaderName];
96769
96819
  }
96820
+ provider.interceptors.response.eject(oneTimeRespInterceptorId);
96821
+ return response;
96770
96822
  }
96771
96823
  });
96772
96824
  provider.interceptors.request.use((request) => {
@@ -96862,7 +96914,7 @@ var require_message2 = __commonJS({
96862
96914
  }
96863
96915
  }
96864
96916
  exports2.prettyPrintError = prettyPrintError;
96865
- exports2.prettyPrintTimeInMs = (ms) => {
96917
+ var prettyPrintTimeInMs = (ms) => {
96866
96918
  const min = ms / 60 / 1e3 | 0;
96867
96919
  if (min > 1) {
96868
96920
  return `${min} minutes`;
@@ -96872,6 +96924,7 @@ var require_message2 = __commonJS({
96872
96924
  return `${ms / 1e3} seconds`;
96873
96925
  }
96874
96926
  };
96927
+ exports2.prettyPrintTimeInMs = prettyPrintTimeInMs;
96875
96928
  }
96876
96929
  });
96877
96930
 
@@ -96881,16 +96934,18 @@ var require_static2 = __commonJS({
96881
96934
  "use strict";
96882
96935
  Object.defineProperty(exports2, "__esModule", { value: true });
96883
96936
  exports2.redirectErrorHtml = exports2.redirectSuccessHtml = void 0;
96884
- exports2.redirectSuccessHtml = (logoutUrl, systemId) => {
96937
+ var redirectSuccessHtml = (logoutUrl, systemId) => {
96885
96938
  const title = `${systemId ? systemId + ": " : ""}Authentication Successful`;
96886
96939
  const content = logoutUrl ? '<a class="centerLink" href="' + logoutUrl + '">(Click here to log off the current user)</a>' : "";
96887
96940
  return redirectHtml({ title, content });
96888
96941
  };
96889
- exports2.redirectErrorHtml = (systemId) => {
96942
+ exports2.redirectSuccessHtml = redirectSuccessHtml;
96943
+ var redirectErrorHtml = (systemId) => {
96890
96944
  const title = `${systemId ? systemId + ": " : ""}Authentication Successful`;
96891
96945
  const content = "Login failed, please check the logs in the console";
96892
96946
  return redirectHtml({ title, content });
96893
96947
  };
96948
+ exports2.redirectErrorHtml = redirectErrorHtml;
96894
96949
  function redirectHtml({ title, content }) {
96895
96950
  return `
96896
96951
  <html>
@@ -97028,40 +97083,40 @@ var require_redirect = __commonJS({
97028
97083
  };
97029
97084
  Object.defineProperty(exports2, "__esModule", { value: true });
97030
97085
  exports2.setupRedirectHandling = void 0;
97031
- var express_1 = __importDefault(require("express"));
97032
97086
  var http_1 = __importDefault(require("http"));
97033
97087
  var error_1 = require_error3();
97034
97088
  var message_1 = require_message2();
97035
97089
  var static_1 = require_static2();
97036
97090
  function setupRedirectHandling({ resolve, reject, timeout, backend, logger }) {
97037
- const app = express_1.default();
97038
- const server = http_1.default.createServer(app);
97039
97091
  const REDIRECT_PATH = "/redirect";
97092
+ let server;
97040
97093
  const handleTimeout = () => {
97041
- server.close();
97094
+ server === null || server === void 0 ? void 0 : server.close();
97042
97095
  reject(new error_1.TimeoutError(`Timeout. Did not get a response within ${message_1.prettyPrintTimeInMs(timeout)}`));
97043
97096
  };
97044
97097
  const timer = setTimeout(handleTimeout, timeout);
97045
- app.get(REDIRECT_PATH, (req, res) => {
97098
+ server = http_1.default.createServer((req, res) => {
97046
97099
  var _a2;
97047
- if (timer) {
97048
- clearTimeout(timer);
97049
- }
97050
- const reentranceTicket = (_a2 = req.query["reentrance-ticket"]) === null || _a2 === void 0 ? void 0 : _a2.toString();
97051
- if (reentranceTicket) {
97052
- logger.debug("Got reentrance ticket: " + reentranceTicket);
97053
- res.set("Content-Type", "text/html");
97054
- res.send(Buffer.from(static_1.redirectSuccessHtml(backend.logoffUrl())));
97055
- server.close();
97056
- resolve({ reentranceTicket, apiUrl: backend.apiHostname() });
97057
- } else {
97058
- logger.error("Error getting reentrance ticket");
97059
- logger.debug(req);
97060
- res.set("Content-Type", "text/html");
97061
- res.status(500);
97062
- res.send(Buffer.from(static_1.redirectErrorHtml()));
97063
- server.close();
97064
- reject(new error_1.ConnectionError("Error getting reentrance ticket"));
97100
+ const reqUrl = new URL(req.url, `http://${req.headers.host}`);
97101
+ if (reqUrl.pathname === REDIRECT_PATH) {
97102
+ if (timer) {
97103
+ clearTimeout(timer);
97104
+ }
97105
+ const reentranceTicket = (_a2 = reqUrl.searchParams.get("reentrance-ticket")) === null || _a2 === void 0 ? void 0 : _a2.toString();
97106
+ if (reentranceTicket) {
97107
+ logger.debug("Got reentrance ticket: " + reentranceTicket);
97108
+ res.writeHead(200, { "Content-Type": "text/html" });
97109
+ res.end(Buffer.from(static_1.redirectSuccessHtml(backend.logoffUrl())));
97110
+ server.close();
97111
+ resolve({ reentranceTicket, apiUrl: backend.apiHostname() });
97112
+ } else {
97113
+ logger.error("Error getting reentrance ticket");
97114
+ logger.debug(req);
97115
+ res.writeHead(500, { "Content-Type": "text/html" });
97116
+ res.end(Buffer.from(static_1.redirectErrorHtml()));
97117
+ server.close();
97118
+ reject(new error_1.ConnectionError("Error getting reentrance ticket"));
97119
+ }
97065
97120
  }
97066
97121
  });
97067
97122
  return {
@@ -97767,7 +97822,6 @@ var require_uaa = __commonJS({
97767
97822
  exports2.Uaa = void 0;
97768
97823
  var open = require_open2();
97769
97824
  var axios_1 = __importDefault(require_axios2());
97770
- var express_1 = __importDefault(require("express"));
97771
97825
  var http_1 = __importDefault(require("http"));
97772
97826
  var qs_1 = __importDefault(require_lib3());
97773
97827
  var redirect_1 = require_redirect2();
@@ -97858,23 +97912,25 @@ var require_uaa = __commonJS({
97858
97912
  getAuthCode(timeout = connection_1.defaultTimeout) {
97859
97913
  return __awaiter(this, void 0, void 0, function* () {
97860
97914
  return new Promise((resolve, reject) => {
97861
- const app = express_1.default();
97862
- const server = http_1.default.createServer(app);
97863
97915
  let redirect;
97916
+ let server;
97864
97917
  const handleTimeout = () => {
97865
- server.close();
97918
+ server === null || server === void 0 ? void 0 : server.close();
97866
97919
  reject(new error_1.UAATimeoutError(`Timeout. Did not get a response within ${message_1.prettyPrintTimeInMs(timeout)}`));
97867
97920
  };
97868
97921
  const timer = setTimeout(handleTimeout, timeout);
97869
- app.get(redirect_1.Redirect.path, (req, res) => {
97870
- res.set("Content-Type", "text/html");
97871
- res.send(Buffer.from(static_1.redirectSuccessHtml(this.logoutUrl, this.systemId)));
97872
- this.log.info("Got authCode");
97873
- resolve({ authCode: req.query.code + "", redirect });
97874
- if (timer) {
97875
- clearTimeout(timer);
97876
- }
97877
- server.close();
97922
+ server = http_1.default.createServer((req, res) => {
97923
+ const reqUrl = new URL(req.url, `http://${req.headers.host}`);
97924
+ if (reqUrl.pathname === redirect_1.Redirect.path) {
97925
+ res.writeHead(200, { "Content-Type": "text/html" });
97926
+ res.end(Buffer.from(static_1.redirectSuccessHtml(this.logoutUrl, this.systemId)));
97927
+ this.log.info("Got authCode");
97928
+ resolve({ authCode: reqUrl.searchParams.get("code") + "", redirect });
97929
+ if (timer) {
97930
+ clearTimeout(timer);
97931
+ }
97932
+ server.close();
97933
+ }
97878
97934
  });
97879
97935
  server.listen();
97880
97936
  redirect = new redirect_1.Redirect(server.address().port);
@@ -102769,7 +102825,9 @@ var require_dom = __commonJS({
102769
102825
  }
102770
102826
  function copy6(src, dest) {
102771
102827
  for (var p in src) {
102772
- dest[p] = src[p];
102828
+ if (Object.prototype.hasOwnProperty.call(src, p)) {
102829
+ dest[p] = src[p];
102830
+ }
102773
102831
  }
102774
102832
  }
102775
102833
  function _extends(Class, Super) {
@@ -103056,7 +103114,7 @@ var require_dom = __commonJS({
103056
103114
  var map = el._nsMap;
103057
103115
  if (map) {
103058
103116
  for (var n in map) {
103059
- if (map[n] == namespaceURI) {
103117
+ if (Object.prototype.hasOwnProperty.call(map, n) && map[n] === namespaceURI) {
103060
103118
  return n;
103061
103119
  }
103062
103120
  }
@@ -103070,7 +103128,7 @@ var require_dom = __commonJS({
103070
103128
  while (el) {
103071
103129
  var map = el._nsMap;
103072
103130
  if (map) {
103073
- if (prefix in map) {
103131
+ if (Object.prototype.hasOwnProperty.call(map, prefix)) {
103074
103132
  return map[prefix];
103075
103133
  }
103076
103134
  }
@@ -103756,10 +103814,12 @@ var require_dom = __commonJS({
103756
103814
  function cloneNode(doc, node, deep) {
103757
103815
  var node2 = new node.constructor();
103758
103816
  for (var n in node) {
103759
- var v = node[n];
103760
- if (typeof v != "object") {
103761
- if (v != node2[n]) {
103762
- node2[n] = v;
103817
+ if (Object.prototype.hasOwnProperty.call(node, n)) {
103818
+ var v = node[n];
103819
+ if (typeof v != "object") {
103820
+ if (v != node2[n]) {
103821
+ node2[n] = v;
103822
+ }
103763
103823
  }
103764
103824
  }
103765
103825
  }
@@ -104224,7 +104284,9 @@ var require_sax = __commonJS({
104224
104284
  domBuilder.endElement(config2.uri, config2.localName, tagName);
104225
104285
  if (localNSMap) {
104226
104286
  for (var prefix in localNSMap) {
104227
- domBuilder.endPrefixMapping(prefix);
104287
+ if (Object.prototype.hasOwnProperty.call(localNSMap, prefix)) {
104288
+ domBuilder.endPrefixMapping(prefix);
104289
+ }
104228
104290
  }
104229
104291
  }
104230
104292
  if (!endMatch) {
@@ -104509,7 +104571,9 @@ var require_sax = __commonJS({
104509
104571
  domBuilder.endElement(ns, localName, tagName);
104510
104572
  if (localNSMap) {
104511
104573
  for (prefix in localNSMap) {
104512
- domBuilder.endPrefixMapping(prefix);
104574
+ if (Object.prototype.hasOwnProperty.call(localNSMap, prefix)) {
104575
+ domBuilder.endPrefixMapping(prefix);
104576
+ }
104513
104577
  }
104514
104578
  }
104515
104579
  } else {
@@ -104547,7 +104611,9 @@ var require_sax = __commonJS({
104547
104611
  }
104548
104612
  function _copy(source, target) {
104549
104613
  for (var n in source) {
104550
- target[n] = source[n];
104614
+ if (Object.prototype.hasOwnProperty.call(source, n)) {
104615
+ target[n] = source[n];
104616
+ }
104551
104617
  }
104552
104618
  }
104553
104619
  function parseDCC(source, start, domBuilder, errorHandler) {
@@ -104914,22 +104980,18 @@ var require_transport3 = __commonJS({
104914
104980
  return mod && mod.__esModule ? mod : { "default": mod };
104915
104981
  };
104916
104982
  Object.defineProperty(exports2, "__esModule", { value: true });
104917
- exports2.getTransportNumberList = void 0;
104983
+ exports2.getTransportRequestList = void 0;
104918
104984
  var fast_xml_parser_1 = __importDefault(require_parser());
104919
104985
  var xpath = __importStar(require_xpath());
104920
104986
  var xmldom_1 = require_lib4();
104921
- function getTransportNumberList(xml, log6) {
104987
+ var LocalPackageText = ["LOCAL_PACKAGE", "LOCAL"];
104988
+ function getTransportRequestList(xml, log6) {
104989
+ var _a2;
104922
104990
  if (fast_xml_parser_1.default.validate(xml) !== true) {
104923
104991
  log6.warn(`Invalid XML: ${xml}`);
104924
104992
  return [];
104925
104993
  }
104926
104994
  const doc = new xmldom_1.DOMParser().parseFromString(xml);
104927
- return getTransportChecksResponse(doc, xml, log6);
104928
- }
104929
- exports2.getTransportNumberList = getTransportNumberList;
104930
- var LocalPackageText = ["LOCAL_PACKAGE", "LOCAL"];
104931
- function getTransportChecksResponse(doc, xml, log6) {
104932
- var _a2;
104933
104995
  const status = (_a2 = xpath.select1("//RESULT/text()", doc)) === null || _a2 === void 0 ? void 0 : _a2.toString();
104934
104996
  switch (status) {
104935
104997
  case "S":
@@ -104940,43 +105002,61 @@ var require_transport3 = __commonJS({
104940
105002
  return [];
104941
105003
  }
104942
105004
  }
105005
+ exports2.getTransportRequestList = getTransportRequestList;
104943
105006
  function getTransportList(doc) {
104944
105007
  var _a2, _b, _c;
104945
105008
  const recording = (_a2 = xpath.select1("//RECORDING/text()", doc)) === null || _a2 === void 0 ? void 0 : _a2.toString();
104946
105009
  const locked = (_b = xpath.select1("//LOCKS", doc)) === null || _b === void 0 ? void 0 : _b.textContent;
104947
105010
  const localPackage = (_c = xpath.select1("//DLVUNIT/text()", doc)) === null || _c === void 0 ? void 0 : _c.toString();
104948
105011
  if (recording && !locked) {
104949
- return getTransportableList(doc);
105012
+ return getTransportListForNewProject(doc);
104950
105013
  } else if (locked) {
104951
105014
  return getLockedTransport(doc);
104952
105015
  } else if (LocalPackageText.includes(localPackage)) {
104953
- return [""];
104954
- } else {
104955
105016
  return [];
105017
+ } else {
105018
+ throw new Error("Unable to parse ADT response");
104956
105019
  }
104957
105020
  }
104958
- function getTransportableList(doc) {
104959
- const transportNums = xpath.select("//REQ_HEADER/TRKORR/text()", doc);
105021
+ function getTransportListForNewProject(doc) {
105022
+ const transportReqs = xpath.select("//REQ_HEADER", doc);
104960
105023
  const list = [];
104961
- if (transportNums && transportNums.length > 0) {
104962
- for (const transportNumElement of transportNums) {
104963
- const transportNum = transportNumElement === null || transportNumElement === void 0 ? void 0 : transportNumElement.toString();
104964
- if (transportNum) {
104965
- list.push(transportNum);
105024
+ if (transportReqs && transportReqs.length > 0) {
105025
+ for (const transportReqEle of transportReqs) {
105026
+ const transportReq = convertTransportRequest(transportReqEle);
105027
+ if (transportReq) {
105028
+ list.push(transportReq);
104966
105029
  }
104967
105030
  }
104968
105031
  }
104969
105032
  return list;
104970
105033
  }
104971
105034
  function getLockedTransport(doc) {
104972
- var _a2;
104973
- const transportNum = (_a2 = xpath.select1("//LOCKS//REQ_HEADER/TRKORR/text()", doc)) === null || _a2 === void 0 ? void 0 : _a2.toString();
104974
- if (transportNum) {
104975
- return [transportNum];
105035
+ const transportReqEle = xpath.select1("//LOCKS//REQ_HEADER", doc);
105036
+ const transportReq = convertTransportRequest(transportReqEle);
105037
+ if (transportReq) {
105038
+ return [transportReq];
104976
105039
  } else {
104977
105040
  return [];
104978
105041
  }
104979
105042
  }
105043
+ function convertTransportRequest(transportReqEle) {
105044
+ var _a2, _b, _c, _d, _e;
105045
+ if (!transportReqEle) {
105046
+ return void 0;
105047
+ }
105048
+ const transportNumber = (_a2 = xpath.select1("TRKORR/text()", transportReqEle)) === null || _a2 === void 0 ? void 0 : _a2.toString();
105049
+ if (!transportNumber) {
105050
+ return void 0;
105051
+ }
105052
+ return {
105053
+ transportNumber,
105054
+ user: (_b = xpath.select1("AS4USER/text()", transportReqEle)) === null || _b === void 0 ? void 0 : _b.toString(),
105055
+ description: (_c = xpath.select1("AS4TEXT/text()", transportReqEle)) === null || _c === void 0 ? void 0 : _c.toString(),
105056
+ client: (_d = xpath.select1("CLIENT/text()", transportReqEle)) === null || _d === void 0 ? void 0 : _d.toString(),
105057
+ targetSystem: (_e = xpath.select1("TARSYSTEM/text()", transportReqEle)) === null || _e === void 0 ? void 0 : _e.toString()
105058
+ };
105059
+ }
104980
105060
  }
104981
105061
  });
104982
105062
 
@@ -105145,7 +105225,7 @@ var require_abap_service_provider = __commonJS({
105145
105225
  </asx:abap>
105146
105226
  `;
105147
105227
  const response = yield this.post(urlPath, data2, acceptHeaders);
105148
- return transport_1.getTransportNumberList(response.data, this.log);
105228
+ return transport_1.getTransportRequestList(response.data, this.log);
105149
105229
  });
105150
105230
  }
105151
105231
  };
@@ -105197,626 +105277,6 @@ var require_abap = __commonJS({
105197
105277
  }
105198
105278
  });
105199
105279
 
105200
- // ../../node_modules/lodash.clonedeep/index.js
105201
- var require_lodash3 = __commonJS({
105202
- "../../node_modules/lodash.clonedeep/index.js"(exports2, module2) {
105203
- var LARGE_ARRAY_SIZE = 200;
105204
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
105205
- var MAX_SAFE_INTEGER = 9007199254740991;
105206
- var argsTag = "[object Arguments]";
105207
- var arrayTag = "[object Array]";
105208
- var boolTag = "[object Boolean]";
105209
- var dateTag = "[object Date]";
105210
- var errorTag = "[object Error]";
105211
- var funcTag = "[object Function]";
105212
- var genTag = "[object GeneratorFunction]";
105213
- var mapTag = "[object Map]";
105214
- var numberTag = "[object Number]";
105215
- var objectTag = "[object Object]";
105216
- var promiseTag = "[object Promise]";
105217
- var regexpTag = "[object RegExp]";
105218
- var setTag = "[object Set]";
105219
- var stringTag = "[object String]";
105220
- var symbolTag = "[object Symbol]";
105221
- var weakMapTag = "[object WeakMap]";
105222
- var arrayBufferTag = "[object ArrayBuffer]";
105223
- var dataViewTag = "[object DataView]";
105224
- var float32Tag = "[object Float32Array]";
105225
- var float64Tag = "[object Float64Array]";
105226
- var int8Tag = "[object Int8Array]";
105227
- var int16Tag = "[object Int16Array]";
105228
- var int32Tag = "[object Int32Array]";
105229
- var uint8Tag = "[object Uint8Array]";
105230
- var uint8ClampedTag = "[object Uint8ClampedArray]";
105231
- var uint16Tag = "[object Uint16Array]";
105232
- var uint32Tag = "[object Uint32Array]";
105233
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
105234
- var reFlags = /\w*$/;
105235
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
105236
- var reIsUint = /^(?:0|[1-9]\d*)$/;
105237
- var cloneableTags = {};
105238
- cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
105239
- cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
105240
- var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
105241
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
105242
- var root = freeGlobal || freeSelf || Function("return this")();
105243
- var freeExports = typeof exports2 == "object" && exports2 && !exports2.nodeType && exports2;
105244
- var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2;
105245
- var moduleExports = freeModule && freeModule.exports === freeExports;
105246
- function addMapEntry(map, pair) {
105247
- map.set(pair[0], pair[1]);
105248
- return map;
105249
- }
105250
- function addSetEntry(set, value) {
105251
- set.add(value);
105252
- return set;
105253
- }
105254
- function arrayEach(array, iteratee) {
105255
- var index = -1, length = array ? array.length : 0;
105256
- while (++index < length) {
105257
- if (iteratee(array[index], index, array) === false) {
105258
- break;
105259
- }
105260
- }
105261
- return array;
105262
- }
105263
- function arrayPush(array, values) {
105264
- var index = -1, length = values.length, offset = array.length;
105265
- while (++index < length) {
105266
- array[offset + index] = values[index];
105267
- }
105268
- return array;
105269
- }
105270
- function arrayReduce(array, iteratee, accumulator, initAccum) {
105271
- var index = -1, length = array ? array.length : 0;
105272
- if (initAccum && length) {
105273
- accumulator = array[++index];
105274
- }
105275
- while (++index < length) {
105276
- accumulator = iteratee(accumulator, array[index], index, array);
105277
- }
105278
- return accumulator;
105279
- }
105280
- function baseTimes(n, iteratee) {
105281
- var index = -1, result2 = Array(n);
105282
- while (++index < n) {
105283
- result2[index] = iteratee(index);
105284
- }
105285
- return result2;
105286
- }
105287
- function getValue(object, key) {
105288
- return object == null ? void 0 : object[key];
105289
- }
105290
- function isHostObject(value) {
105291
- var result2 = false;
105292
- if (value != null && typeof value.toString != "function") {
105293
- try {
105294
- result2 = !!(value + "");
105295
- } catch (e) {
105296
- }
105297
- }
105298
- return result2;
105299
- }
105300
- function mapToArray(map) {
105301
- var index = -1, result2 = Array(map.size);
105302
- map.forEach(function(value, key) {
105303
- result2[++index] = [key, value];
105304
- });
105305
- return result2;
105306
- }
105307
- function overArg(func, transform) {
105308
- return function(arg) {
105309
- return func(transform(arg));
105310
- };
105311
- }
105312
- function setToArray(set) {
105313
- var index = -1, result2 = Array(set.size);
105314
- set.forEach(function(value) {
105315
- result2[++index] = value;
105316
- });
105317
- return result2;
105318
- }
105319
- var arrayProto = Array.prototype;
105320
- var funcProto = Function.prototype;
105321
- var objectProto = Object.prototype;
105322
- var coreJsData = root["__core-js_shared__"];
105323
- var maskSrcKey = function() {
105324
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
105325
- return uid ? "Symbol(src)_1." + uid : "";
105326
- }();
105327
- var funcToString = funcProto.toString;
105328
- var hasOwnProperty = objectProto.hasOwnProperty;
105329
- var objectToString = objectProto.toString;
105330
- var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
105331
- var Buffer2 = moduleExports ? root.Buffer : void 0;
105332
- var Symbol2 = root.Symbol;
105333
- var Uint8Array2 = root.Uint8Array;
105334
- var getPrototype = overArg(Object.getPrototypeOf, Object);
105335
- var objectCreate = Object.create;
105336
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
105337
- var splice = arrayProto.splice;
105338
- var nativeGetSymbols = Object.getOwnPropertySymbols;
105339
- var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
105340
- var nativeKeys = overArg(Object.keys, Object);
105341
- var DataView = getNative(root, "DataView");
105342
- var Map2 = getNative(root, "Map");
105343
- var Promise2 = getNative(root, "Promise");
105344
- var Set2 = getNative(root, "Set");
105345
- var WeakMap2 = getNative(root, "WeakMap");
105346
- var nativeCreate = getNative(Object, "create");
105347
- var dataViewCtorString = toSource(DataView);
105348
- var mapCtorString = toSource(Map2);
105349
- var promiseCtorString = toSource(Promise2);
105350
- var setCtorString = toSource(Set2);
105351
- var weakMapCtorString = toSource(WeakMap2);
105352
- var symbolProto = Symbol2 ? Symbol2.prototype : void 0;
105353
- var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
105354
- function Hash(entries) {
105355
- var index = -1, length = entries ? entries.length : 0;
105356
- this.clear();
105357
- while (++index < length) {
105358
- var entry = entries[index];
105359
- this.set(entry[0], entry[1]);
105360
- }
105361
- }
105362
- function hashClear() {
105363
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
105364
- }
105365
- function hashDelete(key) {
105366
- return this.has(key) && delete this.__data__[key];
105367
- }
105368
- function hashGet(key) {
105369
- var data2 = this.__data__;
105370
- if (nativeCreate) {
105371
- var result2 = data2[key];
105372
- return result2 === HASH_UNDEFINED ? void 0 : result2;
105373
- }
105374
- return hasOwnProperty.call(data2, key) ? data2[key] : void 0;
105375
- }
105376
- function hashHas(key) {
105377
- var data2 = this.__data__;
105378
- return nativeCreate ? data2[key] !== void 0 : hasOwnProperty.call(data2, key);
105379
- }
105380
- function hashSet(key, value) {
105381
- var data2 = this.__data__;
105382
- data2[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
105383
- return this;
105384
- }
105385
- Hash.prototype.clear = hashClear;
105386
- Hash.prototype["delete"] = hashDelete;
105387
- Hash.prototype.get = hashGet;
105388
- Hash.prototype.has = hashHas;
105389
- Hash.prototype.set = hashSet;
105390
- function ListCache(entries) {
105391
- var index = -1, length = entries ? entries.length : 0;
105392
- this.clear();
105393
- while (++index < length) {
105394
- var entry = entries[index];
105395
- this.set(entry[0], entry[1]);
105396
- }
105397
- }
105398
- function listCacheClear() {
105399
- this.__data__ = [];
105400
- }
105401
- function listCacheDelete(key) {
105402
- var data2 = this.__data__, index = assocIndexOf(data2, key);
105403
- if (index < 0) {
105404
- return false;
105405
- }
105406
- var lastIndex = data2.length - 1;
105407
- if (index == lastIndex) {
105408
- data2.pop();
105409
- } else {
105410
- splice.call(data2, index, 1);
105411
- }
105412
- return true;
105413
- }
105414
- function listCacheGet(key) {
105415
- var data2 = this.__data__, index = assocIndexOf(data2, key);
105416
- return index < 0 ? void 0 : data2[index][1];
105417
- }
105418
- function listCacheHas(key) {
105419
- return assocIndexOf(this.__data__, key) > -1;
105420
- }
105421
- function listCacheSet(key, value) {
105422
- var data2 = this.__data__, index = assocIndexOf(data2, key);
105423
- if (index < 0) {
105424
- data2.push([key, value]);
105425
- } else {
105426
- data2[index][1] = value;
105427
- }
105428
- return this;
105429
- }
105430
- ListCache.prototype.clear = listCacheClear;
105431
- ListCache.prototype["delete"] = listCacheDelete;
105432
- ListCache.prototype.get = listCacheGet;
105433
- ListCache.prototype.has = listCacheHas;
105434
- ListCache.prototype.set = listCacheSet;
105435
- function MapCache(entries) {
105436
- var index = -1, length = entries ? entries.length : 0;
105437
- this.clear();
105438
- while (++index < length) {
105439
- var entry = entries[index];
105440
- this.set(entry[0], entry[1]);
105441
- }
105442
- }
105443
- function mapCacheClear() {
105444
- this.__data__ = {
105445
- "hash": new Hash(),
105446
- "map": new (Map2 || ListCache)(),
105447
- "string": new Hash()
105448
- };
105449
- }
105450
- function mapCacheDelete(key) {
105451
- return getMapData(this, key)["delete"](key);
105452
- }
105453
- function mapCacheGet(key) {
105454
- return getMapData(this, key).get(key);
105455
- }
105456
- function mapCacheHas(key) {
105457
- return getMapData(this, key).has(key);
105458
- }
105459
- function mapCacheSet(key, value) {
105460
- getMapData(this, key).set(key, value);
105461
- return this;
105462
- }
105463
- MapCache.prototype.clear = mapCacheClear;
105464
- MapCache.prototype["delete"] = mapCacheDelete;
105465
- MapCache.prototype.get = mapCacheGet;
105466
- MapCache.prototype.has = mapCacheHas;
105467
- MapCache.prototype.set = mapCacheSet;
105468
- function Stack(entries) {
105469
- this.__data__ = new ListCache(entries);
105470
- }
105471
- function stackClear() {
105472
- this.__data__ = new ListCache();
105473
- }
105474
- function stackDelete(key) {
105475
- return this.__data__["delete"](key);
105476
- }
105477
- function stackGet(key) {
105478
- return this.__data__.get(key);
105479
- }
105480
- function stackHas(key) {
105481
- return this.__data__.has(key);
105482
- }
105483
- function stackSet(key, value) {
105484
- var cache = this.__data__;
105485
- if (cache instanceof ListCache) {
105486
- var pairs = cache.__data__;
105487
- if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
105488
- pairs.push([key, value]);
105489
- return this;
105490
- }
105491
- cache = this.__data__ = new MapCache(pairs);
105492
- }
105493
- cache.set(key, value);
105494
- return this;
105495
- }
105496
- Stack.prototype.clear = stackClear;
105497
- Stack.prototype["delete"] = stackDelete;
105498
- Stack.prototype.get = stackGet;
105499
- Stack.prototype.has = stackHas;
105500
- Stack.prototype.set = stackSet;
105501
- function arrayLikeKeys(value, inherited) {
105502
- var result2 = isArray(value) || isArguments(value) ? baseTimes(value.length, String) : [];
105503
- var length = result2.length, skipIndexes = !!length;
105504
- for (var key in value) {
105505
- if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isIndex(key, length)))) {
105506
- result2.push(key);
105507
- }
105508
- }
105509
- return result2;
105510
- }
105511
- function assignValue(object, key, value) {
105512
- var objValue = object[key];
105513
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
105514
- object[key] = value;
105515
- }
105516
- }
105517
- function assocIndexOf(array, key) {
105518
- var length = array.length;
105519
- while (length--) {
105520
- if (eq(array[length][0], key)) {
105521
- return length;
105522
- }
105523
- }
105524
- return -1;
105525
- }
105526
- function baseAssign(object, source) {
105527
- return object && copyObject(source, keys(source), object);
105528
- }
105529
- function baseClone(value, isDeep, isFull, customizer, key, object, stack) {
105530
- var result2;
105531
- if (customizer) {
105532
- result2 = object ? customizer(value, key, object, stack) : customizer(value);
105533
- }
105534
- if (result2 !== void 0) {
105535
- return result2;
105536
- }
105537
- if (!isObject(value)) {
105538
- return value;
105539
- }
105540
- var isArr = isArray(value);
105541
- if (isArr) {
105542
- result2 = initCloneArray(value);
105543
- if (!isDeep) {
105544
- return copyArray(value, result2);
105545
- }
105546
- } else {
105547
- var tag = getTag(value), isFunc = tag == funcTag || tag == genTag;
105548
- if (isBuffer(value)) {
105549
- return cloneBuffer(value, isDeep);
105550
- }
105551
- if (tag == objectTag || tag == argsTag || isFunc && !object) {
105552
- if (isHostObject(value)) {
105553
- return object ? value : {};
105554
- }
105555
- result2 = initCloneObject(isFunc ? {} : value);
105556
- if (!isDeep) {
105557
- return copySymbols(value, baseAssign(result2, value));
105558
- }
105559
- } else {
105560
- if (!cloneableTags[tag]) {
105561
- return object ? value : {};
105562
- }
105563
- result2 = initCloneByTag(value, tag, baseClone, isDeep);
105564
- }
105565
- }
105566
- stack || (stack = new Stack());
105567
- var stacked = stack.get(value);
105568
- if (stacked) {
105569
- return stacked;
105570
- }
105571
- stack.set(value, result2);
105572
- if (!isArr) {
105573
- var props = isFull ? getAllKeys(value) : keys(value);
105574
- }
105575
- arrayEach(props || value, function(subValue, key2) {
105576
- if (props) {
105577
- key2 = subValue;
105578
- subValue = value[key2];
105579
- }
105580
- assignValue(result2, key2, baseClone(subValue, isDeep, isFull, customizer, key2, value, stack));
105581
- });
105582
- return result2;
105583
- }
105584
- function baseCreate(proto) {
105585
- return isObject(proto) ? objectCreate(proto) : {};
105586
- }
105587
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
105588
- var result2 = keysFunc(object);
105589
- return isArray(object) ? result2 : arrayPush(result2, symbolsFunc(object));
105590
- }
105591
- function baseGetTag(value) {
105592
- return objectToString.call(value);
105593
- }
105594
- function baseIsNative(value) {
105595
- if (!isObject(value) || isMasked(value)) {
105596
- return false;
105597
- }
105598
- var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
105599
- return pattern.test(toSource(value));
105600
- }
105601
- function baseKeys(object) {
105602
- if (!isPrototype(object)) {
105603
- return nativeKeys(object);
105604
- }
105605
- var result2 = [];
105606
- for (var key in Object(object)) {
105607
- if (hasOwnProperty.call(object, key) && key != "constructor") {
105608
- result2.push(key);
105609
- }
105610
- }
105611
- return result2;
105612
- }
105613
- function cloneBuffer(buffer, isDeep) {
105614
- if (isDeep) {
105615
- return buffer.slice();
105616
- }
105617
- var result2 = new buffer.constructor(buffer.length);
105618
- buffer.copy(result2);
105619
- return result2;
105620
- }
105621
- function cloneArrayBuffer(arrayBuffer) {
105622
- var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
105623
- new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer));
105624
- return result2;
105625
- }
105626
- function cloneDataView(dataView, isDeep) {
105627
- var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
105628
- return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
105629
- }
105630
- function cloneMap(map, isDeep, cloneFunc) {
105631
- var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map);
105632
- return arrayReduce(array, addMapEntry, new map.constructor());
105633
- }
105634
- function cloneRegExp(regexp) {
105635
- var result2 = new regexp.constructor(regexp.source, reFlags.exec(regexp));
105636
- result2.lastIndex = regexp.lastIndex;
105637
- return result2;
105638
- }
105639
- function cloneSet(set, isDeep, cloneFunc) {
105640
- var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set);
105641
- return arrayReduce(array, addSetEntry, new set.constructor());
105642
- }
105643
- function cloneSymbol(symbol) {
105644
- return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
105645
- }
105646
- function cloneTypedArray(typedArray, isDeep) {
105647
- var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
105648
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
105649
- }
105650
- function copyArray(source, array) {
105651
- var index = -1, length = source.length;
105652
- array || (array = Array(length));
105653
- while (++index < length) {
105654
- array[index] = source[index];
105655
- }
105656
- return array;
105657
- }
105658
- function copyObject(source, props, object, customizer) {
105659
- object || (object = {});
105660
- var index = -1, length = props.length;
105661
- while (++index < length) {
105662
- var key = props[index];
105663
- var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
105664
- assignValue(object, key, newValue === void 0 ? source[key] : newValue);
105665
- }
105666
- return object;
105667
- }
105668
- function copySymbols(source, object) {
105669
- return copyObject(source, getSymbols(source), object);
105670
- }
105671
- function getAllKeys(object) {
105672
- return baseGetAllKeys(object, keys, getSymbols);
105673
- }
105674
- function getMapData(map, key) {
105675
- var data2 = map.__data__;
105676
- return isKeyable(key) ? data2[typeof key == "string" ? "string" : "hash"] : data2.map;
105677
- }
105678
- function getNative(object, key) {
105679
- var value = getValue(object, key);
105680
- return baseIsNative(value) ? value : void 0;
105681
- }
105682
- var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray;
105683
- var getTag = baseGetTag;
105684
- if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) {
105685
- getTag = function(value) {
105686
- var result2 = objectToString.call(value), Ctor = result2 == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : void 0;
105687
- if (ctorString) {
105688
- switch (ctorString) {
105689
- case dataViewCtorString:
105690
- return dataViewTag;
105691
- case mapCtorString:
105692
- return mapTag;
105693
- case promiseCtorString:
105694
- return promiseTag;
105695
- case setCtorString:
105696
- return setTag;
105697
- case weakMapCtorString:
105698
- return weakMapTag;
105699
- }
105700
- }
105701
- return result2;
105702
- };
105703
- }
105704
- function initCloneArray(array) {
105705
- var length = array.length, result2 = array.constructor(length);
105706
- if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) {
105707
- result2.index = array.index;
105708
- result2.input = array.input;
105709
- }
105710
- return result2;
105711
- }
105712
- function initCloneObject(object) {
105713
- return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
105714
- }
105715
- function initCloneByTag(object, tag, cloneFunc, isDeep) {
105716
- var Ctor = object.constructor;
105717
- switch (tag) {
105718
- case arrayBufferTag:
105719
- return cloneArrayBuffer(object);
105720
- case boolTag:
105721
- case dateTag:
105722
- return new Ctor(+object);
105723
- case dataViewTag:
105724
- return cloneDataView(object, isDeep);
105725
- case float32Tag:
105726
- case float64Tag:
105727
- case int8Tag:
105728
- case int16Tag:
105729
- case int32Tag:
105730
- case uint8Tag:
105731
- case uint8ClampedTag:
105732
- case uint16Tag:
105733
- case uint32Tag:
105734
- return cloneTypedArray(object, isDeep);
105735
- case mapTag:
105736
- return cloneMap(object, isDeep, cloneFunc);
105737
- case numberTag:
105738
- case stringTag:
105739
- return new Ctor(object);
105740
- case regexpTag:
105741
- return cloneRegExp(object);
105742
- case setTag:
105743
- return cloneSet(object, isDeep, cloneFunc);
105744
- case symbolTag:
105745
- return cloneSymbol(object);
105746
- }
105747
- }
105748
- function isIndex(value, length) {
105749
- length = length == null ? MAX_SAFE_INTEGER : length;
105750
- return !!length && (typeof value == "number" || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
105751
- }
105752
- function isKeyable(value) {
105753
- var type = typeof value;
105754
- return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
105755
- }
105756
- function isMasked(func) {
105757
- return !!maskSrcKey && maskSrcKey in func;
105758
- }
105759
- function isPrototype(value) {
105760
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
105761
- return value === proto;
105762
- }
105763
- function toSource(func) {
105764
- if (func != null) {
105765
- try {
105766
- return funcToString.call(func);
105767
- } catch (e) {
105768
- }
105769
- try {
105770
- return func + "";
105771
- } catch (e) {
105772
- }
105773
- }
105774
- return "";
105775
- }
105776
- function cloneDeep(value) {
105777
- return baseClone(value, true, true);
105778
- }
105779
- function eq(value, other) {
105780
- return value === other || value !== value && other !== other;
105781
- }
105782
- function isArguments(value) {
105783
- return isArrayLikeObject(value) && hasOwnProperty.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString.call(value) == argsTag);
105784
- }
105785
- var isArray = Array.isArray;
105786
- function isArrayLike(value) {
105787
- return value != null && isLength(value.length) && !isFunction(value);
105788
- }
105789
- function isArrayLikeObject(value) {
105790
- return isObjectLike(value) && isArrayLike(value);
105791
- }
105792
- var isBuffer = nativeIsBuffer || stubFalse;
105793
- function isFunction(value) {
105794
- var tag = isObject(value) ? objectToString.call(value) : "";
105795
- return tag == funcTag || tag == genTag;
105796
- }
105797
- function isLength(value) {
105798
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
105799
- }
105800
- function isObject(value) {
105801
- var type = typeof value;
105802
- return !!value && (type == "object" || type == "function");
105803
- }
105804
- function isObjectLike(value) {
105805
- return !!value && typeof value == "object";
105806
- }
105807
- function keys(object) {
105808
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
105809
- }
105810
- function stubArray() {
105811
- return [];
105812
- }
105813
- function stubFalse() {
105814
- return false;
105815
- }
105816
- module2.exports = cloneDeep;
105817
- }
105818
- });
105819
-
105820
105280
  // ../../node_modules/@sap-ux/btp-utils/dist/app-studio.env.js
105821
105281
  var require_app_studio_env = __commonJS({
105822
105282
  "../../node_modules/@sap-ux/btp-utils/dist/app-studio.env.js"(exports2) {
@@ -106052,7 +105512,7 @@ var require_factory = __commonJS({
106052
105512
  };
106053
105513
  Object.defineProperty(exports2, "__esModule", { value: true });
106054
105514
  exports2.createServiceForUrl = exports2.createForDestination = exports2.createForAbapOnCloud = exports2.AbapCloudEnvironment = exports2.createForAbap = exports2.create = void 0;
106055
- var lodash_clonedeep_1 = __importDefault(require_lodash3());
105515
+ var cloneDeep_1 = __importDefault(require_cloneDeep());
106056
105516
  var btp_utils_1 = require_dist16();
106057
105517
  var https_1 = require("https");
106058
105518
  var auth_1 = require_auth();
@@ -106061,7 +105521,7 @@ var require_factory = __commonJS({
106061
105521
  var util_1 = require("util");
106062
105522
  function createInstance(ProviderType, config2) {
106063
105523
  var _a2, _b;
106064
- const providerConfig = lodash_clonedeep_1.default(config2);
105524
+ const providerConfig = cloneDeep_1.default(config2);
106065
105525
  providerConfig.httpsAgent = new https_1.Agent({
106066
105526
  rejectUnauthorized: !providerConfig.ignoreCertErrors
106067
105527
  });
@@ -106070,7 +105530,7 @@ var require_factory = __commonJS({
106070
105530
  const instance = new ProviderType(providerConfig);
106071
105531
  instance.defaults.headers = (_a2 = instance.defaults.headers) !== null && _a2 !== void 0 ? _a2 : {
106072
105532
  common: {},
106073
- delete: {},
105533
+ "delete": {},
106074
105534
  put: {},
106075
105535
  get: {},
106076
105536
  post: {},
@@ -106136,7 +105596,7 @@ var require_factory = __commonJS({
106136
105596
  function createForDestination(options2, destination, destinationServiceInstance) {
106137
105597
  var _a2;
106138
105598
  const { cookies } = options2, config2 = __rest(options2, ["cookies"]);
106139
- const providerConfig = Object.assign(Object.assign({}, config2), { baseURL: btp_utils_1.getDestinationUrlForAppStudio(destination.Name, new URL(destination.Host).pathname), cookies });
105599
+ const providerConfig = Object.assign(Object.assign({}, config2), { baseURL: btp_utils_1.getDestinationUrlForAppStudio(destination.Name, destination.Host ? new URL(destination.Host).pathname : void 0), cookies });
106140
105600
  providerConfig.params = (_a2 = providerConfig.params) !== null && _a2 !== void 0 ? _a2 : {};
106141
105601
  providerConfig.params.saml2 = "disabled";
106142
105602
  let provider;
@@ -106339,12 +105799,13 @@ var require_utils17 = __commonJS({
106339
105799
  exports2.getFioriToolsDirectory = exports2.FioriToolsSettings = exports2.errorString = exports2.errorInstance = exports2.pick = void 0;
106340
105800
  var os_1 = require("os");
106341
105801
  var path_1 = __importDefault(require("path"));
106342
- exports2.pick = (target, ...props) => {
105802
+ var pick = (target, ...props) => {
106343
105803
  return target && (props === null || props === void 0 ? void 0 : props.length) > 0 && props.reduce((o, k) => {
106344
105804
  o[k] = target[k];
106345
105805
  return o;
106346
105806
  }, {}) || void 0;
106347
105807
  };
105808
+ exports2.pick = pick;
106348
105809
  function errorInstance(e) {
106349
105810
  if (e instanceof Error) {
106350
105811
  return e;
@@ -106361,9 +105822,10 @@ var require_utils17 = __commonJS({
106361
105822
  (function(FioriToolsSettings2) {
106362
105823
  FioriToolsSettings2["dir"] = ".fioritools";
106363
105824
  })(FioriToolsSettings = exports2.FioriToolsSettings || (exports2.FioriToolsSettings = {}));
106364
- exports2.getFioriToolsDirectory = () => {
105825
+ var getFioriToolsDirectory = () => {
106365
105826
  return path_1.default.join(os_1.homedir(), FioriToolsSettings.dir);
106366
105827
  };
105828
+ exports2.getFioriToolsDirectory = getFioriToolsDirectory;
106367
105829
  __exportStar(require_app_studio3(), exports2);
106368
105830
  }
106369
105831
  });
@@ -106437,7 +105899,7 @@ var require_filesystem3 = __commonJS({
106437
105899
  var pluralize_1 = require_pluralize();
106438
105900
  var utils_1 = require_utils17();
106439
105901
  var os_1 = __importDefault(require("os"));
106440
- exports2.basedir = ({ baseDirectory } = {}) => {
105902
+ var basedir = ({ baseDirectory } = {}) => {
106441
105903
  if (!baseDirectory) {
106442
105904
  return utils_1.getFioriToolsDirectory();
106443
105905
  } else if (path_1.default.isAbsolute(baseDirectory)) {
@@ -106446,6 +105908,7 @@ var require_filesystem3 = __commonJS({
106446
105908
  return path_1.default.join(os_1.default.homedir(), baseDirectory);
106447
105909
  }
106448
105910
  };
105911
+ exports2.basedir = basedir;
106449
105912
  var FilesystemStore = class {
106450
105913
  constructor(logger, options2 = {}) {
106451
105914
  this.logger = logger;
@@ -106854,7 +106317,7 @@ var require_secure_store3 = __commonJS({
106854
106317
  return void 0;
106855
106318
  }
106856
106319
  }
106857
- exports2.getSecureStore = (log6) => {
106320
+ var getSecureStore = (log6) => {
106858
106321
  if (utils_1.isAppStudio()) {
106859
106322
  return new dummy_store_1.DummyStore(log6);
106860
106323
  } else {
@@ -106862,6 +106325,7 @@ var require_secure_store3 = __commonJS({
106862
106325
  return keytar ? new keytar_store_1.KeytarStore(log6, keytar) : new dummy_store_1.DummyStore(log6);
106863
106326
  }
106864
106327
  };
106328
+ exports2.getSecureStore = getSecureStore;
106865
106329
  __exportStar(require_types11(), exports2);
106866
106330
  }
106867
106331
  });
@@ -107175,7 +106639,7 @@ var require_backend_system8 = __commonJS({
107175
106639
  var hybrid_1 = require_hybrid3();
107176
106640
  var backend_system_1 = require_backend_system7();
107177
106641
  var constants_1 = require_constants12();
107178
- exports2.SystemDataProvider = class {
106642
+ var SystemDataProvider = class {
107179
106643
  constructor(logger, options2 = {}) {
107180
106644
  this.entityName = constants_1.Entities.BackendSystem;
107181
106645
  this.logger = logger;
@@ -107224,6 +106688,7 @@ var require_backend_system8 = __commonJS({
107224
106688
  });
107225
106689
  }
107226
106690
  };
106691
+ exports2.SystemDataProvider = SystemDataProvider;
107227
106692
  }
107228
106693
  });
107229
106694
 
@@ -107375,7 +106840,7 @@ var require_telemetry_setting5 = __commonJS({
107375
106840
  var filesystem_1 = require_filesystem3();
107376
106841
  var telemetry_setting_1 = require_telemetry_setting4();
107377
106842
  var constants_1 = require_constants12();
107378
- exports2.TelemetryDataProvider = class {
106843
+ var TelemetryDataProvider = class {
107379
106844
  constructor(logger) {
107380
106845
  this.entityName = constants_1.Entities.TelemetrySetting;
107381
106846
  this.logger = logger;
@@ -107401,6 +106866,7 @@ var require_telemetry_setting5 = __commonJS({
107401
106866
  return this.dataAccessor.getAll({ entityName: this.entityName });
107402
106867
  }
107403
106868
  };
106869
+ exports2.TelemetryDataProvider = TelemetryDataProvider;
107404
106870
  }
107405
106871
  });
107406
106872
 
@@ -107527,7 +106993,7 @@ var require_api_hub6 = __commonJS({
107527
106993
  var hybrid_1 = require_hybrid3();
107528
106994
  var constants_1 = require_constants12();
107529
106995
  var api_hub_1 = require_api_hub5();
107530
- exports2.ApiHubSettingsProvider = class {
106996
+ var ApiHubSettingsProvider = class {
107531
106997
  constructor(logger, options2 = {}) {
107532
106998
  this.entityName = constants_1.Entities.ApiHub;
107533
106999
  this.logger = logger;
@@ -107553,6 +107019,7 @@ var require_api_hub6 = __commonJS({
107553
107019
  return this.dataAccessor.getAll({ entityName: this.entityName });
107554
107020
  }
107555
107021
  };
107022
+ exports2.ApiHubSettingsProvider = ApiHubSettingsProvider;
107556
107023
  }
107557
107024
  });
107558
107025
 
@@ -107748,7 +107215,8 @@ var require_defaults3 = __commonJS({
107748
107215
  Object.defineProperty(exports2, "__esModule", { value: true });
107749
107216
  exports2.getDefaultLogger = void 0;
107750
107217
  var logger_1 = require_dist13();
107751
- exports2.getDefaultLogger = () => new logger_1.ToolsLogger({ transports: [new logger_1.ConsoleTransport()] });
107218
+ var getDefaultLogger = () => new logger_1.ToolsLogger({ transports: [new logger_1.ConsoleTransport()] });
107219
+ exports2.getDefaultLogger = getDefaultLogger;
107752
107220
  }
107753
107221
  });
107754
107222
 
@@ -107884,7 +107352,7 @@ var require_config5 = __commonJS({
107884
107352
  return proxyFromArgs || proxyFromConfig || process.env.FIORI_TOOLS_PROXY || process.env.http_proxy || process.env.HTTP_PROXY || process.env.https_proxy || process.env.HTTPS_PROXY || process.env.npm_config_proxy || process.env.npm_config_https_proxy;
107885
107353
  }
107886
107354
  exports2.getCorporateProxyServer = getCorporateProxyServer2;
107887
- exports2.isHostExcludedFromProxy = (url) => {
107355
+ var isHostExcludedFromProxy2 = (url) => {
107888
107356
  const noProxyConfig = process.env.no_proxy || process.env.npm_config_noproxy;
107889
107357
  if (noProxyConfig === "*") {
107890
107358
  return true;
@@ -107894,6 +107362,7 @@ var require_config5 = __commonJS({
107894
107362
  return !!noProxyList.find((entry) => entry.startsWith(".") ? host.endsWith(entry) : host.endsWith(`.${entry}`));
107895
107363
  }
107896
107364
  };
107365
+ exports2.isHostExcludedFromProxy = isHostExcludedFromProxy2;
107897
107366
  }
107898
107367
  });
107899
107368
 
@@ -113432,7 +112901,8 @@ var require_proxy2 = __commonJS({
113432
112901
  var bsp_1 = require_bsp();
113433
112902
  exports2.ProxyEventHandlers = {
113434
112903
  onProxyReq(proxyReq, _req, _res, _options) {
113435
- if (proxyReq.path.indexOf("Fiorilaunchpad.html") !== -1 && !proxyReq.headersSent) {
112904
+ var _a2;
112905
+ if (((_a2 = proxyReq.path) === null || _a2 === void 0 ? void 0 : _a2.includes("Fiorilaunchpad.html")) && !proxyReq.headersSent) {
113436
112906
  proxyReq.setHeader("accept-encoding", "br");
113437
112907
  }
113438
112908
  },
@@ -113605,15 +113075,20 @@ var require_proxy2 = __commonJS({
113605
113075
  }
113606
113076
  } else {
113607
113077
  const localBackend = backend;
113608
- const systemStore = yield store_1.getService({ logger, entityName: "system" });
113609
- const system = yield systemStore.read(new store_1.BackendSystemKey({ url: localBackend.url, client: localBackend.client }));
113610
- if (system) {
113611
- yield enhanceConfigForSystem(proxyOptions, system, backend.scp, (refreshToken) => {
113612
- if (refreshToken) {
113613
- logger.info("Updating refresh token for: " + localBackend.url);
113614
- systemStore.write(Object.assign(Object.assign({}, system), { refreshToken }));
113615
- }
113616
- });
113078
+ try {
113079
+ const systemStore = yield store_1.getService({ logger, entityName: "system" });
113080
+ const system = yield systemStore.read(new store_1.BackendSystemKey({ url: localBackend.url, client: localBackend.client }));
113081
+ if (system) {
113082
+ yield enhanceConfigForSystem(proxyOptions, system, backend.scp, (refreshToken) => {
113083
+ if (refreshToken) {
113084
+ logger.info("Updating refresh token for: " + localBackend.url);
113085
+ systemStore.write(Object.assign(Object.assign({}, system), { refreshToken }));
113086
+ }
113087
+ });
113088
+ }
113089
+ } catch (error6) {
113090
+ logger.warn("Accessing the credentials store failed.");
113091
+ logger.debug(error6);
113617
113092
  }
113618
113093
  }
113619
113094
  if (!proxyOptions.auth && process.env.FIORI_TOOLS_USER && process.env.FIORI_TOOLS_PASSWORD) {