@sap/ux-ui5-tooling 1.15.2 → 1.15.4

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.
@@ -13961,7 +13961,8 @@ var require_i18n = __commonJS({
13961
13961
  return mod && mod.__esModule ? mod : { "default": mod };
13962
13962
  };
13963
13963
  Object.defineProperty(exports2, "__esModule", { value: true });
13964
- exports2.text = exports2.initI18n = void 0;
13964
+ exports2.initI18n = initI18n2;
13965
+ exports2.text = text;
13965
13966
  var i18next_1 = __importDefault((init_i18next(), __toCommonJS(i18next_exports)));
13966
13967
  var i18next_fs_backend_1 = __importDefault(require_cjs());
13967
13968
  var path_1 = __importDefault(require("path"));
@@ -13979,11 +13980,9 @@ var require_i18n = __commonJS({
13979
13980
  }
13980
13981
  });
13981
13982
  }
13982
- exports2.initI18n = initI18n2;
13983
13983
  function text(key, options2) {
13984
13984
  return i18nInstance.t(key, options2);
13985
13985
  }
13986
- exports2.text = text;
13987
13986
  }
13988
13987
  });
13989
13988
 
@@ -14343,7 +14342,8 @@ var require_app_studio = __commonJS({
14343
14342
  "../../node_modules/@sap-ux/store/dist/utils/app-studio.js"(exports2) {
14344
14343
  "use strict";
14345
14344
  Object.defineProperty(exports2, "__esModule", { value: true });
14346
- exports2.isAppStudio = exports2.ENV = void 0;
14345
+ exports2.ENV = void 0;
14346
+ exports2.isAppStudio = isAppStudio2;
14347
14347
  var ENV;
14348
14348
  (function(ENV2) {
14349
14349
  ENV2["PROXY_URL"] = "HTTP_PROXY";
@@ -14352,7 +14352,6 @@ var require_app_studio = __commonJS({
14352
14352
  function isAppStudio2() {
14353
14353
  return !!process.env[ENV.H2O_URL];
14354
14354
  }
14355
- exports2.isAppStudio = isAppStudio2;
14356
14355
  }
14357
14356
  });
14358
14357
 
@@ -14380,7 +14379,9 @@ var require_utils2 = __commonJS({
14380
14379
  return mod && mod.__esModule ? mod : { "default": mod };
14381
14380
  };
14382
14381
  Object.defineProperty(exports2, "__esModule", { value: true });
14383
- exports2.getFioriToolsDirectory = exports2.FioriToolsSettings = exports2.errorString = exports2.errorInstance = exports2.pick = void 0;
14382
+ exports2.getFioriToolsDirectory = exports2.FioriToolsSettings = exports2.pick = void 0;
14383
+ exports2.errorInstance = errorInstance;
14384
+ exports2.errorString = errorString;
14384
14385
  var os_1 = require("os");
14385
14386
  var path_1 = __importDefault(require("path"));
14386
14387
  var pick = (target, ...props) => {
@@ -14397,11 +14398,9 @@ var require_utils2 = __commonJS({
14397
14398
  return new Error(String(e));
14398
14399
  }
14399
14400
  }
14400
- exports2.errorInstance = errorInstance;
14401
14401
  function errorString(e) {
14402
14402
  return e instanceof Error ? e.message : String(e);
14403
14403
  }
14404
- exports2.errorString = errorString;
14405
14404
  var FioriToolsSettings;
14406
14405
  (function(FioriToolsSettings2) {
14407
14406
  FioriToolsSettings2["dir"] = ".fioritools";
@@ -14449,7 +14448,9 @@ var require_filesystem = __commonJS({
14449
14448
  return mod && mod.__esModule ? mod : { "default": mod };
14450
14449
  };
14451
14450
  Object.defineProperty(exports2, "__esModule", { value: true });
14452
- exports2.getFilesystemStore = exports2.getFilesystemWatcherFor = exports2.basedir = void 0;
14451
+ exports2.basedir = void 0;
14452
+ exports2.getFilesystemWatcherFor = getFilesystemWatcherFor;
14453
+ exports2.getFilesystemStore = getFilesystemStore;
14453
14454
  var path_1 = __importDefault(require("path"));
14454
14455
  var fs_1 = __importStar(require("fs"));
14455
14456
  var pluralize_1 = require_pluralize();
@@ -14630,11 +14631,9 @@ var require_filesystem = __commonJS({
14630
14631
  return void 0;
14631
14632
  }
14632
14633
  }
14633
- exports2.getFilesystemWatcherFor = getFilesystemWatcherFor;
14634
14634
  function getFilesystemStore(logger3, options2) {
14635
14635
  return new FilesystemStore(logger3, options2);
14636
14636
  }
14637
- exports2.getFilesystemStore = getFilesystemStore;
14638
14637
  }
14639
14638
  });
14640
14639
 
@@ -15652,30 +15651,29 @@ var require_decorators = __commonJS({
15652
15651
  "../../node_modules/@sap-ux/store/dist/decorators/index.js"(exports2) {
15653
15652
  "use strict";
15654
15653
  Object.defineProperty(exports2, "__esModule", { value: true });
15655
- exports2.getSensitiveDataProperties = exports2.sensitiveData = exports2.getSerializableProperties = exports2.serializable = void 0;
15654
+ exports2.serializable = serializable;
15655
+ exports2.getSerializableProperties = getSerializableProperties;
15656
+ exports2.sensitiveData = sensitiveData;
15657
+ exports2.getSensitiveDataProperties = getSensitiveDataProperties;
15656
15658
  require_Reflect();
15657
15659
  var SERIALIZABLE = Symbol("serializable");
15658
15660
  function serializable(target, key) {
15659
15661
  const serializableProperties = Reflect.getOwnMetadata(SERIALIZABLE, target.constructor) || /* @__PURE__ */ new Set();
15660
15662
  Reflect.defineMetadata(SERIALIZABLE, serializableProperties.add(key), target.constructor);
15661
15663
  }
15662
- exports2.serializable = serializable;
15663
15664
  function getSerializableProperties(target) {
15664
15665
  const props = Reflect.getOwnMetadata(SERIALIZABLE, target.constructor);
15665
15666
  return props && Array.from(props.values()) || [];
15666
15667
  }
15667
- exports2.getSerializableProperties = getSerializableProperties;
15668
15668
  var SENSITIVE = Symbol("sensitive");
15669
15669
  function sensitiveData(target, key) {
15670
15670
  const sensitiveProperties = Reflect.getOwnMetadata(SENSITIVE, target.constructor) || /* @__PURE__ */ new Set();
15671
15671
  Reflect.defineMetadata(SENSITIVE, sensitiveProperties.add(key), target.constructor);
15672
15672
  }
15673
- exports2.sensitiveData = sensitiveData;
15674
15673
  function getSensitiveDataProperties(target) {
15675
15674
  const props = Reflect.getOwnMetadata(SENSITIVE, target.constructor);
15676
15675
  return props && Array.from(props.values()) || [];
15677
15676
  }
15678
- exports2.getSensitiveDataProperties = getSensitiveDataProperties;
15679
15677
  }
15680
15678
  });
15681
15679
 
@@ -15684,7 +15682,7 @@ var require_hybrid = __commonJS({
15684
15682
  "../../node_modules/@sap-ux/store/dist/data-access/hybrid.js"(exports2) {
15685
15683
  "use strict";
15686
15684
  Object.defineProperty(exports2, "__esModule", { value: true });
15687
- exports2.getHybridStore = void 0;
15685
+ exports2.getHybridStore = getHybridStore;
15688
15686
  var filesystem_1 = require_filesystem();
15689
15687
  var utils_1 = require_utils2();
15690
15688
  var secure_store_1 = require_secure_store();
@@ -15772,7 +15770,6 @@ var require_hybrid = __commonJS({
15772
15770
  function getHybridStore(logger3, options2) {
15773
15771
  return new HybridStore(logger3, options2);
15774
15772
  }
15775
- exports2.getHybridStore = getHybridStore;
15776
15773
  }
15777
15774
  });
15778
15775
 
@@ -15952,7 +15949,8 @@ var require_backend_system3 = __commonJS({
15952
15949
  "../../node_modules/@sap-ux/store/dist/services/backend-system.js"(exports2) {
15953
15950
  "use strict";
15954
15951
  Object.defineProperty(exports2, "__esModule", { value: true });
15955
- exports2.getInstance = exports2.SystemService = void 0;
15952
+ exports2.SystemService = void 0;
15953
+ exports2.getInstance = getInstance;
15956
15954
  var backend_system_1 = require_backend_system2();
15957
15955
  var backend_system_2 = require_backend_system();
15958
15956
  var i18n_1 = require_i18n();
@@ -16005,7 +16003,6 @@ var require_backend_system3 = __commonJS({
16005
16003
  function getInstance(logger3, options2 = {}) {
16006
16004
  return new SystemService(logger3, options2);
16007
16005
  }
16008
- exports2.getInstance = getInstance;
16009
16006
  }
16010
16007
  });
16011
16008
 
@@ -16091,7 +16088,8 @@ var require_telemetry_setting3 = __commonJS({
16091
16088
  "../../node_modules/@sap-ux/store/dist/services/telemetry-setting.js"(exports2) {
16092
16089
  "use strict";
16093
16090
  Object.defineProperty(exports2, "__esModule", { value: true });
16094
- exports2.getInstance = exports2.TelemetrySettingService = void 0;
16091
+ exports2.TelemetrySettingService = void 0;
16092
+ exports2.getInstance = getInstance;
16095
16093
  var telemetry_setting_1 = require_telemetry_setting2();
16096
16094
  var TelemetrySettingService = class {
16097
16095
  dataProvider;
@@ -16120,7 +16118,6 @@ var require_telemetry_setting3 = __commonJS({
16120
16118
  function getInstance(logger3) {
16121
16119
  return new TelemetrySettingService(logger3);
16122
16120
  }
16123
- exports2.getInstance = getInstance;
16124
16121
  }
16125
16122
  });
16126
16123
 
@@ -16207,7 +16204,8 @@ var require_migration = __commonJS({
16207
16204
  "../../node_modules/@sap-ux/store/dist/services/api-hub/migration.js"(exports2) {
16208
16205
  "use strict";
16209
16206
  Object.defineProperty(exports2, "__esModule", { value: true });
16210
- exports2.migrateToLatestVersion = exports2.LEGACY_API_HUB_API_KEY = exports2.LEGACY_API_HUB_API_SERVICE = void 0;
16207
+ exports2.LEGACY_API_HUB_API_KEY = exports2.LEGACY_API_HUB_API_SERVICE = void 0;
16208
+ exports2.migrateToLatestVersion = migrateToLatestVersion;
16211
16209
  var i18n_1 = require_i18n();
16212
16210
  var api_hub_1 = require_api_hub();
16213
16211
  exports2.LEGACY_API_HUB_API_SERVICE = "fiori/system/apiHub";
@@ -16230,7 +16228,6 @@ var require_migration = __commonJS({
16230
16228
  await secureStore.delete(exports2.LEGACY_API_HUB_API_SERVICE, exports2.LEGACY_API_HUB_API_KEY);
16231
16229
  logger3.info((0, i18n_1.text)("info.legacyApiHubKeyDeleted"));
16232
16230
  }
16233
- exports2.migrateToLatestVersion = migrateToLatestVersion;
16234
16231
  }
16235
16232
  });
16236
16233
 
@@ -16239,7 +16236,8 @@ var require_service = __commonJS({
16239
16236
  "../../node_modules/@sap-ux/store/dist/services/api-hub/service.js"(exports2) {
16240
16237
  "use strict";
16241
16238
  Object.defineProperty(exports2, "__esModule", { value: true });
16242
- exports2.getInstance = exports2.ApiHubSettingsService = void 0;
16239
+ exports2.ApiHubSettingsService = void 0;
16240
+ exports2.getInstance = getInstance;
16243
16241
  var secure_store_1 = require_secure_store();
16244
16242
  var api_hub_1 = require_api_hub2();
16245
16243
  var api_hub_2 = require_api_hub();
@@ -16293,7 +16291,6 @@ var require_service = __commonJS({
16293
16291
  function getInstance(logger3) {
16294
16292
  return new ApiHubSettingsService(logger3);
16295
16293
  }
16296
- exports2.getInstance = getInstance;
16297
16294
  }
16298
16295
  });
16299
16296
 
@@ -33355,7 +33352,8 @@ var require_dist4 = __commonJS({
33355
33352
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) __createBinding(exports3, m, p);
33356
33353
  };
33357
33354
  Object.defineProperty(exports2, "__esModule", { value: true });
33358
- exports2.FioriToolsSettings = exports2.getFioriToolsDirectory = exports2.Entity = exports2.getFilesystemWatcherFor = exports2.getService = void 0;
33355
+ exports2.FioriToolsSettings = exports2.getFioriToolsDirectory = exports2.Entity = exports2.getFilesystemWatcherFor = void 0;
33356
+ exports2.getService = getService2;
33359
33357
  var constants_1 = require_constants();
33360
33358
  Object.defineProperty(exports2, "Entity", { enumerable: true, get: function() {
33361
33359
  return constants_1.Entity;
@@ -33379,7 +33377,6 @@ var require_dist4 = __commonJS({
33379
33377
  throw new Error((0, i18n_1.text)("error.unsupportedEntity", { entityName: entityName2 }));
33380
33378
  }
33381
33379
  }
33382
- exports2.getService = getService2;
33383
33380
  __exportStar(require_services(), exports2);
33384
33381
  __exportStar(require_backend_system(), exports2);
33385
33382
  __exportStar(require_telemetry_setting(), exports2);
@@ -61597,9 +61594,9 @@ var require_is_wsl = __commonJS({
61597
61594
  }
61598
61595
  });
61599
61596
 
61600
- // ../lib/odata-client/node_modules/open/index.js
61597
+ // ../../node_modules/open/index.js
61601
61598
  var require_open = __commonJS({
61602
- "../lib/odata-client/node_modules/open/index.js"(exports2, module2) {
61599
+ "../../node_modules/open/index.js"(exports2, module2) {
61603
61600
  "use strict";
61604
61601
  var { promisify: promisify2 } = require("util");
61605
61602
  var path4 = require("path");
@@ -64380,11 +64377,11 @@ var require_odata_request_error = __commonJS({
64380
64377
  "../../node_modules/@sap-ux/axios-extension/dist/base/odata-request-error.js"(exports2) {
64381
64378
  "use strict";
64382
64379
  Object.defineProperty(exports2, "__esModule", { value: true });
64383
- exports2.ODataRequestError = exports2.isAxiosError = void 0;
64380
+ exports2.ODataRequestError = void 0;
64381
+ exports2.isAxiosError = isAxiosError3;
64384
64382
  function isAxiosError3(e) {
64385
64383
  return typeof e === "object" && e !== null && "isAxiosError" in e;
64386
64384
  }
64387
- exports2.isAxiosError = isAxiosError3;
64388
64385
  var ODataRequestError = class extends Error {
64389
64386
  /**
64390
64387
  * Helper function to check if a parsed OData response contains an error.
@@ -64811,7 +64808,8 @@ var require_connection = __commonJS({
64811
64808
  return mod && mod.__esModule ? mod : { "default": mod };
64812
64809
  };
64813
64810
  Object.defineProperty(exports2, "__esModule", { value: true });
64814
- exports2.attachConnectionHandler = exports2.Cookies = exports2.defaultTimeout = exports2.CSRF = void 0;
64811
+ exports2.Cookies = exports2.defaultTimeout = exports2.CSRF = void 0;
64812
+ exports2.attachConnectionHandler = attachConnectionHandler;
64815
64813
  var axios_1 = require_axios();
64816
64814
  var detect_content_type_1 = __importDefault(require_lib2());
64817
64815
  var CSRF;
@@ -64943,7 +64941,6 @@ var require_connection = __commonJS({
64943
64941
  return response;
64944
64942
  });
64945
64943
  }
64946
- exports2.attachConnectionHandler = attachConnectionHandler;
64947
64944
  }
64948
64945
  });
64949
64946
 
@@ -65042,7 +65039,11 @@ var require_message = __commonJS({
65042
65039
  "../../node_modules/@sap-ux/axios-extension/dist/abap/message.js"(exports2) {
65043
65040
  "use strict";
65044
65041
  Object.defineProperty(exports2, "__esModule", { value: true });
65045
- exports2.getErrorMessageFromString = exports2.logError = exports2.prettyPrintTimeInMs = exports2.prettyPrintError = exports2.prettyPrintMessage = void 0;
65042
+ exports2.prettyPrintTimeInMs = void 0;
65043
+ exports2.prettyPrintMessage = prettyPrintMessage;
65044
+ exports2.prettyPrintError = prettyPrintError2;
65045
+ exports2.logError = logError;
65046
+ exports2.getErrorMessageFromString = getErrorMessageFromString;
65046
65047
  var url_1 = require("url");
65047
65048
  var axios_1 = require_axios();
65048
65049
  function logLevel(severity, msg, log6, error5 = false) {
@@ -65074,7 +65075,6 @@ var require_message = __commonJS({
65074
65075
  log6.debug(msg);
65075
65076
  }
65076
65077
  }
65077
- exports2.prettyPrintMessage = prettyPrintMessage;
65078
65078
  function logFullURL({ host, path: path4, log: log6, isDest = false }) {
65079
65079
  if (host && path4) {
65080
65080
  const base = new url_1.URL(host).origin;
@@ -65104,7 +65104,6 @@ var require_message = __commonJS({
65104
65104
  }
65105
65105
  }
65106
65106
  }
65107
- exports2.prettyPrintError = prettyPrintError2;
65108
65107
  var prettyPrintTimeInMs = (ms) => {
65109
65108
  const min = ms / 60 / 1e3 | 0;
65110
65109
  if (min > 1) {
@@ -65128,7 +65127,6 @@ var require_message = __commonJS({
65128
65127
  }
65129
65128
  }
65130
65129
  }
65131
- exports2.logError = logError;
65132
65130
  function getErrorMessageFromString(data2) {
65133
65131
  let error5;
65134
65132
  if (typeof data2 === "string") {
@@ -65142,7 +65140,6 @@ var require_message = __commonJS({
65142
65140
  }
65143
65141
  return error5;
65144
65142
  }
65145
- exports2.getErrorMessageFromString = getErrorMessageFromString;
65146
65143
  }
65147
65144
  });
65148
65145
 
@@ -65300,7 +65297,7 @@ var require_redirect = __commonJS({
65300
65297
  return mod && mod.__esModule ? mod : { "default": mod };
65301
65298
  };
65302
65299
  Object.defineProperty(exports2, "__esModule", { value: true });
65303
- exports2.setupRedirectHandling = void 0;
65300
+ exports2.setupRedirectHandling = setupRedirectHandling;
65304
65301
  var http_1 = __importDefault(require("http"));
65305
65302
  var error_1 = require_error3();
65306
65303
  var message_1 = require_message();
@@ -65342,7 +65339,6 @@ var require_redirect = __commonJS({
65342
65339
  redirectUrl: (port) => `http://localhost:${port}${REDIRECT_PATH}`
65343
65340
  };
65344
65341
  }
65345
- exports2.setupRedirectHandling = setupRedirectHandling;
65346
65342
  }
65347
65343
  });
65348
65344
 
@@ -65351,7 +65347,7 @@ var require_reentrance_ticket = __commonJS({
65351
65347
  "../../node_modules/@sap-ux/axios-extension/dist/auth/reentrance-ticket/index.js"(exports2) {
65352
65348
  "use strict";
65353
65349
  Object.defineProperty(exports2, "__esModule", { value: true });
65354
- exports2.getReentranceTicket = void 0;
65350
+ exports2.getReentranceTicket = getReentranceTicket;
65355
65351
  var open = require_open2();
65356
65352
  var connection_1 = require_connection();
65357
65353
  var abap_system_1 = require_abap_system();
@@ -65369,7 +65365,6 @@ var require_reentrance_ticket = __commonJS({
65369
65365
  (_a3 = open(url2)) == null ? void 0 : _a3.catch((error5) => logger3.error(error5));
65370
65366
  });
65371
65367
  }
65372
- exports2.getReentranceTicket = getReentranceTicket;
65373
65368
  }
65374
65369
  });
65375
65370
 
@@ -65716,7 +65711,11 @@ var require_auth = __commonJS({
65716
65711
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) __createBinding(exports3, m, p);
65717
65712
  };
65718
65713
  Object.defineProperty(exports2, "__esModule", { value: true });
65719
- exports2.getReentranceTicketAuthInterceptor = exports2.attachReentranceTicketAuthInterceptor = exports2.attachUaaAuthInterceptor = exports2.attachBasicAuthInterceptor = exports2.Uaa = void 0;
65714
+ exports2.Uaa = void 0;
65715
+ exports2.attachBasicAuthInterceptor = attachBasicAuthInterceptor;
65716
+ exports2.attachUaaAuthInterceptor = attachUaaAuthInterceptor;
65717
+ exports2.attachReentranceTicketAuthInterceptor = attachReentranceTicketAuthInterceptor;
65718
+ exports2.getReentranceTicketAuthInterceptor = getReentranceTicketAuthInterceptor;
65720
65719
  var axios_1 = require_axios();
65721
65720
  var reentrance_ticket_1 = require_reentrance_ticket();
65722
65721
  var uaa_1 = require_uaa();
@@ -65732,7 +65731,6 @@ var require_auth = __commonJS({
65732
65731
  return response;
65733
65732
  });
65734
65733
  }
65735
- exports2.attachBasicAuthInterceptor = attachBasicAuthInterceptor;
65736
65734
  function attachUaaAuthInterceptor(provider, service, refreshToken, refreshTokenUpdateCb) {
65737
65735
  const uaa = new uaa_1.Uaa(service, provider.log);
65738
65736
  let token2;
@@ -65751,13 +65749,11 @@ var require_auth = __commonJS({
65751
65749
  return request3;
65752
65750
  });
65753
65751
  }
65754
- exports2.attachUaaAuthInterceptor = attachUaaAuthInterceptor;
65755
65752
  function attachReentranceTicketAuthInterceptor({ provider }) {
65756
65753
  let oneTimeInterceptorId;
65757
65754
  const ejectCallback = () => provider.interceptors.request.eject(oneTimeInterceptorId);
65758
65755
  oneTimeInterceptorId = provider.interceptors.request.use(getReentranceTicketAuthInterceptor({ provider, ejectCallback }));
65759
65756
  }
65760
- exports2.attachReentranceTicketAuthInterceptor = attachReentranceTicketAuthInterceptor;
65761
65757
  function getReentranceTicketAuthInterceptor({ provider, ejectCallback }) {
65762
65758
  return async (request3) => {
65763
65759
  const { reentranceTicket, apiUrl } = await (0, reentrance_ticket_1.getReentranceTicket)({
@@ -65774,7 +65770,6 @@ var require_auth = __commonJS({
65774
65770
  return request3;
65775
65771
  };
65776
65772
  }
65777
- exports2.getReentranceTicketAuthInterceptor = getReentranceTicketAuthInterceptor;
65778
65773
  }
65779
65774
  });
65780
65775
 
@@ -66183,11 +66178,20 @@ var require_lrep_service = __commonJS({
66183
66178
  * Merge a given app descriptor variant with the stord app descriptor.
66184
66179
  *
66185
66180
  * @param appDescriptorVariant zip file containing an app descriptor variant
66181
+ * @param workspacePath value for workspacePath URL parameter
66186
66182
  * @returns a promise with an object containing merged app descriptors with their id as keys.
66187
66183
  */
66188
- async mergeAppDescriptorVariant(appDescriptorVariant) {
66184
+ async mergeAppDescriptorVariant(appDescriptorVariant, workspacePath) {
66185
+ var _a3;
66186
+ const path4 = "/appdescr_variant_preview/";
66187
+ const params = new URLSearchParams((_a3 = this.defaults) == null ? void 0 : _a3.params);
66188
+ if (workspacePath) {
66189
+ params.append("workspacePath", workspacePath);
66190
+ }
66189
66191
  try {
66190
- const response = await this.put("/appdescr_variant_preview/", appDescriptorVariant, {
66192
+ const response = await this.put(path4, appDescriptorVariant, {
66193
+ paramsSerializer: (params2) => decodeURIComponent(params2.toString()),
66194
+ params,
66191
66195
  headers: {
66192
66196
  "Content-Type": "application/zip"
66193
66197
  }
@@ -78355,7 +78359,12 @@ var require_factory = __commonJS({
78355
78359
  return mod && mod.__esModule ? mod : { "default": mod };
78356
78360
  };
78357
78361
  Object.defineProperty(exports2, "__esModule", { value: true });
78358
- exports2.createServiceForUrl = exports2.createForDestination = exports2.createForAbapOnCloud = exports2.AbapCloudEnvironment = exports2.createForAbap = exports2.create = void 0;
78362
+ exports2.AbapCloudEnvironment = void 0;
78363
+ exports2.create = create;
78364
+ exports2.createForAbap = createForAbap;
78365
+ exports2.createForAbapOnCloud = createForAbapOnCloud;
78366
+ exports2.createForDestination = createForDestination;
78367
+ exports2.createServiceForUrl = createServiceForUrl;
78359
78368
  var cloneDeep_1 = __importDefault(require_cloneDeep());
78360
78369
  var btp_utils_1 = require_dist5();
78361
78370
  var https_1 = require("https");
@@ -78406,11 +78415,9 @@ var require_factory = __commonJS({
78406
78415
  return createInstance2(service_provider_1.ServiceProvider, config);
78407
78416
  }
78408
78417
  }
78409
- exports2.create = create;
78410
78418
  function createForAbap(config) {
78411
78419
  return createInstance2(abap_1.AbapServiceProvider, config);
78412
78420
  }
78413
- exports2.createForAbap = createForAbap;
78414
78421
  var AbapCloudEnvironment;
78415
78422
  (function(AbapCloudEnvironment2) {
78416
78423
  AbapCloudEnvironment2["Standalone"] = "Standalone";
@@ -78449,7 +78456,6 @@ var require_factory = __commonJS({
78449
78456
  }
78450
78457
  return provider;
78451
78458
  }
78452
- exports2.createForAbapOnCloud = createForAbapOnCloud;
78453
78459
  function createForDestination(options2, destination, destinationServiceInstance) {
78454
78460
  const { cookies, ...config } = options2;
78455
78461
  const providerConfig = {
@@ -78476,7 +78482,6 @@ var require_factory = __commonJS({
78476
78482
  }
78477
78483
  return provider;
78478
78484
  }
78479
- exports2.createForDestination = createForDestination;
78480
78485
  function createServiceForUrl(url2, config = {}) {
78481
78486
  const urlObject = new URL(url2);
78482
78487
  config.baseURL = urlObject.origin;
@@ -78488,7 +78493,6 @@ var require_factory = __commonJS({
78488
78493
  const provider = createInstance2(service_provider_1.ServiceProvider, config);
78489
78494
  return provider.service(urlObject.pathname);
78490
78495
  }
78491
- exports2.createServiceForUrl = createServiceForUrl;
78492
78496
  }
78493
78497
  });
78494
78498
 
@@ -86227,19 +86231,22 @@ var require_cap = __commonJS({
86227
86231
  async function getCapModelAndServices(projectRoot) {
86228
86232
  let _projectRoot;
86229
86233
  let _logger;
86234
+ let _pathSelection;
86235
+ const defaultPathSelection = /* @__PURE__ */ new Set(["app", "srv", "db"]);
86230
86236
  if (typeof projectRoot === "object") {
86231
86237
  _projectRoot = projectRoot.projectRoot;
86232
86238
  _logger = projectRoot.logger;
86239
+ _pathSelection = projectRoot.pathSelection ? projectRoot.pathSelection : defaultPathSelection;
86233
86240
  } else {
86241
+ _pathSelection = defaultPathSelection;
86234
86242
  _projectRoot = projectRoot;
86235
86243
  }
86236
86244
  const cds = await loadCdsModuleFromProject(_projectRoot, true);
86237
86245
  const capProjectPaths = await getCapCustomPaths(_projectRoot);
86238
- const modelPaths = [
86239
- (0, path_1.join)(_projectRoot, capProjectPaths.app),
86240
- (0, path_1.join)(_projectRoot, capProjectPaths.srv),
86241
- (0, path_1.join)(_projectRoot, capProjectPaths.db)
86242
- ];
86246
+ const modelPaths = [];
86247
+ _pathSelection == null ? void 0 : _pathSelection.forEach((path4) => {
86248
+ modelPaths.push((0, path_1.join)(_projectRoot, capProjectPaths[path4]));
86249
+ });
86243
86250
  const model = await cds.load(modelPaths, { root: _projectRoot });
86244
86251
  _logger == null ? void 0 : _logger.info(`@sap-ux/project-access:getCapModelAndServices - Using 'cds.home': ${cds.home}`);
86245
86252
  _logger == null ? void 0 : _logger.info(`@sap-ux/project-access:getCapModelAndServices - Using 'cds.version': ${cds.version}`);
@@ -117653,9 +117660,9 @@ var require_dist13 = __commonJS({
117653
117660
  }
117654
117661
  });
117655
117662
 
117656
- // ../../node_modules/@tootallnate/once/dist/index.js
117663
+ // ../../node_modules/@azure/core-rest-pipeline/node_modules/@tootallnate/once/dist/index.js
117657
117664
  var require_dist14 = __commonJS({
117658
- "../../node_modules/@tootallnate/once/dist/index.js"(exports2) {
117665
+ "../../node_modules/@azure/core-rest-pipeline/node_modules/@tootallnate/once/dist/index.js"(exports2) {
117659
117666
  "use strict";
117660
117667
  Object.defineProperty(exports2, "__esModule", { value: true });
117661
117668
  function once(emitter, name2, { signal } = {}) {
@@ -117682,9 +117689,9 @@ var require_dist14 = __commonJS({
117682
117689
  }
117683
117690
  });
117684
117691
 
117685
- // ../../node_modules/http-proxy-agent/dist/agent.js
117692
+ // ../../node_modules/@azure/core-rest-pipeline/node_modules/http-proxy-agent/dist/agent.js
117686
117693
  var require_agent2 = __commonJS({
117687
- "../../node_modules/http-proxy-agent/dist/agent.js"(exports2) {
117694
+ "../../node_modules/@azure/core-rest-pipeline/node_modules/http-proxy-agent/dist/agent.js"(exports2) {
117688
117695
  "use strict";
117689
117696
  var __awaiter9 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
117690
117697
  function adopt(value) {
@@ -117818,9 +117825,9 @@ var require_agent2 = __commonJS({
117818
117825
  }
117819
117826
  });
117820
117827
 
117821
- // ../../node_modules/http-proxy-agent/dist/index.js
117828
+ // ../../node_modules/@azure/core-rest-pipeline/node_modules/http-proxy-agent/dist/index.js
117822
117829
  var require_dist15 = __commonJS({
117823
- "../../node_modules/http-proxy-agent/dist/index.js"(exports2, module2) {
117830
+ "../../node_modules/@azure/core-rest-pipeline/node_modules/http-proxy-agent/dist/index.js"(exports2, module2) {
117824
117831
  "use strict";
117825
117832
  var __importDefault = exports2 && exports2.__importDefault || function(mod) {
117826
117833
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -122291,7 +122298,7 @@ var require_azure_client_config = __commonJS({
122291
122298
  "../../node_modules/@sap-ux/telemetry/dist/base/utils/azure-client-config.js"(exports2) {
122292
122299
  "use strict";
122293
122300
  Object.defineProperty(exports2, "__esModule", { value: true });
122294
- exports2.configAzureTelemetryClient = void 0;
122301
+ exports2.configAzureTelemetryClient = configAzureTelemetryClient;
122295
122302
  function configAzureTelemetryClient(client) {
122296
122303
  client.channel.setUseDiskRetryCaching(true);
122297
122304
  client.addTelemetryProcessor((envelope) => {
@@ -122302,7 +122309,6 @@ var require_azure_client_config = __commonJS({
122302
122309
  return true;
122303
122310
  });
122304
122311
  }
122305
- exports2.configAzureTelemetryClient = configAzureTelemetryClient;
122306
122312
  }
122307
122313
  });
122308
122314
 
@@ -122311,7 +122317,7 @@ var require_package7 = __commonJS({
122311
122317
  "../../node_modules/@sap-ux/telemetry/package.json"(exports2, module2) {
122312
122318
  module2.exports = {
122313
122319
  name: "@sap-ux/telemetry",
122314
- version: "0.5.31",
122320
+ version: "0.5.36",
122315
122321
  description: "Library for sending usage telemetry data",
122316
122322
  repository: {
122317
122323
  type: "git",
@@ -122329,8 +122335,8 @@ var require_package7 = __commonJS({
122329
122335
  axios: "1.7.4",
122330
122336
  "performance-now": "2.1.0",
122331
122337
  yaml: "2.3.3",
122332
- "@sap-ux/store": "0.9.1",
122333
- "@sap-ux/project-access": "1.27.5",
122338
+ "@sap-ux/store": "0.9.2",
122339
+ "@sap-ux/project-access": "1.28.2",
122334
122340
  "@sap-ux/btp-utils": "0.15.2",
122335
122341
  "@sap-ux/ui5-config": "0.25.0",
122336
122342
  "@sap-ux/logger": "0.6.0"
@@ -122340,7 +122346,7 @@ var require_package7 = __commonJS({
122340
122346
  memfs: "3.4.13",
122341
122347
  "ts-jest": "29.1.2",
122342
122348
  "ts-node": "10.9.2",
122343
- typescript: "5.3.3",
122349
+ typescript: "5.6.2",
122344
122350
  unionfs: "4.4.0",
122345
122351
  dotenv: "16.3.1"
122346
122352
  },
@@ -129923,7 +129929,9 @@ var require_data_processor = __commonJS({
129923
129929
  return mod && mod.__esModule ? mod : { "default": mod };
129924
129930
  };
129925
129931
  Object.defineProperty(exports2, "__esModule", { value: true });
129926
- exports2.spawnCommand = exports2.getCommonProperties = exports2.processToolsSuiteTelemetry = void 0;
129932
+ exports2.processToolsSuiteTelemetry = processToolsSuiteTelemetry;
129933
+ exports2.getCommonProperties = getCommonProperties;
129934
+ exports2.spawnCommand = spawnCommand;
129927
129935
  var btp_utils_1 = require_dist5();
129928
129936
  var ui5_config_1 = require_dist9();
129929
129937
  var axios_1 = __importDefault(require_axios());
@@ -129945,7 +129953,6 @@ var require_data_processor = __commonJS({
129945
129953
  }
129946
129954
  return { ...commonProperties, ...appProperties };
129947
129955
  }
129948
- exports2.processToolsSuiteTelemetry = processToolsSuiteTelemetry;
129949
129956
  async function getCommonProperties() {
129950
129957
  const commonProperties = {};
129951
129958
  commonProperties[types_1.CommonProperties.DevSpace] = await getSbasDevspace();
@@ -129956,7 +129963,6 @@ var require_data_processor = __commonJS({
129956
129963
  commonProperties[types_1.CommonProperties.NodeVersion] = (await getProcessVersions()).node;
129957
129964
  return commonProperties;
129958
129965
  }
129959
- exports2.getCommonProperties = getCommonProperties;
129960
129966
  async function getSbasDevspace() {
129961
129967
  var _a3, _b2;
129962
129968
  if ((0, btp_utils_1.isAppStudio)()) {
@@ -130143,7 +130149,6 @@ var require_data_processor = __commonJS({
130143
130149
  });
130144
130150
  });
130145
130151
  }
130146
- exports2.spawnCommand = spawnCommand;
130147
130152
  }
130148
130153
  });
130149
130154
 
@@ -130319,7 +130324,9 @@ var require_telemetry_settings = __commonJS({
130319
130324
  return mod && mod.__esModule ? mod : { "default": mod };
130320
130325
  };
130321
130326
  Object.defineProperty(exports2, "__esModule", { value: true });
130322
- exports2.getTelemetrySetting = exports2.setEnableTelemetry = exports2.initTelemetrySettings = void 0;
130327
+ exports2.initTelemetrySettings = void 0;
130328
+ exports2.setEnableTelemetry = setEnableTelemetry;
130329
+ exports2.getTelemetrySetting = getTelemetrySetting;
130323
130330
  var reporting_1 = require_reporting();
130324
130331
  var store_1 = require_dist4();
130325
130332
  var btp_utils_1 = require_dist5();
@@ -130422,7 +130429,6 @@ var require_telemetry_settings = __commonJS({
130422
130429
  const commonProperties = await (0, data_processor_1.getCommonProperties)();
130423
130430
  (0, reporting_1.reportEnableTelemetryOnOff)(enableTelemetry, commonProperties);
130424
130431
  }
130425
- exports2.setEnableTelemetry = setEnableTelemetry;
130426
130432
  async function getTelemetrySetting() {
130427
130433
  let setting;
130428
130434
  try {
@@ -130434,7 +130440,6 @@ var require_telemetry_settings = __commonJS({
130434
130440
  }
130435
130441
  return setting;
130436
130442
  }
130437
- exports2.getTelemetrySetting = getTelemetrySetting;
130438
130443
  }
130439
130444
  });
130440
130445
 
@@ -131121,13 +131126,14 @@ var require_commandRunner = __commonJS({
131121
131126
  *
131122
131127
  * @param {string} cmd to execute
131123
131128
  * @param {string[]} args to pass to the command
131129
+ * @param {SpawnOptionsWithoutStdio} [opts] options to pass to the command
131124
131130
  * @returns {*} {(Promise<any | void>)}
131125
131131
  * @memberof CommandRunner
131126
131132
  */
131127
- run(cmd, args = []) {
131133
+ run(cmd, args = [], opts = {}) {
131128
131134
  return new Promise((resolve, reject) => {
131129
131135
  const stack = [];
131130
- const spawnOpts = process.platform === "win32" ? { shell: true } : {};
131136
+ const spawnOpts = process.platform === "win32" ? { ...opts, shell: true } : opts;
131131
131137
  const spawnedCmd = (0, child_process_1.spawn)(cmd, args, spawnOpts);
131132
131138
  spawnedCmd.stdout.setEncoding("utf8");
131133
131139
  let response;
@@ -141660,7 +141666,7 @@ var require_installedCheck = __commonJS({
141660
141666
  return mod && mod.__esModule ? mod : { "default": mod };
141661
141667
  };
141662
141668
  Object.defineProperty(exports2, "__esModule", { value: true });
141663
- exports2.findInstalledPackages = void 0;
141669
+ exports2.findInstalledPackages = findInstalledPackages;
141664
141670
  var btp_utils_1 = require_dist5();
141665
141671
  var commandRunner_1 = require_commandRunner();
141666
141672
  var fast_glob_1 = __importDefault(require_out4());
@@ -141706,7 +141712,6 @@ var require_installedCheck = __commonJS({
141706
141712
  }
141707
141713
  return installedGenPackageInfos;
141708
141714
  }
141709
- exports2.findInstalledPackages = findInstalledPackages;
141710
141715
  async function getNpmInstallPaths(vscWorkspaceConfig) {
141711
141716
  const genSearchPaths = [];
141712
141717
  if (vscWorkspaceConfig) {
@@ -142478,7 +142483,10 @@ var require_featureToggle = __commonJS({
142478
142483
  "../../node_modules/@sap-ux/feature-toggle/dist/featureToggle.js"(exports2) {
142479
142484
  "use strict";
142480
142485
  Object.defineProperty(exports2, "__esModule", { value: true });
142481
- exports2.isInternalFeaturesSettingEnabled = exports2.isFeatureEnabled = exports2.enableFeature = exports2.FeatureToggleAccess = void 0;
142486
+ exports2.FeatureToggleAccess = void 0;
142487
+ exports2.enableFeature = enableFeature;
142488
+ exports2.isFeatureEnabled = isFeatureEnabled;
142489
+ exports2.isInternalFeaturesSettingEnabled = isInternalFeaturesSettingEnabled2;
142482
142490
  var constants_1 = require_constants10();
142483
142491
  var FeatureToggleAccess = class _FeatureToggleAccess {
142484
142492
  static vscode = getVSCodeInstance();
@@ -142539,6 +142547,15 @@ var require_featureToggle = __commonJS({
142539
142547
  definedToggles.push(toggle);
142540
142548
  });
142541
142549
  });
142550
+ } else if (process.env.TOOLSUITE_FEATURES) {
142551
+ const envFeatures = process.env.TOOLSUITE_FEATURES.split(",");
142552
+ for (const feature of envFeatures) {
142553
+ const toggle = {
142554
+ feature,
142555
+ isEnabled: true
142556
+ };
142557
+ definedToggles.push(toggle);
142558
+ }
142542
142559
  }
142543
142560
  return definedToggles;
142544
142561
  }
@@ -142564,11 +142581,9 @@ var require_featureToggle = __commonJS({
142564
142581
  }
142565
142582
  process.env.TOOLSUITE_FEATURES = envFeatures.join();
142566
142583
  }
142567
- exports2.enableFeature = enableFeature;
142568
142584
  function isFeatureEnabled(feature) {
142569
142585
  return FeatureToggleAccess.getFeatureToggle(feature).isEnabled;
142570
142586
  }
142571
- exports2.isFeatureEnabled = isFeatureEnabled;
142572
142587
  function isInternalFeaturesSettingEnabled2() {
142573
142588
  var _a3;
142574
142589
  const enableInternalFeaturesSetting = "sap.ux.internal.enableInternalFeatures";
@@ -142582,7 +142597,6 @@ var require_featureToggle = __commonJS({
142582
142597
  }
142583
142598
  return internalEnabled;
142584
142599
  }
142585
- exports2.isInternalFeaturesSettingEnabled = isInternalFeaturesSettingEnabled2;
142586
142600
  }
142587
142601
  });
142588
142602
 
@@ -143997,8 +144011,13 @@ var require_http_proxy_middleware = __commonJS({
143997
144011
  }
143998
144012
  };
143999
144013
  this.shouldProxy = (context3, req) => {
144000
- const path4 = req.originalUrl || req.url;
144001
- return contextMatcher.match(context3, path4, req);
144014
+ try {
144015
+ const path4 = req.originalUrl || req.url;
144016
+ return contextMatcher.match(context3, path4, req);
144017
+ } catch (error5) {
144018
+ this.logger.error(error5);
144019
+ return false;
144020
+ }
144002
144021
  };
144003
144022
  this.prepareProxyRequest = async (req) => {
144004
144023
  req.url = req.originalUrl || req.url;
@@ -146308,7 +146327,8 @@ var require_i18n5 = __commonJS({
146308
146327
  return mod && mod.__esModule ? mod : { "default": mod };
146309
146328
  };
146310
146329
  Object.defineProperty(exports2, "__esModule", { value: true });
146311
- exports2.t = exports2.initI18n = void 0;
146330
+ exports2.initI18n = initI18n2;
146331
+ exports2.t = t;
146312
146332
  var i18next_1 = __importDefault((init_i18next2(), __toCommonJS(i18next_exports2)));
146313
146333
  var ui5_proxy_middleware_i18n_json_1 = __importDefault(require_ui5_proxy_middleware_i18n());
146314
146334
  var NS = "ui5-proxy-middleware";
@@ -146325,11 +146345,9 @@ var require_i18n5 = __commonJS({
146325
146345
  ns: [NS]
146326
146346
  });
146327
146347
  }
146328
- exports2.initI18n = initI18n2;
146329
146348
  function t(key, options2) {
146330
146349
  return i18next_1.default.t(key, options2);
146331
146350
  }
146332
- exports2.t = t;
146333
146351
  initI18n2().catch(() => {
146334
146352
  });
146335
146353
  }
@@ -146340,7 +146358,11 @@ var require_utils16 = __commonJS({
146340
146358
  "../../node_modules/@sap-ux/ui5-proxy-middleware/dist/base/utils.js"(exports2) {
146341
146359
  "use strict";
146342
146360
  Object.defineProperty(exports2, "__esModule", { value: true });
146343
- exports2.proxyErrorHandler = exports2.filterCompressedHtmlFiles = exports2.injectScripts = exports2.injectUI5Url = exports2.resolveUI5Version = exports2.setHtmlResponse = exports2.getWebAppFolderFromYaml = exports2.getYamlFile = exports2.getHtmlFile = exports2.updateProxyEnv = exports2.hideProxyCredentials = exports2.getCorporateProxyServer = exports2.proxyRequestHandler = exports2.proxyResponseHandler = void 0;
146361
+ exports2.filterCompressedHtmlFiles = exports2.injectScripts = exports2.setHtmlResponse = exports2.getWebAppFolderFromYaml = exports2.getYamlFile = exports2.getHtmlFile = exports2.hideProxyCredentials = exports2.getCorporateProxyServer = exports2.proxyRequestHandler = exports2.proxyResponseHandler = void 0;
146362
+ exports2.updateProxyEnv = updateProxyEnv;
146363
+ exports2.resolveUI5Version = resolveUI5Version2;
146364
+ exports2.injectUI5Url = injectUI5Url2;
146365
+ exports2.proxyErrorHandler = proxyErrorHandler;
146344
146366
  var project_access_1 = require_dist12();
146345
146367
  var ui5_config_1 = require_dist9();
146346
146368
  var fs_1 = require("fs");
@@ -146398,7 +146420,6 @@ var require_utils16 = __commonJS({
146398
146420
  }
146399
146421
  }
146400
146422
  }
146401
- exports2.updateProxyEnv = updateProxyEnv;
146402
146423
  var getHtmlFile2 = (url2) => {
146403
146424
  let html = url2;
146404
146425
  if (html.indexOf("?") !== -1) {
@@ -146463,7 +146484,6 @@ var require_utils16 = __commonJS({
146463
146484
  }
146464
146485
  return ui5Version;
146465
146486
  }
146466
- exports2.resolveUI5Version = resolveUI5Version2;
146467
146487
  function injectUI5Url2(originalHtml, ui5Configs) {
146468
146488
  let html = originalHtml;
146469
146489
  for (const ui5Config of ui5Configs) {
@@ -146480,7 +146500,6 @@ var require_utils16 = __commonJS({
146480
146500
  }
146481
146501
  return html;
146482
146502
  }
146483
- exports2.injectUI5Url = injectUI5Url2;
146484
146503
  var injectScripts2 = async (req, res, next, ui5Configs, rootProject) => {
146485
146504
  try {
146486
146505
  const htmlFileName = (0, exports2.getHtmlFile)(req.url);
@@ -146517,7 +146536,6 @@ var require_utils16 = __commonJS({
146517
146536
  logger3.debug((0, i18n_1.t)("error.noCodeError", { error: JSON.stringify(err, null, 2), request: req.originalUrl }));
146518
146537
  }
146519
146538
  }
146520
- exports2.proxyErrorHandler = proxyErrorHandler;
146521
146539
  }
146522
146540
  });
146523
146541
 
@@ -149189,7 +149207,7 @@ var require_config6 = __commonJS({
149189
149207
  "../../node_modules/@sap-ux/backend-proxy-middleware/dist/base/config.js"(exports2) {
149190
149208
  "use strict";
149191
149209
  Object.defineProperty(exports2, "__esModule", { value: true });
149192
- exports2.updateProxyEnv = void 0;
149210
+ exports2.updateProxyEnv = updateProxyEnv;
149193
149211
  function updateProxyEnv(proxyFromConfig) {
149194
149212
  let proxyFromArgs;
149195
149213
  process.argv.forEach((arg) => {
@@ -149208,7 +149226,6 @@ var require_config6 = __commonJS({
149208
149226
  }
149209
149227
  }
149210
149228
  }
149211
- exports2.updateProxyEnv = updateProxyEnv;
149212
149229
  }
149213
149230
  });
149214
149231
 
@@ -154401,7 +154418,9 @@ var require_bsp = __commonJS({
154401
154418
  return mod && mod.__esModule ? mod : { "default": mod };
154402
154419
  };
154403
154420
  Object.defineProperty(exports2, "__esModule", { value: true });
154404
- exports2.addOptionsForEmbeddedBSP = exports2.promptUserPass = exports2.convertAppDescriptorToManifest = void 0;
154421
+ exports2.convertAppDescriptorToManifest = convertAppDescriptorToManifest;
154422
+ exports2.promptUserPass = promptUserPass;
154423
+ exports2.addOptionsForEmbeddedBSP = addOptionsForEmbeddedBSP;
154405
154424
  var chalk_1 = require_source4();
154406
154425
  var i18next_1 = __importDefault((init_i18next3(), __toCommonJS(i18next_exports3)));
154407
154426
  var prompts_1 = __importDefault(require_prompts3());
@@ -154410,7 +154429,6 @@ var require_bsp = __commonJS({
154410
154429
  const regex = new RegExp("(" + bsp + "/manifest\\.appdescr\\b)");
154411
154430
  return (path4) => path4.match(regex) ? "/manifest.json" : path4;
154412
154431
  }
154413
- exports2.convertAppDescriptorToManifest = convertAppDescriptorToManifest;
154414
154432
  async function promptUserPass(log6) {
154415
154433
  if ((0, btp_utils_1.isAppStudio)()) {
154416
154434
  const { authNeeded } = await (0, prompts_1.default)([
@@ -154465,7 +154483,6 @@ var require_bsp = __commonJS({
154465
154483
  });
154466
154484
  return `${username}:${password}`;
154467
154485
  }
154468
- exports2.promptUserPass = promptUserPass;
154469
154486
  async function addOptionsForEmbeddedBSP(bspPath, proxyOptions, logger3) {
154470
154487
  const regex = new RegExp("(" + bspPath + "/manifest\\.appdescr\\b)");
154471
154488
  proxyOptions.router = (req) => {
@@ -154486,7 +154503,6 @@ var require_bsp = __commonJS({
154486
154503
  proxyOptions.auth = await promptUserPass(logger3);
154487
154504
  }
154488
154505
  }
154489
- exports2.addOptionsForEmbeddedBSP = addOptionsForEmbeddedBSP;
154490
154506
  }
154491
154507
  });
154492
154508
 
@@ -154498,7 +154514,13 @@ var require_proxy2 = __commonJS({
154498
154514
  return mod && mod.__esModule ? mod : { "default": mod };
154499
154515
  };
154500
154516
  Object.defineProperty(exports2, "__esModule", { value: true });
154501
- exports2.createProxy = exports2.generateProxyMiddlewareOptions = exports2.enhanceConfigForSystem = exports2.enhanceConfigsForDestination = exports2.initI18n = exports2.PathRewriters = exports2.proxyErrorHandler = exports2.ProxyEventHandlers = void 0;
154517
+ exports2.PathRewriters = exports2.ProxyEventHandlers = void 0;
154518
+ exports2.proxyErrorHandler = proxyErrorHandler;
154519
+ exports2.initI18n = initI18n2;
154520
+ exports2.enhanceConfigsForDestination = enhanceConfigsForDestination;
154521
+ exports2.enhanceConfigForSystem = enhanceConfigForSystem;
154522
+ exports2.generateProxyMiddlewareOptions = generateProxyMiddlewareOptions;
154523
+ exports2.createProxy = createProxy2;
154502
154524
  var https_proxy_agent_1 = require_dist24();
154503
154525
  var http_proxy_middleware_1 = require_dist21();
154504
154526
  var i18next_1 = __importDefault((init_i18next3(), __toCommonJS(i18next_exports3)));
@@ -154561,7 +154583,6 @@ var require_proxy2 = __commonJS({
154561
154583
  logger3.debug(i18next_1.default.t("error.noCodeError", { error: JSON.stringify(err, null, 2), request: req.originalUrl }));
154562
154584
  }
154563
154585
  }
154564
- exports2.proxyErrorHandler = proxyErrorHandler;
154565
154586
  async function getApiHubKey(logger3) {
154566
154587
  let apiHubKey = process.env.API_HUB_API_KEY;
154567
154588
  if (!apiHubKey && !(0, btp_utils_1.isAppStudio)()) {
@@ -154649,7 +154670,6 @@ var require_proxy2 = __commonJS({
154649
154670
  ns: [ns]
154650
154671
  });
154651
154672
  }
154652
- exports2.initI18n = initI18n2;
154653
154673
  async function enhanceConfigsForDestination(proxyOptions, backend) {
154654
154674
  proxyOptions.target = (0, btp_utils_1.getDestinationUrlForAppStudio)(backend.destination);
154655
154675
  if (backend.destinationInstance) {
@@ -154667,7 +154687,6 @@ var require_proxy2 = __commonJS({
154667
154687
  }
154668
154688
  }
154669
154689
  }
154670
- exports2.enhanceConfigsForDestination = enhanceConfigsForDestination;
154671
154690
  async function enhanceConfigForSystem(proxyOptions, system, oAuthRequired, tokenChangedCallback) {
154672
154691
  if (oAuthRequired) {
154673
154692
  if (system == null ? void 0 : system.serviceKeys) {
@@ -154695,7 +154714,6 @@ var require_proxy2 = __commonJS({
154695
154714
  proxyOptions.auth = `${system.username}:${system.password}`;
154696
154715
  }
154697
154716
  }
154698
- exports2.enhanceConfigForSystem = enhanceConfigForSystem;
154699
154717
  async function generateProxyMiddlewareOptions(backend, options2 = {}, logger3 = new logger_1.ToolsLogger()) {
154700
154718
  const proxyOptions = {
154701
154719
  headers: {},
@@ -154766,11 +154784,9 @@ ${JSON.stringify(backend, null, 2)}`);
154766
154784
  logger3.info(`Backend proxy created for ${proxyOptions.target} ${backend.path ? backend.path : ""}`);
154767
154785
  return proxyOptions;
154768
154786
  }
154769
- exports2.generateProxyMiddlewareOptions = generateProxyMiddlewareOptions;
154770
154787
  async function createProxy2(backend, options2, logger3) {
154771
154788
  return (0, http_proxy_middleware_1.createProxyMiddleware)(await generateProxyMiddlewareOptions(backend, options2, logger3));
154772
154789
  }
154773
- exports2.createProxy = createProxy2;
154774
154790
  }
154775
154791
  });
154776
154792