@sap/ux-ui5-tooling 1.9.0 → 1.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js CHANGED
@@ -23386,9 +23386,13 @@ var require_controls = __commonJS({
23386
23386
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
23387
23387
  if (k2 === void 0)
23388
23388
  k2 = k;
23389
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
23390
- return m[k];
23391
- } });
23389
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23390
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
23391
+ desc = { enumerable: true, get: function() {
23392
+ return m[k];
23393
+ } };
23394
+ }
23395
+ Object.defineProperty(o, k2, desc);
23392
23396
  } : function(o, m, k, k2) {
23393
23397
  if (k2 === void 0)
23394
23398
  k2 = k;
@@ -23786,9 +23790,13 @@ var require_pages = __commonJS({
23786
23790
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
23787
23791
  if (k2 === void 0)
23788
23792
  k2 = k;
23789
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
23790
- return m[k];
23791
- } });
23793
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23794
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
23795
+ desc = { enumerable: true, get: function() {
23796
+ return m[k];
23797
+ } };
23798
+ }
23799
+ Object.defineProperty(o, k2, desc);
23792
23800
  } : function(o, m, k, k2) {
23793
23801
  if (k2 === void 0)
23794
23802
  k2 = k;
@@ -23880,9 +23888,13 @@ var require_manifest = __commonJS({
23880
23888
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
23881
23889
  if (k2 === void 0)
23882
23890
  k2 = k;
23883
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
23884
- return m[k];
23885
- } });
23891
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23892
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
23893
+ desc = { enumerable: true, get: function() {
23894
+ return m[k];
23895
+ } };
23896
+ }
23897
+ Object.defineProperty(o, k2, desc);
23886
23898
  } : function(o, m, k, k2) {
23887
23899
  if (k2 === void 0)
23888
23900
  k2 = k;
@@ -23921,9 +23933,13 @@ var require_webapp = __commonJS({
23921
23933
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
23922
23934
  if (k2 === void 0)
23923
23935
  k2 = k;
23924
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
23925
- return m[k];
23926
- } });
23936
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23937
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
23938
+ desc = { enumerable: true, get: function() {
23939
+ return m[k];
23940
+ } };
23941
+ }
23942
+ Object.defineProperty(o, k2, desc);
23927
23943
  } : function(o, m, k, k2) {
23928
23944
  if (k2 === void 0)
23929
23945
  k2 = k;
@@ -23997,7 +24013,7 @@ var require_constants2 = __commonJS({
23997
24013
  FioriToolsSettings2["migrationSettingsFile"] = "migrationSettings.json";
23998
24014
  })(FioriToolsSettings = exports2.FioriToolsSettings || (exports2.FioriToolsSettings = {}));
23999
24015
  var getFioriToolsDirectory = () => {
24000
- return path_1.join(os_1.homedir(), FioriToolsSettings.dir);
24016
+ return (0, path_1.join)((0, os_1.homedir)(), FioriToolsSettings.dir);
24001
24017
  };
24002
24018
  exports2.getFioriToolsDirectory = getFioriToolsDirectory;
24003
24019
  var SchemeName;
@@ -24048,9 +24064,13 @@ var require_dist5 = __commonJS({
24048
24064
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
24049
24065
  if (k2 === void 0)
24050
24066
  k2 = k;
24051
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
24052
- return m[k];
24053
- } });
24067
+ var desc = Object.getOwnPropertyDescriptor(m, k);
24068
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24069
+ desc = { enumerable: true, get: function() {
24070
+ return m[k];
24071
+ } };
24072
+ }
24073
+ Object.defineProperty(o, k2, desc);
24054
24074
  } : function(o, m, k, k2) {
24055
24075
  if (k2 === void 0)
24056
24076
  k2 = k;
@@ -24088,7 +24108,7 @@ var require_commandRunner = __commonJS({
24088
24108
  run(cmd, args = []) {
24089
24109
  return new Promise((resolve2, reject2) => {
24090
24110
  const stack = [];
24091
- const spawnedCmd = child_process_1.spawn(cmd, args, {});
24111
+ const spawnedCmd = (0, child_process_1.spawn)(cmd, args, {});
24092
24112
  spawnedCmd.stdout.setEncoding("utf8");
24093
24113
  let response;
24094
24114
  spawnedCmd.stdout.on("data", (data2) => {
@@ -30892,7 +30912,7 @@ var require_utils3 = __commonJS({
30892
30912
  var debug_1 = require_src6();
30893
30913
  exports2.STORE_NAMESPACE = "ft:store";
30894
30914
  exports2.MIGRATION_NAMESPACE = exports2.STORE_NAMESPACE + ":migrate";
30895
- var newDebugLogger = (namespace = exports2.STORE_NAMESPACE) => debug_1.debug(namespace);
30915
+ var newDebugLogger = (namespace = exports2.STORE_NAMESPACE) => (0, debug_1.debug)(namespace);
30896
30916
  exports2.newDebugLogger = newDebugLogger;
30897
30917
  var enableDebugLogger = (namespace) => debug_1.debug.enable(namespace);
30898
30918
  exports2.enableDebugLogger = enableDebugLogger;
@@ -30906,7 +30926,7 @@ var require_utils3 = __commonJS({
30906
30926
  function getExtendedLogger(l) {
30907
30927
  return {
30908
30928
  ...l,
30909
- debug: exports2.newDebugLogger()
30929
+ debug: (0, exports2.newDebugLogger)()
30910
30930
  };
30911
30931
  }
30912
30932
  exports2.getExtendedLogger = getExtendedLogger;
@@ -31377,9 +31397,13 @@ var require_dist6 = __commonJS({
31377
31397
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
31378
31398
  if (k2 === void 0)
31379
31399
  k2 = k;
31380
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
31381
- return m[k];
31382
- } });
31400
+ var desc = Object.getOwnPropertyDescriptor(m, k);
31401
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
31402
+ desc = { enumerable: true, get: function() {
31403
+ return m[k];
31404
+ } };
31405
+ }
31406
+ Object.defineProperty(o, k2, desc);
31383
31407
  } : function(o, m, k, k2) {
31384
31408
  if (k2 === void 0)
31385
31409
  k2 = k;
@@ -31416,7 +31440,7 @@ var require_dist6 = __commonJS({
31416
31440
  FioriToolsSettings2["dir"] = ".fioritools";
31417
31441
  })(FioriToolsSettings = exports2.FioriToolsSettings || (exports2.FioriToolsSettings = {}));
31418
31442
  var getFioriToolsDirectory = () => {
31419
- return path_1.default.join(os_1.homedir(), FioriToolsSettings.dir);
31443
+ return path_1.default.join((0, os_1.homedir)(), FioriToolsSettings.dir);
31420
31444
  };
31421
31445
  exports2.getFioriToolsDirectory = getFioriToolsDirectory;
31422
31446
  function filterReferenceUri(metadata) {
@@ -31433,9 +31457,13 @@ var require_filesystem = __commonJS({
31433
31457
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
31434
31458
  if (k2 === void 0)
31435
31459
  k2 = k;
31436
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
31437
- return m[k];
31438
- } });
31460
+ var desc = Object.getOwnPropertyDescriptor(m, k);
31461
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
31462
+ desc = { enumerable: true, get: function() {
31463
+ return m[k];
31464
+ } };
31465
+ }
31466
+ Object.defineProperty(o, k2, desc);
31439
31467
  } : function(o, m, k, k2) {
31440
31468
  if (k2 === void 0)
31441
31469
  k2 = k;
@@ -31570,7 +31598,7 @@ var require_filesystem = __commonJS({
31570
31598
  var _a2, _b;
31571
31599
  let rawContents;
31572
31600
  try {
31573
- rawContents = (_a2 = fs_1.readFileSync(path_1.join(exports2.basedir(), `${entityName}.json`))) == null ? void 0 : _a2.toString().trim();
31601
+ rawContents = (_a2 = (0, fs_1.readFileSync)((0, path_1.join)((0, exports2.basedir)(), `${entityName}.json`))) == null ? void 0 : _a2.toString().trim();
31574
31602
  } catch (e) {
31575
31603
  this.logger.debug(e.message);
31576
31604
  return { error: e };
@@ -31587,16 +31615,16 @@ var require_filesystem = __commonJS({
31587
31615
  return { entities };
31588
31616
  }
31589
31617
  writeToFile(entityName, entities) {
31590
- const base = exports2.basedir();
31618
+ const base = (0, exports2.basedir)();
31591
31619
  const data2 = JSON.stringify({ [entityName]: entities }, null, 2);
31592
31620
  const filename = getEntityFileName(entityName);
31593
31621
  try {
31594
- fs_1.writeFileSync(path_1.default.join(base, filename), data2);
31622
+ (0, fs_1.writeFileSync)(path_1.default.join(base, filename), data2);
31595
31623
  } catch (e) {
31596
31624
  if (e.code === "ENOENT") {
31597
31625
  this.logger.debug(`Base directory [${base}] does not exist, trying to create it`);
31598
- fs_1.mkdirSync(base, { recursive: true });
31599
- fs_1.writeFileSync(path_1.default.join(base, filename), data2);
31626
+ (0, fs_1.mkdirSync)(base, { recursive: true });
31627
+ (0, fs_1.writeFileSync)(path_1.default.join(base, filename), data2);
31600
31628
  } else {
31601
31629
  throw e;
31602
31630
  }
@@ -31606,15 +31634,15 @@ var require_filesystem = __commonJS({
31606
31634
  exports2.FilesystemStore = FilesystemStore;
31607
31635
  function toPersistenceName(s) {
31608
31636
  const t = s == null ? void 0 : s.trim().toLowerCase();
31609
- return t && pluralize_1.plural(t);
31637
+ return t && (0, pluralize_1.plural)(t);
31610
31638
  }
31611
31639
  function getEntityFileName(entityName) {
31612
31640
  return toPersistenceName(entityName) + ".json";
31613
31641
  }
31614
31642
  function getFilesystemWatcherFor(entityName, callback) {
31615
- const watchPath = path_1.default.join(exports2.basedir(), getEntityFileName(entityName));
31616
- if (fs_1.existsSync(watchPath)) {
31617
- return fs_1.watch(watchPath, void 0, () => {
31643
+ const watchPath = path_1.default.join((0, exports2.basedir)(), getEntityFileName(entityName));
31644
+ if ((0, fs_1.existsSync)(watchPath)) {
31645
+ return (0, fs_1.watch)(watchPath, void 0, () => {
31618
31646
  callback(entityName);
31619
31647
  });
31620
31648
  } else {
@@ -31733,9 +31761,13 @@ var require_secure_store = __commonJS({
31733
31761
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
31734
31762
  if (k2 === void 0)
31735
31763
  k2 = k;
31736
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
31737
- return m[k];
31738
- } });
31764
+ var desc = Object.getOwnPropertyDescriptor(m, k);
31765
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
31766
+ desc = { enumerable: true, get: function() {
31767
+ return m[k];
31768
+ } };
31769
+ }
31770
+ Object.defineProperty(o, k2, desc);
31739
31771
  } : function(o, m, k, k2) {
31740
31772
  if (k2 === void 0)
31741
31773
  k2 = k;
@@ -31782,7 +31814,7 @@ var require_secure_store = __commonJS({
31782
31814
  }
31783
31815
  }
31784
31816
  var getSecureStore = (log7) => {
31785
- if (ux_common_utils_1.isAppStudio() || process.env.UX_TOOLS_DISABLE_KEYSTORE) {
31817
+ if ((0, ux_common_utils_1.isAppStudio)() || process.env.UX_TOOLS_DISABLE_KEYSTORE) {
31786
31818
  return new dummy_store_1.DummyStore(log7);
31787
31819
  } else {
31788
31820
  const keytar = getKeytar(log7);
@@ -32569,7 +32601,7 @@ var require_hybrid = __commonJS({
32569
32601
  constructor(logger) {
32570
32602
  this.logger = logger;
32571
32603
  this.filesystem = new filesystem_1.FilesystemStore(this.logger);
32572
- this.secureStore = secure_store_1.getSecureStore(this.logger);
32604
+ this.secureStore = (0, secure_store_1.getSecureStore)(this.logger);
32573
32605
  }
32574
32606
  async read({ entityName, id }) {
32575
32607
  const serialized = await this.filesystem.read({ entityName, id });
@@ -32604,8 +32636,8 @@ var require_hybrid = __commonJS({
32604
32636
  return result2;
32605
32637
  }
32606
32638
  async write({ entityName, id, entity }) {
32607
- const serializableProps = decorators_1.getSerializableProperties(entity);
32608
- const sensitiveProps = decorators_1.getSensitiveDataProperties(entity);
32639
+ const serializableProps = (0, decorators_1.getSerializableProperties)(entity);
32640
+ const sensitiveProps = (0, decorators_1.getSensitiveDataProperties)(entity);
32609
32641
  if (serializableProps.length > 0 && sensitiveProps.length > 0) {
32610
32642
  for (let i = 0; i < serializableProps.length; i = i + 1) {
32611
32643
  if (sensitiveProps.indexOf(serializableProps[i]) !== -1) {
@@ -32614,14 +32646,14 @@ var require_hybrid = __commonJS({
32614
32646
  }
32615
32647
  }
32616
32648
  }
32617
- const serializable = utils_1.pick(entity, ...serializableProps);
32649
+ const serializable = (0, utils_1.pick)(entity, ...serializableProps);
32618
32650
  if (serializable) {
32619
32651
  this.logger.debug("hybrid/write - writing serializable properties: %O", serializable);
32620
32652
  await this.filesystem.write({ entityName, id, entity: serializable });
32621
32653
  } else {
32622
32654
  this.logger.debug("hybrid/write - no serializable properties found in %O", serializable);
32623
32655
  }
32624
- const sensitiveData = utils_1.pick(entity, ...sensitiveProps);
32656
+ const sensitiveData = (0, utils_1.pick)(entity, ...sensitiveProps);
32625
32657
  if (sensitiveData) {
32626
32658
  this.logger.debug(`hybrid/write - writing sensitive properties to secure store. ID: [${id}]`);
32627
32659
  await this.secureStore.save(getFullyQualifiedServiceName(entityName), id, sensitiveData);
@@ -32667,13 +32699,13 @@ var require_backend_system = __commonJS({
32667
32699
  AuthenticationType2["OAuth2ClientCredential"] = "oauth2ClientCredential";
32668
32700
  })(AuthenticationType = exports2.AuthenticationType || (exports2.AuthenticationType = {}));
32669
32701
  var BackendSystemKey = class {
32702
+ static from(system) {
32703
+ return new BackendSystemKey({ url: system.url, client: system.client });
32704
+ }
32670
32705
  constructor({ url, client }) {
32671
32706
  this.url = url.trim().replace(/\/$/, "");
32672
32707
  this.client = client == null ? void 0 : client.trim();
32673
32708
  }
32674
- static from(system) {
32675
- return new BackendSystemKey({ url: system.url, client: system.client });
32676
- }
32677
32709
  getId() {
32678
32710
  return this.url + `${this.client ? "/" + this.client : ""}`;
32679
32711
  }
@@ -32930,16 +32962,16 @@ var require_system_migration2 = __commonJS({
32930
32962
  this.logger.debug(`Migrating sytem ID: [${systemId}]`);
32931
32963
  const refreshToken = await this.getRefreshTokenFromOldStore(oldSystem);
32932
32964
  if (refreshToken) {
32933
- this.logger.info(i18n_1.text("info.foundRefreshToken", { systemId }));
32965
+ this.logger.info((0, i18n_1.text)("info.foundRefreshToken", { systemId }));
32934
32966
  }
32935
32967
  await this.saveBackendSystem(new backend_system_1.BackendSystem({ ...oldSystem, refreshToken }));
32936
32968
  await this.secureStore.delete(contants_1.ServiceName.OldSystemService, systemId);
32937
32969
  if (refreshToken) {
32938
32970
  await this.deleteOldRefreshToken(oldSystem, systemId);
32939
- this.logger.info(i18n_1.text("info.deletingRefreshTokenFromOldStore", { systemId }));
32971
+ this.logger.info((0, i18n_1.text)("info.deletingRefreshTokenFromOldStore", { systemId }));
32940
32972
  }
32941
32973
  } else {
32942
- this.logger.info(i18n_1.text("error.systemAlreadyExistsInHybridStore", { systemId }));
32974
+ this.logger.info((0, i18n_1.text)("error.systemAlreadyExistsInHybridStore", { systemId }));
32943
32975
  }
32944
32976
  }
32945
32977
  }
@@ -32949,7 +32981,7 @@ var require_system_migration2 = __commonJS({
32949
32981
  const existingSystem = existingSystems[systemId];
32950
32982
  const refreshToken = await this.getRefreshTokenFromOldStore(existingSystem);
32951
32983
  if (refreshToken) {
32952
- this.logger.info(i18n_1.text("info.foundRefreshToken", { systemId }));
32984
+ this.logger.info((0, i18n_1.text)("info.foundRefreshToken", { systemId }));
32953
32985
  await this.updateRefreshTokenInStoredSystem(existingSystem, refreshToken, systemId);
32954
32986
  await this.deleteOldRefreshToken(existingSystem, systemId);
32955
32987
  }
@@ -32960,13 +32992,13 @@ var require_system_migration2 = __commonJS({
32960
32992
  for (const systemId of Object.keys(existingSystems)) {
32961
32993
  const existingSystem = existingSystems[systemId];
32962
32994
  if (!existingSystem.authenticationType) {
32963
- this.logger.info(i18n_1.text("info.tryingToUpdateAuthType", { systemId }));
32995
+ this.logger.info((0, i18n_1.text)("info.tryingToUpdateAuthType", { systemId }));
32964
32996
  const authenticationType = this.guessAuthType(existingSystem);
32965
32997
  if (authenticationType) {
32966
- this.logger.info(i18n_1.text("info.authTypeDetermined", { authenticationType, systemId }));
32998
+ this.logger.info((0, i18n_1.text)("info.authTypeDetermined", { authenticationType, systemId }));
32967
32999
  await this.saveBackendSystem(new backend_system_1.BackendSystem({ ...existingSystem, authenticationType }));
32968
33000
  } else {
32969
- this.logger.info(i18n_1.text("info.authTypeNotDetermined", { systemId }));
33001
+ this.logger.info((0, i18n_1.text)("info.authTypeNotDetermined", { systemId }));
32970
33002
  }
32971
33003
  }
32972
33004
  }
@@ -32991,18 +33023,18 @@ var require_system_migration2 = __commonJS({
32991
33023
  }
32992
33024
  async deleteOldRefreshToken(system, systemId) {
32993
33025
  var _a2;
32994
- this.logger.info(i18n_1.text("info.deletingRefreshTokenFromOldStore", { systemId }));
33026
+ this.logger.info((0, i18n_1.text)("info.deletingRefreshTokenFromOldStore", { systemId }));
32995
33027
  try {
32996
33028
  const host = (_a2 = new URL(system.url)) == null ? void 0 : _a2.host;
32997
33029
  await this.secureStore.delete(contants_1.ServiceName.OldRefreshTokenService, host);
32998
33030
  } catch (e) {
32999
- this.logger.info(i18n_1.text("error.couldNotDeleteRefreshToken", { url: system.url }));
33031
+ this.logger.info((0, i18n_1.text)("error.couldNotDeleteRefreshToken", { url: system.url }));
33000
33032
  this.logger.info(e.message);
33001
33033
  }
33002
33034
  }
33003
33035
  async updateRefreshTokenInStoredSystem(system, refreshToken, systemId) {
33004
33036
  if (system.refreshToken !== refreshToken) {
33005
- this.logger.info(i18n_1.text("info.updatingRefreshTokenInNewStore", { systemId }));
33037
+ this.logger.info((0, i18n_1.text)("info.updatingRefreshTokenInNewStore", { systemId }));
33006
33038
  await this.saveBackendSystem(new backend_system_1.BackendSystem({ ...system, refreshToken }));
33007
33039
  }
33008
33040
  }
@@ -33025,7 +33057,7 @@ var require_system_migration2 = __commonJS({
33025
33057
  const systemMigrationStatusDataProvider = new system_migration_1.SystemMigrationStatusDataProvider(logger);
33026
33058
  const systemMigrationStatus = await systemMigrationStatusDataProvider.read(new system_migration_status_1.SystemMigrationStatusKey()) || { migrationDone: false, authTypeMigrated: false, migrationLogs: [] };
33027
33059
  const migrationLogger = createLogInterceptor(logger, systemMigrationStatus.migrationLogs);
33028
- const secureStore = secure_store_1.getSecureStore(migrationLogger);
33060
+ const secureStore = (0, secure_store_1.getSecureStore)(migrationLogger);
33029
33061
  const migration = new Migration({
33030
33062
  logger: migrationLogger,
33031
33063
  systemMigrationStatus,
@@ -33040,7 +33072,7 @@ var require_system_migration2 = __commonJS({
33040
33072
  }));
33041
33073
  }
33042
33074
  } catch (e) {
33043
- logger.warn(i18n_1.text("error.systemMigrationFailed"));
33075
+ logger.warn((0, i18n_1.text)("error.systemMigrationFailed"));
33044
33076
  logger.debug(e.message);
33045
33077
  }
33046
33078
  }
@@ -33061,11 +33093,11 @@ var require_system_migration2 = __commonJS({
33061
33093
  };
33062
33094
  }
33063
33095
  function getMigrationLogger(migrationLogs) {
33064
- const migrationLogger = utils_1.newDebugLogger(utils_1.MIGRATION_NAMESPACE);
33096
+ const migrationLogger = (0, utils_1.newDebugLogger)(utils_1.MIGRATION_NAMESPACE);
33065
33097
  migrationLogger.log = (args) => {
33066
33098
  migrationLogs.push(args == null ? void 0 : args.toString());
33067
33099
  };
33068
- utils_1.enableDebugLogger(utils_1.MIGRATION_NAMESPACE);
33100
+ (0, utils_1.enableDebugLogger)(utils_1.MIGRATION_NAMESPACE);
33069
33101
  return migrationLogger;
33070
33102
  }
33071
33103
  }
@@ -33085,7 +33117,7 @@ var require_backend_system3 = __commonJS({
33085
33117
  var SystemService = class {
33086
33118
  constructor(logger) {
33087
33119
  this.migrationDone = false;
33088
- this.logger = utils_1.getExtendedLogger(logger);
33120
+ this.logger = (0, utils_1.getExtendedLogger)(logger);
33089
33121
  this.dataProvider = new backend_system_1.SystemDataProvider(this.logger);
33090
33122
  }
33091
33123
  async partialUpdate(key, entity) {
@@ -33104,18 +33136,18 @@ var require_backend_system3 = __commonJS({
33104
33136
  async readOrThrow(key) {
33105
33137
  const existingSystem = await this.read(key);
33106
33138
  if (!existingSystem) {
33107
- throw new Error(i18n_1.text("error.systemDoesNotExist", { system: key }));
33139
+ throw new Error((0, i18n_1.text)("error.systemDoesNotExist", { system: key }));
33108
33140
  }
33109
33141
  return existingSystem;
33110
33142
  }
33111
33143
  validatePartialUpdateInput(entity) {
33112
33144
  if (!entity || !Object.keys(entity).length) {
33113
- throw new Error(i18n_1.text("error.noPropertiesSpecified"));
33145
+ throw new Error((0, i18n_1.text)("error.noPropertiesSpecified"));
33114
33146
  }
33115
33147
  }
33116
33148
  async ensureMigrationDone() {
33117
33149
  if (!this.migrationDone) {
33118
- await system_migration_1.migrate(this.logger, this.dataProvider);
33150
+ await (0, system_migration_1.migrate)(this.logger, this.dataProvider);
33119
33151
  this.migrationDone = true;
33120
33152
  }
33121
33153
  }
@@ -33177,9 +33209,13 @@ var require_dist7 = __commonJS({
33177
33209
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
33178
33210
  if (k2 === void 0)
33179
33211
  k2 = k;
33180
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
33181
- return m[k];
33182
- } });
33212
+ var desc = Object.getOwnPropertyDescriptor(m, k);
33213
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
33214
+ desc = { enumerable: true, get: function() {
33215
+ return m[k];
33216
+ } };
33217
+ }
33218
+ Object.defineProperty(o, k2, desc);
33183
33219
  } : function(o, m, k, k2) {
33184
33220
  if (k2 === void 0)
33185
33221
  k2 = k;
@@ -33202,12 +33238,12 @@ var require_dist7 = __commonJS({
33202
33238
  system: backend_system_1.getInstance
33203
33239
  };
33204
33240
  async function getService({ logger = console, entityName }) {
33205
- await i18n_1.initI18n();
33241
+ await (0, i18n_1.initI18n)();
33206
33242
  const factory = services[entityName];
33207
33243
  if (factory) {
33208
33244
  return factory(logger);
33209
33245
  } else {
33210
- throw new Error(i18n_1.text("error.unsupportedEntity", { entityName }));
33246
+ throw new Error((0, i18n_1.text)("error.unsupportedEntity", { entityName }));
33211
33247
  }
33212
33248
  }
33213
33249
  exports2.getService = getService;
@@ -36209,9 +36245,9 @@ var require_error2 = __commonJS({
36209
36245
  }
36210
36246
  });
36211
36247
 
36212
- // ../lib/odata-client/node_modules/qs/lib/utils.js
36248
+ // ../../node_modules/qs/lib/utils.js
36213
36249
  var require_utils5 = __commonJS({
36214
- "../lib/odata-client/node_modules/qs/lib/utils.js"(exports2, module2) {
36250
+ "../../node_modules/qs/lib/utils.js"(exports2, module2) {
36215
36251
  "use strict";
36216
36252
  var has = Object.prototype.hasOwnProperty;
36217
36253
  var isArray = Array.isArray;
@@ -36391,9 +36427,9 @@ var require_utils5 = __commonJS({
36391
36427
  }
36392
36428
  });
36393
36429
 
36394
- // ../lib/odata-client/node_modules/qs/lib/formats.js
36430
+ // ../../node_modules/qs/lib/formats.js
36395
36431
  var require_formats = __commonJS({
36396
- "../lib/odata-client/node_modules/qs/lib/formats.js"(exports2, module2) {
36432
+ "../../node_modules/qs/lib/formats.js"(exports2, module2) {
36397
36433
  "use strict";
36398
36434
  var replace = String.prototype.replace;
36399
36435
  var percentTwenties = /%20/g;
@@ -36416,9 +36452,9 @@ var require_formats = __commonJS({
36416
36452
  }
36417
36453
  });
36418
36454
 
36419
- // ../lib/odata-client/node_modules/qs/lib/stringify.js
36455
+ // ../../node_modules/qs/lib/stringify.js
36420
36456
  var require_stringify2 = __commonJS({
36421
- "../lib/odata-client/node_modules/qs/lib/stringify.js"(exports2, module2) {
36457
+ "../../node_modules/qs/lib/stringify.js"(exports2, module2) {
36422
36458
  "use strict";
36423
36459
  var utils = require_utils5();
36424
36460
  var formats = require_formats();
@@ -36608,9 +36644,9 @@ var require_stringify2 = __commonJS({
36608
36644
  }
36609
36645
  });
36610
36646
 
36611
- // ../lib/odata-client/node_modules/qs/lib/parse.js
36647
+ // ../../node_modules/qs/lib/parse.js
36612
36648
  var require_parse3 = __commonJS({
36613
- "../lib/odata-client/node_modules/qs/lib/parse.js"(exports2, module2) {
36649
+ "../../node_modules/qs/lib/parse.js"(exports2, module2) {
36614
36650
  "use strict";
36615
36651
  var utils = require_utils5();
36616
36652
  var has = Object.prototype.hasOwnProperty;
@@ -36811,9 +36847,9 @@ var require_parse3 = __commonJS({
36811
36847
  }
36812
36848
  });
36813
36849
 
36814
- // ../lib/odata-client/node_modules/qs/lib/index.js
36850
+ // ../../node_modules/qs/lib/index.js
36815
36851
  var require_lib = __commonJS({
36816
- "../lib/odata-client/node_modules/qs/lib/index.js"(exports2, module2) {
36852
+ "../../node_modules/qs/lib/index.js"(exports2, module2) {
36817
36853
  "use strict";
36818
36854
  var stringify2 = require_stringify2();
36819
36855
  var parse2 = require_parse3();
@@ -36878,17 +36914,17 @@ var require_uaaOauth = __commonJS({
36878
36914
  Redirect.path = "/oauth/client/redirect";
36879
36915
  function getAuthCode({ uaa, log: log7, timeout: timeout2 = utils_1.timeoutMs }) {
36880
36916
  return new Promise((resolve2, reject2) => {
36881
- const app = express_1.default();
36917
+ const app = (0, express_1.default)();
36882
36918
  const server = http_1.default.createServer(app);
36883
36919
  let redirect;
36884
36920
  const handleTimeout = () => {
36885
36921
  server.close();
36886
- reject2(new error_1.UAATimeoutError(`Timeout. Did not get a response within ${utils_1.timeString(timeout2)}`));
36922
+ reject2(new error_1.UAATimeoutError(`Timeout. Did not get a response within ${(0, utils_1.timeString)(timeout2)}`));
36887
36923
  };
36888
36924
  const timer = setTimeout(handleTimeout, timeout2);
36889
36925
  app.get(Redirect.path, (req, res) => {
36890
36926
  res.set("Content-Type", "text/html");
36891
- res.send(Buffer.from(static_1.redirectSuccessHtml(uaa.logoutUrl, uaa.systemId)));
36927
+ res.send(Buffer.from((0, static_1.redirectSuccessHtml)(uaa.logoutUrl, uaa.systemId)));
36892
36928
  log7.info("Got authCode");
36893
36929
  resolve2({ authCode: req.query.code + "", redirect });
36894
36930
  if (timer) {
@@ -37130,7 +37166,7 @@ var require_uaaOauth = __commonJS({
37130
37166
  if (credentials.serviceKeysContents) {
37131
37167
  return typeof credentials.serviceKeyContents === "string" ? JSON.parse(credentials.serviceKeysContents) : credentials.serviceKeysContents;
37132
37168
  }
37133
- return JSON.parse(fs_1.readFileSync(credentials.serviceKeys, "utf-8"));
37169
+ return JSON.parse((0, fs_1.readFileSync)(credentials.serviceKeys, "utf-8"));
37134
37170
  } catch (e) {
37135
37171
  throw new Error("Error parsing service keys");
37136
37172
  }
@@ -37243,11 +37279,11 @@ var require_connectWithReentranceTicket = __commonJS({
37243
37279
  var ADT_REENTRANCE_ENDPOINT = "/sap/bc/adt/core/http/reentranceticket";
37244
37280
  async function getReentranceTicket({ backendUrl, logger, timeout: timeout2 = utils_1.timeoutMs }) {
37245
37281
  return new Promise((resolve2, reject2) => {
37246
- const app = express_1.default();
37282
+ const app = (0, express_1.default)();
37247
37283
  const server = http_1.default.createServer(app);
37248
37284
  const handleTimeout = () => {
37249
37285
  server.close();
37250
- reject2(new error_1.TimeoutError(`Timeout. Did not get a response within ${utils_1.timeString(timeout2)}`));
37286
+ reject2(new error_1.TimeoutError(`Timeout. Did not get a response within ${(0, utils_1.timeString)(timeout2)}`));
37251
37287
  };
37252
37288
  class Redirect {
37253
37289
  static url(port) {
@@ -37261,7 +37297,7 @@ var require_connectWithReentranceTicket = __commonJS({
37261
37297
  const reentranceTicket = (_a2 = req.query["reentrance-ticket"]) == null ? void 0 : _a2.toString();
37262
37298
  logger.info("Got reentrance ticket: " + reentranceTicket);
37263
37299
  res.set("Content-Type", "text/html");
37264
- res.send(Buffer.from(static_1.redirectSuccessHtml(ABAPSystem.logoffUrl(backendUrl))));
37300
+ res.send(Buffer.from((0, static_1.redirectSuccessHtml)(ABAPSystem.logoffUrl(backendUrl))));
37265
37301
  if (timer) {
37266
37302
  clearTimeout(timer);
37267
37303
  }
@@ -51694,8 +51730,8 @@ var require_destination = __commonJS({
51694
51730
  async function fetchDestinations() {
51695
51731
  var _a2;
51696
51732
  const destinations = {};
51697
- await axios_1.default.get(ux_common_utils_1.getAppStudioProxyURL() + "/reload");
51698
- const response = await axios_1.default.get(ux_common_utils_1.getAppStudioBaseURL() + "/api/listDestinations");
51733
+ await axios_1.default.get((0, ux_common_utils_1.getAppStudioProxyURL)() + "/reload");
51734
+ const response = await axios_1.default.get((0, ux_common_utils_1.getAppStudioBaseURL)() + "/api/listDestinations");
51699
51735
  (_a2 = response == null ? void 0 : response.data) == null ? void 0 : _a2.forEach((destination) => {
51700
51736
  if (destination.WebIDEEnabled) {
51701
51737
  destinations[destination.Name] = destination;
@@ -51706,7 +51742,7 @@ var require_destination = __commonJS({
51706
51742
  async function getAuthHeaderForInstanceBasedDest(destinationInstance) {
51707
51743
  var _a2, _b;
51708
51744
  try {
51709
- const credentials = (await cf_tools_1.apiGetInstanceCredentials(destinationInstance)).credentials;
51745
+ const credentials = (await (0, cf_tools_1.apiGetInstanceCredentials)(destinationInstance)).credentials;
51710
51746
  const clientId = ((_a2 = credentials.uaa) == null ? void 0 : _a2.clientid) || credentials.clientid;
51711
51747
  const clientSecret = ((_b = credentials.uaa) == null ? void 0 : _b.clientsecret) || credentials.clientsecret;
51712
51748
  return Buffer.from(`${encodeURIComponent(clientId)}:${encodeURIComponent(clientSecret)}`).toString("base64");
@@ -51715,7 +51751,7 @@ var require_destination = __commonJS({
51715
51751
  }
51716
51752
  }
51717
51753
  async function listDestinations() {
51718
- if (ux_common_utils_1.isAppStudio()) {
51754
+ if ((0, ux_common_utils_1.isAppStudio)()) {
51719
51755
  return fetchDestinations();
51720
51756
  } else {
51721
51757
  return {};
@@ -51729,7 +51765,7 @@ var require_destination = __commonJS({
51729
51765
  systemConfig.url = `https://${destinationName}${DEST}`;
51730
51766
  systemConfig.basDestinationInstanceCred = await getAuthHeaderForInstanceBasedDest(destinationInstance);
51731
51767
  } else {
51732
- systemConfig.url = ux_common_utils_1.getAppStudioBaseURL();
51768
+ systemConfig.url = (0, ux_common_utils_1.getAppStudioBaseURL)();
51733
51769
  systemConfig.service = `/destinations/${destinationName != null ? destinationName : systemConfig.destination}${(_b = (_a2 = systemConfig.service) == null ? void 0 : _a2.replace(/^\/?/, "/")) != null ? _b : ""}`;
51734
51770
  }
51735
51771
  delete systemConfig.scp;
@@ -51737,7 +51773,7 @@ var require_destination = __commonJS({
51737
51773
  }
51738
51774
  exports2.replaceUrlForAppStudio = replaceUrlForAppStudio;
51739
51775
  async function updateSystemConfig(system) {
51740
- if (ux_common_utils_1.isAppStudio() && system.destination) {
51776
+ if ((0, ux_common_utils_1.isAppStudio)() && system.destination) {
51741
51777
  if (system.destinationInstance) {
51742
51778
  await replaceUrlForAppStudio(system, system.destination, system.destinationInstance);
51743
51779
  } else {
@@ -51745,7 +51781,7 @@ var require_destination = __commonJS({
51745
51781
  if (destinations[system.destination]) {
51746
51782
  const dest = destinations[system.destination];
51747
51783
  system.destinationAuthType = dest.Authentication;
51748
- if (config_1.hasFullUrlDestAttribute({
51784
+ if ((0, config_1.hasFullUrlDestAttribute)({
51749
51785
  ["WebIDEAdditionalData"]: dest["WebIDEAdditionalData"]
51750
51786
  })) {
51751
51787
  system.isDestinationFullUrl = true;
@@ -51770,9 +51806,13 @@ var require_connection = __commonJS({
51770
51806
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
51771
51807
  if (k2 === void 0)
51772
51808
  k2 = k;
51773
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
51774
- return m[k];
51775
- } });
51809
+ var desc = Object.getOwnPropertyDescriptor(m, k);
51810
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
51811
+ desc = { enumerable: true, get: function() {
51812
+ return m[k];
51813
+ } };
51814
+ }
51815
+ Object.defineProperty(o, k2, desc);
51776
51816
  } : function(o, m, k, k2) {
51777
51817
  if (k2 === void 0)
51778
51818
  k2 = k;
@@ -51833,7 +51873,7 @@ var require_connection = __commonJS({
51833
51873
  if (target.client) {
51834
51874
  config2.params[exports2.SAP_CLIENT] = target.client;
51835
51875
  }
51836
- const isTargetDestOnAppStudio = ux_common_utils_1.isAppStudio() && target.destination;
51876
+ const isTargetDestOnAppStudio = (0, ux_common_utils_1.isAppStudio)() && target.destination;
51837
51877
  if (isTargetDestOnAppStudio || disableSAML) {
51838
51878
  config2.params.saml2 = "disabled";
51839
51879
  }
@@ -51882,7 +51922,7 @@ var require_connection = __commonJS({
51882
51922
  if (contentTypeHeader) {
51883
51923
  return contentTypeHeader.toLowerCase();
51884
51924
  } else if (typeof responseData === "string") {
51885
- return (_b = (_a2 = detect_content_type_1.default(Buffer.from(responseData))) == null ? void 0 : _a2.toLowerCase()) != null ? _b : "";
51925
+ return (_b = (_a2 = (0, detect_content_type_1.default)(Buffer.from(responseData))) == null ? void 0 : _a2.toLowerCase()) != null ? _b : "";
51886
51926
  } else {
51887
51927
  return "";
51888
51928
  }
@@ -51893,11 +51933,11 @@ var require_connection = __commonJS({
51893
51933
  async function connect({ target, credentials, log: log7, autoAddTrailingSlash = true, timeout: timeout2, ignoreCertError = false, postConnectionCallback, disableSAML = false }) {
51894
51934
  const targetAuthType = target.authenticationType;
51895
51935
  if (targetAuthType === config_1.AuthenticationType.OAuth2RefreshToken) {
51896
- return uaaOauth_1.connectUsingUaa({ target, credentials, log: log7, postConnectionCallback });
51936
+ return (0, uaaOauth_1.connectUsingUaa)({ target, credentials, log: log7, postConnectionCallback });
51897
51937
  } else if (targetAuthType === config_1.AuthenticationType.OAuth2ClientCredential) {
51898
- return uaaOauth_1.connectUsingUaaClientCredential({ target, credentials, log: log7 });
51938
+ return (0, uaaOauth_1.connectUsingUaaClientCredential)({ target, credentials, log: log7 });
51899
51939
  } else if (targetAuthType === config_1.AuthenticationType.ReentranceTicket) {
51900
- return connectWithReentranceTicket_1.connectWithReentranceTicket({ target, logger: log7, ignoreCertError });
51940
+ return (0, connectWithReentranceTicket_1.connectWithReentranceTicket)({ target, logger: log7, ignoreCertError });
51901
51941
  } else {
51902
51942
  return connectWithBasicAuth({
51903
51943
  target,
@@ -51930,7 +51970,7 @@ var require_httpClient = __commonJS({
51930
51970
  var https_1 = __importDefault(require("https"));
51931
51971
  var url_1 = require("url");
51932
51972
  async function newHttpClient({ system, credentials, log: log7, existingConnection, autoAddTrailingSlash = true, timeout: timeout2, ignoreCertError, postConnectionCallback, disableSAML = false }) {
51933
- const connection = existingConnection || await connection_1.connect({
51973
+ const connection = existingConnection || await (0, connection_1.connect)({
51934
51974
  target: system,
51935
51975
  credentials,
51936
51976
  log: log7,
@@ -53910,7 +53950,7 @@ var require_message = __commonJS({
53910
53950
  exports2.printErrorDetails = exports2.prettyPrintError = exports2.prettyPrintMessage = void 0;
53911
53951
  var chalk_1 = __importDefault(require_source6());
53912
53952
  var debug_1 = __importDefault(require_src11());
53913
- var odataClientDebug = debug_1.default("ux-odata-client");
53953
+ var odataClientDebug = (0, debug_1.default)("ux-odata-client");
53914
53954
  function prettyPrintMessage(msg, log7, logData) {
53915
53955
  logLevel(msg.severity, msg.message, log7);
53916
53956
  if (msg.longtextUrl && logData.frontendUrl) {
@@ -55022,7 +55062,7 @@ var require_utils8 = __commonJS({
55022
55062
  exports2.guessAuthType = guessAuthType;
55023
55063
  async function getOnPremSystem(system, isImportedSystem = false) {
55024
55064
  var _a2, _b;
55025
- let sapSystem = await __1.getSapSystem(system.url, system.client);
55065
+ let sapSystem = await (0, __1.getSapSystem)(system.url, system.client);
55026
55066
  let isNewSapSystem = false;
55027
55067
  const creds = {
55028
55068
  username: (_a2 = system.credentials) == null ? void 0 : _a2.systemUsername,
@@ -55035,7 +55075,7 @@ var require_utils8 = __commonJS({
55035
55075
  sapSystem.setUserDisplayName(creds.username);
55036
55076
  }
55037
55077
  } else {
55038
- sapSystem = __1.newSapSystem(system.name || "", system.url, system.client, creds, true);
55078
+ sapSystem = (0, __1.newSapSystem)(system.name || "", system.url, system.client, creds, true);
55039
55079
  isNewSapSystem = true;
55040
55080
  }
55041
55081
  return { sapSystem, isNewSapSystem };
@@ -55045,13 +55085,13 @@ var require_utils8 = __commonJS({
55045
55085
  let sapSystem;
55046
55086
  let isNewSapSystem = false;
55047
55087
  if (system.url && system.credentials === savedSapSystemServiceKey) {
55048
- sapSystem = await __1.getSapSystem(system.url, system.client);
55088
+ sapSystem = await (0, __1.getSapSystem)(system.url, system.client);
55049
55089
  }
55050
55090
  if (sapSystem) {
55051
55091
  sapSystem.name = system.name || "";
55052
55092
  } else {
55053
- const newBTPSapSystem = __1.newSapSystemForSteampunk(system.name || "", system.credentials, true);
55054
- sapSystem = await __1.getSapSystem(newBTPSapSystem.url, newBTPSapSystem.client);
55093
+ const newBTPSapSystem = (0, __1.newSapSystemForSteampunk)(system.name || "", system.credentials, true);
55094
+ sapSystem = await (0, __1.getSapSystem)(newBTPSapSystem.url, newBTPSapSystem.client);
55055
55095
  if (!sapSystem) {
55056
55096
  isNewSapSystem = true;
55057
55097
  sapSystem = newBTPSapSystem;
@@ -55065,7 +55105,7 @@ var require_utils8 = __commonJS({
55065
55105
  return false;
55066
55106
  }
55067
55107
  let isValid = true;
55068
- const isNameInUse = await __1.isSystemNameInUse(newName);
55108
+ const isNameInUse = await (0, __1.isSystemNameInUse)(newName);
55069
55109
  if (isNameInUse && newName !== savedSystemName) {
55070
55110
  isValid = false;
55071
55111
  }
@@ -55194,19 +55234,21 @@ var require_oDataClient = __commonJS({
55194
55234
  }
55195
55235
  initDebugLogger() {
55196
55236
  if (!ODataClient.hasAxiosDebugLoggerConfig) {
55197
- axios_debug_log_1.default({
55237
+ (0, axios_debug_log_1.default)({
55198
55238
  request: (debug2, req) => {
55199
55239
  var _a2;
55200
- debug2(`${(_a2 = req.method) == null ? void 0 : _a2.toUpperCase()} ${this.buildFullUrl(req)}`);
55240
+ debug2(`Request ${(_a2 = req.method) == null ? void 0 : _a2.toUpperCase()} ${this.buildFullUrl(req)}`);
55201
55241
  debug2(req);
55202
55242
  },
55203
55243
  response: (debug2, res) => {
55204
- debug2(`${res.status} ${res.statusText} ${this.buildFullUrl(res.config)}`);
55244
+ debug2(`Response ${res.status} ${res.statusText} ${this.buildFullUrl(res.config)}`);
55205
55245
  debug2(res);
55206
55246
  },
55207
55247
  error: (debug2, error3) => {
55208
- var _a2, _b;
55209
- debug2(`${error3.code} ${(_b = (_a2 = error3.response) == null ? void 0 : _a2.data) == null ? void 0 : _b.message}`);
55248
+ var _a2, _b, _c, _d, _e, _f;
55249
+ debug2(`Error ${(_c = (_b = (_a2 = error3.response) == null ? void 0 : _a2.config) == null ? void 0 : _b.method) == null ? void 0 : _c.toUpperCase()} ${(_d = error3.response) == null ? void 0 : _d.status} ${this.buildFullUrl((_f = (_e = error3.response) == null ? void 0 : _e.config) != null ? _f : {})}
55250
+ `);
55251
+ debug2(error3.response);
55210
55252
  debug2(error3);
55211
55253
  }
55212
55254
  });
@@ -55217,7 +55259,7 @@ var require_oDataClient = __commonJS({
55217
55259
  return reqConfig.baseURL ? `${reqConfig.baseURL}${reqConfig.url}` : `${reqConfig.url}`;
55218
55260
  }
55219
55261
  validateSysAuthType(system, credentials) {
55220
- system.authenticationType = system.authenticationType || utils_1.guessAuthType({ credentials, fallback: true });
55262
+ system.authenticationType = system.authenticationType || (0, utils_1.guessAuthType)({ credentials, fallback: true });
55221
55263
  if (!Object.values(config_1.AuthenticationType).includes(system.authenticationType)) {
55222
55264
  throw new error_1.UnknownSystemAuthenticationType(system.authenticationType);
55223
55265
  }
@@ -55225,15 +55267,15 @@ var require_oDataClient = __commonJS({
55225
55267
  logError(e, logData) {
55226
55268
  this.log.error(e.message);
55227
55269
  if (e.isAxiosError && e.response.data["error"]) {
55228
- message_1.prettyPrintError(e.response.data["error"], this.log, logData);
55270
+ (0, message_1.prettyPrintError)(e.response.data["error"], this.log, logData);
55229
55271
  }
55230
55272
  }
55231
55273
  async getClient() {
55232
55274
  if (!this.client) {
55233
- if (ux_common_utils_1.isAppStudio()) {
55234
- await destination_1.updateSystemConfig(this.system);
55275
+ if ((0, ux_common_utils_1.isAppStudio)()) {
55276
+ await (0, destination_1.updateSystemConfig)(this.system);
55235
55277
  }
55236
- const { connection, httpClient } = await httpClient_1.newHttpClient({
55278
+ const { connection, httpClient } = await (0, httpClient_1.newHttpClient)({
55237
55279
  system: this.system,
55238
55280
  credentials: this.credentials,
55239
55281
  log: this.log,
@@ -55261,7 +55303,7 @@ var require_oDataClient = __commonJS({
55261
55303
  const metadataPath = ((_a2 = this.system.service) == null ? void 0 : _a2.endsWith("/")) ? "$metadata" : "/$metadata";
55262
55304
  const edmx = await this.get(metadataPath, { Accept: "application/xml" });
55263
55305
  try {
55264
- return filterReferenceUriInEdmx ? ux_common_utils_1.filterReferenceUri(edmx) : edmx;
55306
+ return filterReferenceUriInEdmx ? (0, ux_common_utils_1.filterReferenceUri)(edmx) : edmx;
55265
55307
  } catch {
55266
55308
  return edmx;
55267
55309
  }
@@ -55357,12 +55399,12 @@ var require_ui5AbapRepository = __commonJS({
55357
55399
  if ((_a2 = response == null ? void 0 : response.headers) == null ? void 0 : _a2["sap-message"]) {
55358
55400
  const message = JSON.parse(response.headers["sap-message"]);
55359
55401
  message["longtextUrl"] = message["longtext_url"];
55360
- message_1.prettyPrintMessage(message, this.log, { frontendUrl });
55402
+ (0, message_1.prettyPrintMessage)(message, this.log, { frontendUrl });
55361
55403
  const path5 = "/sap/bc/ui5_ui5" + (!app.name.startsWith("/") ? "/sap/" : "") + app.name.toLowerCase();
55362
55404
  const query = this.system.client ? "?sap-client=" + this.system.client : "";
55363
55405
  this.log.info(`App available at ${frontendUrl}${path5}${query}`);
55364
55406
  } else if (testMode) {
55365
- message_1.printErrorDetails((_c = (_b = response == null ? void 0 : response.data.error) == null ? void 0 : _b.innererror) == null ? void 0 : _c.errordetails, this.log, {
55407
+ (0, message_1.printErrorDetails)((_c = (_b = response == null ? void 0 : response.data.error) == null ? void 0 : _b.innererror) == null ? void 0 : _c.errordetails, this.log, {
55366
55408
  frontendUrl
55367
55409
  });
55368
55410
  }
@@ -55380,7 +55422,7 @@ var require_ui5AbapRepository = __commonJS({
55380
55422
  const response = await this.deleteRepoRequest(app.name, httpClient, config2);
55381
55423
  if ((_a2 = response == null ? void 0 : response.headers) == null ? void 0 : _a2["sap-message"]) {
55382
55424
  const message = JSON.parse(response.headers["sap-message"]);
55383
- message_1.prettyPrintMessage(message, this.log);
55425
+ (0, message_1.prettyPrintMessage)(message, this.log);
55384
55426
  }
55385
55427
  return response;
55386
55428
  } catch (error3) {
@@ -55415,7 +55457,7 @@ var require_ui5AbapRepository = __commonJS({
55415
55457
  return { headers, params, maxBodyLength, maxContentLength };
55416
55458
  }
55417
55459
  createPayload(archive, name, description, abapPackage, httpClient) {
55418
- const base64Data = fs_1.readFileSync(archive, { encoding: "base64" });
55460
+ const base64Data = (0, fs_1.readFileSync)(archive, { encoding: "base64" });
55419
55461
  const time = new Date().toISOString();
55420
55462
  const escapedName = encodeXmlValue(name);
55421
55463
  return `<entry xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xml:base="${httpClient.defaults.baseURL}"> <id>${httpClient.defaults.baseURL}/Repositories('${escapedName}')</id> <title type="text">Repositories('${escapedName}')</title> <updated>${time}</updated> <category term="/UI5/ABAP_REPOSITORY_SRV.Repository" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/> <link href="Repositories('${escapedName}')" rel="edit" title="Repository"/> <content type="application/xml"> <m:properties> <d:Name>${escapedName}</d:Name> <d:Package>${abapPackage == null ? void 0 : abapPackage.toUpperCase()}</d:Package> <d:Description>${encodeXmlValue(description)}</d:Description> <d:ZipArchive>${base64Data}</d:ZipArchive> <d:Info/> </m:properties> </content></entry>`;
@@ -55538,7 +55580,7 @@ var require_atoCatalog = __commonJS({
55538
55580
  return this.getAtoData(atoDataXml);
55539
55581
  }
55540
55582
  static getAtoData(atoDataXml) {
55541
- const atoData = utils_1.xmlToJson(atoDataXml);
55583
+ const atoData = (0, utils_1.xmlToJson)(atoDataXml);
55542
55584
  const settings = atoData == null ? void 0 : atoData["settings"];
55543
55585
  if (!settings) {
55544
55586
  throw new Error("ATO settings unavailable");
@@ -55585,7 +55627,7 @@ var require_v2Catalog = __commonJS({
55585
55627
  constructor({ system, credentials = void 0, log: log7 = console, connection = void 0, postConnectionCallback }) {
55586
55628
  var _a2, _b;
55587
55629
  if ((credentials == null ? void 0 : credentials.serviceKeys) || (credentials == null ? void 0 : credentials.serviceKeysContents)) {
55588
- const serviceInfo = uaaOauth_1.getServiceInfo(credentials);
55630
+ const serviceInfo = (0, uaaOauth_1.getServiceInfo)(credentials);
55589
55631
  credentials.serviceInfo = serviceInfo;
55590
55632
  system.url = serviceInfo.url;
55591
55633
  if ((_b = (_a2 = serviceInfo.catalogs) == null ? void 0 : _a2.abap) == null ? void 0 : _b.path) {
@@ -55597,13 +55639,14 @@ var require_v2Catalog = __commonJS({
55597
55639
  super({ system, credentials, log: log7, connection, postConnectionCallback });
55598
55640
  }
55599
55641
  async listServices(recommended = false) {
55642
+ let services;
55600
55643
  if (recommended) {
55601
- return this.get(common_1.V2_RECOMMENDED_SERVICES_PATH);
55644
+ services = await this.get(common_1.V2_RECOMMENDED_SERVICES_PATH);
55602
55645
  } else {
55603
55646
  let isS4C = false;
55604
55647
  try {
55605
55648
  await this.getConnection();
55606
- isS4C = utils_1.isS4HanaCloudSystem(await atoCatalog_1.AtoCatalog.getATOData({
55649
+ isS4C = (0, utils_1.isS4HanaCloudSystem)(await atoCatalog_1.AtoCatalog.getATOData({
55607
55650
  system: this.system,
55608
55651
  connection: this.connection,
55609
55652
  log: this.log,
@@ -55611,18 +55654,33 @@ var require_v2Catalog = __commonJS({
55611
55654
  }));
55612
55655
  } catch (error3) {
55613
55656
  }
55614
- return this.get(isS4C ? common_1.V2_SERVICES_PATH + common_1.V2_ODATA_CATALOG_FILTER_FOR_S4_HANA_SERVICES : common_1.V2_SERVICES_PATH);
55657
+ services = await this.get(isS4C ? common_1.V2_SERVICES_PATH + common_1.V2_ODATA_CATALOG_FILTER_FOR_S4_HANA_SERVICES : common_1.V2_SERVICES_PATH);
55658
+ }
55659
+ if (!Array.isArray(services)) {
55660
+ throw new Error("Error parsing service list");
55615
55661
  }
55662
+ return services;
55616
55663
  }
55617
55664
  async findService({ title, path: path5 }) {
55665
+ let version = 1;
55618
55666
  if (!title) {
55619
- title = path5.replace(/\/$/, "").split("/").pop();
55667
+ const titleWithParameters = path5.replace(/\/$/, "").split("/").pop().split(";");
55668
+ title = titleWithParameters[0];
55669
+ const params = titleWithParameters.slice(1);
55620
55670
  if (!title) {
55621
55671
  throw new Error(`Cannot determine service title from path: ${path5}`);
55622
55672
  }
55673
+ params.forEach((parameter) => {
55674
+ const [key, value] = parameter.split("=");
55675
+ if (key === "v") {
55676
+ version = parseInt(value, 10);
55677
+ }
55678
+ });
55623
55679
  }
55624
55680
  title = title.toUpperCase();
55625
- const services = await this.get(`/ServiceCollection/?$filter=Title%20eq%20%27${title}%27&$format=json`);
55681
+ const uriTemplate = `/ServiceCollection/?$filter=Title eq '${title}' and TechnicalServiceVersion eq ${version}&$format=json`;
55682
+ const uri = encodeURI(uriTemplate);
55683
+ const services = await this.get(uri);
55626
55684
  if (services.length > 1) {
55627
55685
  const servicesWithSameNameSpace = services.filter((service) => {
55628
55686
  var _a2;
@@ -55690,7 +55748,7 @@ var require_v4Catalog = __commonJS({
55690
55748
  var V4Catalog = class extends common_1.Catalog {
55691
55749
  constructor({ system, credentials = void 0, log: log7 = console, connection = void 0, postConnectionCallback }) {
55692
55750
  if ((credentials == null ? void 0 : credentials.serviceKeys) || (credentials == null ? void 0 : credentials.serviceKeysContents)) {
55693
- const serviceInfo = uaaOauth_1.getServiceInfo(credentials);
55751
+ const serviceInfo = (0, uaaOauth_1.getServiceInfo)(credentials);
55694
55752
  credentials.serviceInfo = serviceInfo;
55695
55753
  system.url = serviceInfo.url;
55696
55754
  }
@@ -55714,6 +55772,9 @@ var require_v4Catalog = __commonJS({
55714
55772
  const servicePath = recommended ? common_1.V4_RECOMMENDED_SERVICES_PATH_PROD : common_1.V4_SERVICES_PATH_PROD;
55715
55773
  this.services = [];
55716
55774
  const respValues = await this.get(`${servicePath}&${common_1.ODATA_COUNT_QUERY}`);
55775
+ if (!Array.isArray(respValues.value)) {
55776
+ throw new Error("Error parsing service list");
55777
+ }
55717
55778
  this.services = this.services.concat(this.parseServiceData(respValues.value, recommended));
55718
55779
  if (respValues["@odata.nextLink"]) {
55719
55780
  let skipval = parseInt((_a2 = respValues["@odata.nextLink"]) == null ? void 0 : _a2.split("skiptoken=")[1]);
@@ -55741,9 +55802,13 @@ var require_catalog = __commonJS({
55741
55802
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
55742
55803
  if (k2 === void 0)
55743
55804
  k2 = k;
55744
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
55745
- return m[k];
55746
- } });
55805
+ var desc = Object.getOwnPropertyDescriptor(m, k);
55806
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
55807
+ desc = { enumerable: true, get: function() {
55808
+ return m[k];
55809
+ } };
55810
+ }
55811
+ Object.defineProperty(o, k2, desc);
55747
55812
  } : function(o, m, k, k2) {
55748
55813
  if (k2 === void 0)
55749
55814
  k2 = k;
@@ -55776,9 +55841,13 @@ var require_client = __commonJS({
55776
55841
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
55777
55842
  if (k2 === void 0)
55778
55843
  k2 = k;
55779
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
55780
- return m[k];
55781
- } });
55844
+ var desc = Object.getOwnPropertyDescriptor(m, k);
55845
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
55846
+ desc = { enumerable: true, get: function() {
55847
+ return m[k];
55848
+ } };
55849
+ }
55850
+ Object.defineProperty(o, k2, desc);
55782
55851
  } : function(o, m, k, k2) {
55783
55852
  if (k2 === void 0)
55784
55853
  k2 = k;
@@ -55808,7 +55877,7 @@ var require_api_hub = __commonJS({
55808
55877
  var ux_store_1 = require_dist7();
55809
55878
  var constants_1 = require_constants5();
55810
55879
  async function getApiHubApiKey(log7 = console) {
55811
- const keyStore = ux_store_1.getSecureStore(log7);
55880
+ const keyStore = (0, ux_store_1.getSecureStore)(log7);
55812
55881
  const apiHubServiceName = config_1.ServiceName.ApiHub;
55813
55882
  const apiHubApiKey = await keyStore.retrieve(apiHubServiceName, constants_1.API_HUB_API_KEY);
55814
55883
  if (apiHubApiKey) {
@@ -55818,7 +55887,7 @@ var require_api_hub = __commonJS({
55818
55887
  }
55819
55888
  exports2.getApiHubApiKey = getApiHubApiKey;
55820
55889
  async function saveApiHubApiKey(val, log7 = console) {
55821
- const keyStore = ux_store_1.getSecureStore(log7);
55890
+ const keyStore = (0, ux_store_1.getSecureStore)(log7);
55822
55891
  const apiHubServiceName = config_1.ServiceName.ApiHub;
55823
55892
  const existingKey = await getApiHubApiKey(log7);
55824
55893
  if (existingKey !== void 0) {
@@ -55858,19 +55927,6 @@ var require_sapSystem = __commonJS({
55858
55927
  var types_1 = require_types6();
55859
55928
  var NEW_SCP_SUFFIX = " (BTP)";
55860
55929
  var SapSystem2 = class {
55861
- constructor(name, config2, credentials = {}, userDisplayName, unSaved = false, postConnectionCallbackCreator) {
55862
- this.config = config2;
55863
- this.credentials = credentials;
55864
- this._unSaved = false;
55865
- this.postConnectionCallbackInitialized = false;
55866
- this._name = name;
55867
- if (this.config.scp === void 0) {
55868
- this.config.scp = !!(credentials == null ? void 0 : credentials.serviceKeysContents) || !!(credentials == null ? void 0 : credentials.serviceKeys);
55869
- }
55870
- this._unSaved = unSaved;
55871
- this._userDisplayName = userDisplayName;
55872
- this._postConnectionCallbackCreator = postConnectionCallbackCreator;
55873
- }
55874
55930
  postConnectionCallback() {
55875
55931
  var _a2;
55876
55932
  if (!this.postConnectionCallbackInitialized) {
@@ -55886,9 +55942,22 @@ var require_sapSystem = __commonJS({
55886
55942
  password: s.password,
55887
55943
  refreshToken: s.refreshToken
55888
55944
  } : void 0;
55889
- const authenticationType = Object.values(ux_store_1.AuthenticationType).find((v) => v === s.authenticationType) || __1.guessAuthType({ credentials, fallback: false });
55945
+ const authenticationType = Object.values(ux_store_1.AuthenticationType).find((v) => v === s.authenticationType) || (0, __1.guessAuthType)({ credentials, fallback: false });
55890
55946
  return new SapSystem2(s.name, { url: s.url, client: s.client, authenticationType }, credentials, s.userDisplayName, void 0, void 0);
55891
55947
  }
55948
+ constructor(name, config2, credentials = {}, userDisplayName, unSaved = false, postConnectionCallbackCreator) {
55949
+ this.config = config2;
55950
+ this.credentials = credentials;
55951
+ this._unSaved = false;
55952
+ this.postConnectionCallbackInitialized = false;
55953
+ this._name = name;
55954
+ if (this.config.scp === void 0) {
55955
+ this.config.scp = !!(credentials == null ? void 0 : credentials.serviceKeysContents) || !!(credentials == null ? void 0 : credentials.serviceKeys);
55956
+ }
55957
+ this._unSaved = unSaved;
55958
+ this._userDisplayName = userDisplayName;
55959
+ this._postConnectionCallbackCreator = postConnectionCallbackCreator;
55960
+ }
55892
55961
  getConnection() {
55893
55962
  return this.connection;
55894
55963
  }
@@ -55977,7 +56046,7 @@ var require_sapSystem = __commonJS({
55977
56046
  }
55978
56047
  addS4HCSuffix(name) {
55979
56048
  const S4HC_SUFFIX = " (S4HC)";
55980
- return (name == null ? void 0 : name.trim().match(`${ux_common_utils_1.escapeRegExp(S4HC_SUFFIX)}$`)) ? name : name + S4HC_SUFFIX;
56049
+ return (name == null ? void 0 : name.trim().match(`${(0, ux_common_utils_1.escapeRegExp)(S4HC_SUFFIX)}$`)) ? name : name + S4HC_SUFFIX;
55981
56050
  }
55982
56051
  get bareName() {
55983
56052
  return stripOldSCPSuffix(this.name);
@@ -55986,19 +56055,19 @@ var require_sapSystem = __commonJS({
55986
56055
  return this.config.scp;
55987
56056
  }
55988
56057
  isPartialUrlDest() {
55989
- return !config_1.hasDestinationAttrib("WebIDEAdditionalData", config_1.DestinationAttributeProperty.FULL_URL, this.config.destinationAttributes) && this.isGenericODataDest();
56058
+ return !(0, config_1.hasDestinationAttrib)("WebIDEAdditionalData", config_1.DestinationAttributeProperty.FULL_URL, this.config.destinationAttributes) && this.isGenericODataDest();
55990
56059
  }
55991
56060
  isGenericODataDest() {
55992
- return this.config.destination ? config_1.hasDestinationAttrib("WebIDEUsage", config_1.DestinationAttributeProperty.ODATA_GENERIC, this.config.destinationAttributes) && !config_1.hasDestinationAttrib("WebIDEUsage", config_1.DestinationAttributeProperty.ODATA_ABAP, this.config.destinationAttributes) : false;
56061
+ return this.config.destination ? (0, config_1.hasDestinationAttrib)("WebIDEUsage", config_1.DestinationAttributeProperty.ODATA_GENERIC, this.config.destinationAttributes) && !(0, config_1.hasDestinationAttrib)("WebIDEUsage", config_1.DestinationAttributeProperty.ODATA_ABAP, this.config.destinationAttributes) : false;
55993
56062
  }
55994
56063
  isFullUrlDest() {
55995
- return this.config.destination ? config_1.hasDestinationAttrib("WebIDEAdditionalData", config_1.DestinationAttributeProperty.FULL_URL, this.config.destinationAttributes) && this.isGenericODataDest() : false;
56064
+ return this.config.destination ? (0, config_1.hasDestinationAttrib)("WebIDEAdditionalData", config_1.DestinationAttributeProperty.FULL_URL, this.config.destinationAttributes) && this.isGenericODataDest() : false;
55996
56065
  }
55997
56066
  isAbapCatalogDest() {
55998
- return this.config.destination ? config_1.hasDestinationAttrib("WebIDEUsage", config_1.DestinationAttributeProperty.ODATA_ABAP, this.config.destinationAttributes) && !this.isFullUrlDest() : false;
56067
+ return this.config.destination ? (0, config_1.hasDestinationAttrib)("WebIDEUsage", config_1.DestinationAttributeProperty.ODATA_ABAP, this.config.destinationAttributes) && !this.isFullUrlDest() : false;
55999
56068
  }
56000
56069
  isHTML5DynamicDestination() {
56001
- return this.config.destination ? config_1.hasHTML5DynamicDestinationAttrib(this.config.destinationAttributes) : false;
56070
+ return this.config.destination ? (0, config_1.hasHTML5DynamicDestinationAttrib)(this.config.destinationAttributes) : false;
56002
56071
  }
56003
56072
  toString() {
56004
56073
  var _a2;
@@ -56056,14 +56125,14 @@ var require_sapSystem = __commonJS({
56056
56125
  async getCatalog(odataVersion) {
56057
56126
  const system = deepClone(this.config);
56058
56127
  if (this.connection) {
56059
- return client_1.getCatalog({
56128
+ return (0, client_1.getCatalog)({
56060
56129
  system,
56061
56130
  connection: this.connection,
56062
56131
  odataVersion,
56063
56132
  postConnectionCallback: this.postConnectionCallback()
56064
56133
  });
56065
56134
  } else {
56066
- const catalog = client_1.getCatalog({
56135
+ const catalog = (0, client_1.getCatalog)({
56067
56136
  system,
56068
56137
  credentials: this.credentials,
56069
56138
  odataVersion,
@@ -56114,7 +56183,7 @@ var require_sapSystem = __commonJS({
56114
56183
  exports2.SapSystem = SapSystem2;
56115
56184
  function toSCPSystemName(systemName) {
56116
56185
  const s = systemName.trim();
56117
- return s.match(`${ux_common_utils_1.escapeRegExp(NEW_SCP_SUFFIX)}$`) ? s : s + NEW_SCP_SUFFIX;
56186
+ return s.match(`${(0, ux_common_utils_1.escapeRegExp)(NEW_SCP_SUFFIX)}$`) ? s : s + NEW_SCP_SUFFIX;
56118
56187
  }
56119
56188
  function stripOldSCPSuffix(name) {
56120
56189
  return name.trim().replace(/ \(SCP\)$/, "");
@@ -56140,7 +56209,7 @@ var require_systemStore = __commonJS({
56140
56209
  this.storeService = storeService;
56141
56210
  }
56142
56211
  static async createInstance(logger) {
56143
- const storeService = await ux_store_1.getService({ logger, entityName: "system" });
56212
+ const storeService = await (0, ux_store_1.getService)({ logger, entityName: "system" });
56144
56213
  return new DefaultImplementation(storeService, logger);
56145
56214
  }
56146
56215
  async getAll() {
@@ -56202,9 +56271,9 @@ var require_system = __commonJS({
56202
56271
  var url_1 = require("url");
56203
56272
  var __1 = require_dist8();
56204
56273
  async function listSAPSystems2() {
56205
- if (ux_common_utils_1.isAppStudio()) {
56274
+ if ((0, ux_common_utils_1.isAppStudio)()) {
56206
56275
  const systems = {};
56207
- const destinations = await connection_1.listDestinations();
56276
+ const destinations = await (0, connection_1.listDestinations)();
56208
56277
  Object.values(destinations).sort((a, b) => a.Name.localeCompare(b.Name, void 0, { numeric: true, caseFirst: "lower" })).forEach((destination) => {
56209
56278
  var _a2, _b;
56210
56279
  systems[destination.Name] = new sapSystem_1.SapSystem(destination.Name, {
@@ -56218,7 +56287,7 @@ var require_system = __commonJS({
56218
56287
  });
56219
56288
  return systems;
56220
56289
  } else {
56221
- const store = await systemStore_1.getSystemStore();
56290
+ const store = await (0, systemStore_1.getSystemStore)();
56222
56291
  return postGetAll({ systems: await store.getAll(), store });
56223
56292
  }
56224
56293
  }
@@ -56250,7 +56319,7 @@ var require_system = __commonJS({
56250
56319
  update: { userDisplayName: sys.userDisplayName }
56251
56320
  }));
56252
56321
  }
56253
- await ux_common_utils_1.allSettled(updates);
56322
+ await (0, ux_common_utils_1.allSettled)(updates);
56254
56323
  resolve2();
56255
56324
  }, 0));
56256
56325
  }
@@ -56277,7 +56346,7 @@ var require_system = __commonJS({
56277
56346
  const update = {};
56278
56347
  !!user && (update.userDisplayName = user);
56279
56348
  !!refreshToken && (update.refreshToken = refreshToken);
56280
- return (await systemStore_1.getSystemStore()).partialUpdate({
56349
+ return (await (0, systemStore_1.getSystemStore)()).partialUpdate({
56281
56350
  url: system.url,
56282
56351
  client: system.client,
56283
56352
  update
@@ -56289,16 +56358,16 @@ var require_system = __commonJS({
56289
56358
  return cb;
56290
56359
  }
56291
56360
  async function isSystemNameInUse(name) {
56292
- const systems = await (await systemStore_1.getSystemStore()).getAll();
56361
+ const systems = await (await (0, systemStore_1.getSystemStore)()).getAll();
56293
56362
  const sys = name.trim();
56294
- return Object.values(systems).findIndex((system) => system.name === sys || system.bareName === sapSystem_1.stripOldSCPSuffix(sys)) !== -1;
56363
+ return Object.values(systems).findIndex((system) => system.name === sys || system.bareName === (0, sapSystem_1.stripOldSCPSuffix)(sys)) !== -1;
56295
56364
  }
56296
56365
  exports2.isSystemNameInUse = isSystemNameInUse;
56297
56366
  async function getSapSystem2(url, client) {
56298
- if (ux_common_utils_1.isAppStudio()) {
56367
+ if ((0, ux_common_utils_1.isAppStudio)()) {
56299
56368
  throw Error("Not supported in AppStudio.");
56300
56369
  } else {
56301
- return (await systemStore_1.getSystemStore()).get(url, client);
56370
+ return (await (0, systemStore_1.getSystemStore)()).get(url, client);
56302
56371
  }
56303
56372
  }
56304
56373
  exports2.getSapSystem = getSapSystem2;
@@ -56334,12 +56403,12 @@ var require_system = __commonJS({
56334
56403
  }
56335
56404
  exports2.newSapSystemForDestinaton = newSapSystemForDestinaton;
56336
56405
  async function saveSapSystem(system) {
56337
- const store = await systemStore_1.getSystemStore();
56406
+ const store = await (0, systemStore_1.getSystemStore)();
56338
56407
  await store.save(system);
56339
56408
  }
56340
56409
  exports2.saveSapSystem = saveSapSystem;
56341
56410
  async function deleteSapSystem(system) {
56342
- const store = await systemStore_1.getSystemStore();
56411
+ const store = await (0, systemStore_1.getSystemStore)();
56343
56412
  return store.delete(system);
56344
56413
  }
56345
56414
  exports2.deleteSapSystem = deleteSapSystem;
@@ -56353,9 +56422,13 @@ var require_dist8 = __commonJS({
56353
56422
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
56354
56423
  if (k2 === void 0)
56355
56424
  k2 = k;
56356
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
56357
- return m[k];
56358
- } });
56425
+ var desc = Object.getOwnPropertyDescriptor(m, k);
56426
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
56427
+ desc = { enumerable: true, get: function() {
56428
+ return m[k];
56429
+ } };
56430
+ }
56431
+ Object.defineProperty(o, k2, desc);
56359
56432
  } : function(o, m, k, k2) {
56360
56433
  if (k2 === void 0)
56361
56434
  k2 = k;
@@ -56658,9 +56731,9 @@ var require_ui5_info = __commonJS({
56658
56731
  return a.localeCompare(b);
56659
56732
  }
56660
56733
  if (versions.indexOf(a) > -1 || versions.indexOf(b) > -1) {
56661
- return semver_compare_1.default(a, b);
56734
+ return (0, semver_compare_1.default)(a, b);
56662
56735
  }
56663
- return semver_compare_1.default(b + ".999", a + ".999");
56736
+ return (0, semver_compare_1.default)(b + ".999", a + ".999");
56664
56737
  }
56665
56738
  function filterNewerEqual(versions, minVersion) {
56666
56739
  return versions.filter((version) => {
@@ -56669,11 +56742,11 @@ var require_ui5_info = __commonJS({
56669
56742
  } else if (version.startsWith("snapshot-")) {
56670
56743
  version = version.replace("snapshot-", "");
56671
56744
  }
56672
- return semver_compare_1.default(version, minVersion) >= 0;
56745
+ return (0, semver_compare_1.default)(version, minVersion) >= 0;
56673
56746
  });
56674
56747
  }
56675
56748
  async function requestUI5Versions(url, service = `/${url === "https://ui5.sap.com" ? "version.json?sap-ui-config-patches=true&sap-ui-config-showall=true" : "neo-app.json"}`) {
56676
- const { system } = ux_odata_client_1.newSapSystemForServiceUrl(url);
56749
+ const { system } = (0, ux_odata_client_1.newSapSystemForServiceUrl)(url);
56677
56750
  system.config.service = service;
56678
56751
  const odataClient = new ux_odata_client_1.ODataClient({
56679
56752
  system: system.config,
@@ -56718,7 +56791,7 @@ var require_ui5_info = __commonJS({
56718
56791
  }
56719
56792
  result2 = versions.map((ver) => {
56720
56793
  var _a2;
56721
- const parsedVersion = (_a2 = semver_1.coerce(ver.version)) == null ? void 0 : _a2.version;
56794
+ const parsedVersion = (_a2 = (0, semver_1.coerce)(ver.version)) == null ? void 0 : _a2.version;
56722
56795
  if (parsedVersion !== void 0) {
56723
56796
  return {
56724
56797
  version: parsedVersion,
@@ -56760,14 +56833,14 @@ var require_ui5_info = __commonJS({
56760
56833
  let officialVersions = [];
56761
56834
  let snapshotVersions = [];
56762
56835
  try {
56763
- officialVersions = (filterOptions == null ? void 0 : filterOptions.onlyNpmVersion) ? await retrieveNpmUI5Versions(filterOptions.fioriElementsVersion || "v2", filterOptions.ui5SelectedVersion) : await exports2.retrieveUI5VersionsCache("officialVersions", filterOptions == null ? void 0 : filterOptions.useCache);
56836
+ officialVersions = (filterOptions == null ? void 0 : filterOptions.onlyNpmVersion) ? await retrieveNpmUI5Versions(filterOptions.fioriElementsVersion || "v2", filterOptions.ui5SelectedVersion) : await (0, exports2.retrieveUI5VersionsCache)("officialVersions", filterOptions == null ? void 0 : filterOptions.useCache);
56764
56837
  } catch (error3) {
56765
56838
  logger.warning(`Request to '${"https://ui5.sap.com"}' failed. Error was: '${error3.message}'. Fallback to default UI5 versions`);
56766
56839
  officialVersions = DEFAULT_UI5_VERSIONS.slice();
56767
56840
  }
56768
56841
  if (filterOptions == null ? void 0 : filterOptions.includeSnapshots) {
56769
56842
  try {
56770
- snapshotVersions = await exports2.retrieveUI5VersionsCache("snapshotsVersions", filterOptions == null ? void 0 : filterOptions.useCache);
56843
+ snapshotVersions = await (0, exports2.retrieveUI5VersionsCache)("snapshotsVersions", filterOptions == null ? void 0 : filterOptions.useCache);
56771
56844
  } catch (error3) {
56772
56845
  logger.error(`Request to '${"https://sapui5preview-sapui5.dispatcher.int.sap.eu2.hana.ondemand.com"}' failed. Error was: '${error3.message}'`);
56773
56846
  }
@@ -56803,7 +56876,7 @@ var require_ui5_info = __commonJS({
56803
56876
  }
56804
56877
  let ui5VersionsOverview = void 0;
56805
56878
  if ((filterOptions == null ? void 0 : filterOptions.groupUI5Versions) === true) {
56806
- ui5VersionsOverview = await exports2.retrieveUI5VersionsCache("overview", filterOptions == null ? void 0 : filterOptions.useCache);
56879
+ ui5VersionsOverview = await (0, exports2.retrieveUI5VersionsCache)("overview", filterOptions == null ? void 0 : filterOptions.useCache);
56807
56880
  }
56808
56881
  return filteredUI5Versions.map((ui5) => {
56809
56882
  const ui5Version = {
@@ -56817,7 +56890,7 @@ var require_ui5_info = __commonJS({
56817
56890
  if ((filterOptions == null ? void 0 : filterOptions.groupUI5Versions) === true && ui5VersionsOverview !== void 0) {
56818
56891
  ui5Version.version.maintained = ui5VersionsOverview.some((v) => {
56819
56892
  if (v !== void 0) {
56820
- return `${semver_1.major(v.version)}.${semver_1.minor(v.version)}` === `${semver_1.major(ui5)}.${semver_1.minor(ui5)}` && v.support === types_1.inMaintenance;
56893
+ return `${(0, semver_1.major)(v.version)}.${(0, semver_1.minor)(v.version)}` === `${(0, semver_1.major)(ui5)}.${(0, semver_1.minor)(ui5)}` && v.support === types_1.inMaintenance;
56821
56894
  }
56822
56895
  });
56823
56896
  }
@@ -56836,13 +56909,13 @@ var require_ui5_info = __commonJS({
56836
56909
  filteredThemes.push(theme);
56837
56910
  break;
56838
56911
  case "sap_fiori_3_dark":
56839
- (ui5VersionCheck(filteredUi5Version) || semver_compare_1.default(filteredUi5Version, MIN_UI5_DARK_THEME) >= 0) && filteredThemes.push(theme);
56912
+ (ui5VersionCheck(filteredUi5Version) || (0, semver_compare_1.default)(filteredUi5Version, MIN_UI5_DARK_THEME) >= 0) && filteredThemes.push(theme);
56840
56913
  break;
56841
56914
  case "sap_horizon":
56842
56915
  case "sap_horizon_dark":
56843
56916
  case "sap_horizon_hcw":
56844
56917
  case "sap_horizon_hcb":
56845
- (ui5VersionCheck(filteredUi5Version) || semver_compare_1.default(filteredUi5Version, MIN_UI5_VERSION_HORIZON_THEME) >= 0) && filteredThemes.push(theme);
56918
+ (ui5VersionCheck(filteredUi5Version) || (0, semver_compare_1.default)(filteredUi5Version, MIN_UI5_VERSION_HORIZON_THEME) >= 0) && filteredThemes.push(theme);
56846
56919
  break;
56847
56920
  }
56848
56921
  }
@@ -56851,7 +56924,7 @@ var require_ui5_info = __commonJS({
56851
56924
  exports2.getUi5Themes = getUi5Themes;
56852
56925
  function getDefaultTheme(ui5Version) {
56853
56926
  if (ui5Version) {
56854
- if (semver_1.coerce(ui5Version) && semver_1.lt(ui5Version, MIN_UI5_VERSION_HORIZON_THEME)) {
56927
+ if ((0, semver_1.coerce)(ui5Version) && (0, semver_1.lt)(ui5Version, MIN_UI5_VERSION_HORIZON_THEME)) {
56855
56928
  return "sap_fiori_3";
56856
56929
  }
56857
56930
  }
@@ -56906,7 +56979,7 @@ var require_ui5_info = __commonJS({
56906
56979
  if (ui5SelectedVersion && ui5SelectedVersion.length) {
56907
56980
  const latestMinIdx = latestVersions.findIndex((v) => v === ui5SelectedVersion);
56908
56981
  if (latestMinIdx === -1) {
56909
- if (semver_compare_1.default(ui5SelectedVersion, latestVersions.slice(-1)[0]) > 0 || ui5SelectedVersion === "Latest" || !semver_1.valid(ui5SelectedVersion)) {
56982
+ if ((0, semver_compare_1.default)(ui5SelectedVersion, latestVersions.slice(-1)[0]) > 0 || ui5SelectedVersion === "Latest" || !(0, semver_1.valid)(ui5SelectedVersion)) {
56910
56983
  latestVersions = latestVersions.slice(0);
56911
56984
  } else {
56912
56985
  latestVersions = latestVersions.slice(-1);
@@ -56956,8 +57029,8 @@ var require_ui5_info = __commonJS({
56956
57029
  exports2.getLatestSapui5Version = getLatestSapui5Version;
56957
57030
  function getSpecTagVersion(ui5Version) {
56958
57031
  if (ui5Version) {
56959
- if (semver_1.valid(ui5Version)) {
56960
- return `UI5-${semver_1.major(ui5Version)}.${semver_1.minor(ui5Version)}`;
57032
+ if ((0, semver_1.valid)(ui5Version)) {
57033
+ return `UI5-${(0, semver_1.major)(ui5Version)}.${(0, semver_1.minor)(ui5Version)}`;
56961
57034
  } else if (ui5Version.includes("snapshot") && ui5Version.includes(".")) {
56962
57035
  const snapshotVersion = ui5Version.split("snapshot-")[1];
56963
57036
  return `UI5-${snapshotVersion}`;
@@ -57508,6 +57581,7 @@ var require_EventName = __commonJS({
57508
57581
  EventName4["GD_SIDE_BY_SIDE"] = "GD_SIDE_BY_SIDE";
57509
57582
  EventName4["GD_WIZARD"] = "GD_WIZARD";
57510
57583
  EventName4["GD_DESCMODE"] = "GD_DESCMODE";
57584
+ EventName4["GD_PROJECTVIEW"] = "GD_PROJECTVIEW";
57511
57585
  EventName4["PAGEMAP"] = "PAGEMAP";
57512
57586
  EventName4["APP_ACTIONS"] = "ACTIONS";
57513
57587
  EventName4["PAGE_EDITOR"] = "PAGE_EDITOR";
@@ -57525,7 +57599,6 @@ var require_EventName = __commonJS({
57525
57599
  EventName4["ANNOTATION_FILE_BACKEND_LOAD"] = "ANNOTATION_FILE_BACKEND_LOAD";
57526
57600
  EventName4["ANNOTATION_LSP_XML_LOAD"] = "ANNOTATION_LSP_XML_LOAD";
57527
57601
  EventName4["ANNOTATION_LSP_USAGE_TERM"] = "ANNOTATION_LSP_USAGE_TERM";
57528
- EventName4["ANNOTATION_LSP_CODE_COMPLETION_TERM"] = "ANNOTATION_LSP_CODE_COMPLETION_TERM";
57529
57602
  EventName4["ANNOTATION_LSP_CODE_COMPLETION"] = "ANNOTATION_LSP_CODE_COMPLETION";
57530
57603
  EventName4["MIGRATION_ACTIVATED"] = "MIGRATION_ACTIVATED";
57531
57604
  EventName4["MIGRATION_BACKEND_LOAD"] = "MIGRATION_BACKEND_LOAD";
@@ -69190,7 +69263,7 @@ var require_package5 = __commonJS({
69190
69263
  "../lib/telemetry/dist/package.json"(exports2, module2) {
69191
69264
  module2.exports = {
69192
69265
  name: "@sap/ux-telemetry",
69193
- version: "1.9.0",
69266
+ version: "1.9.2",
69194
69267
  description: "SAP Fiori tools telemetry library",
69195
69268
  main: "dist/src/index.js",
69196
69269
  author: "SAP SE",
@@ -69215,20 +69288,20 @@ var require_package5 = __commonJS({
69215
69288
  },
69216
69289
  dependencies: {
69217
69290
  "@sap-ux/store": "0.3.8",
69218
- "@sap/ux-cds": "1.9.0",
69219
- "@sap/ux-common-utils": "1.9.0",
69220
- "@sap/ux-feature-toggle": "1.9.0",
69221
- "@sap/ux-project-access": "1.9.0",
69291
+ "@sap/ux-cds": "1.9.2",
69292
+ "@sap/ux-common-utils": "1.9.2",
69293
+ "@sap/ux-feature-toggle": "1.9.2",
69294
+ "@sap/ux-project-access": "1.9.2",
69222
69295
  applicationinsights: "1.4.1",
69223
69296
  axios: "0.26.0",
69224
69297
  "performance-now": "2.1.0",
69225
69298
  yaml: "2.0.0-10"
69226
69299
  },
69227
69300
  devDependencies: {
69228
- memfs: "3.4.7",
69301
+ memfs: "3.4.13",
69229
69302
  "ts-jest": "28.0.8",
69230
69303
  "ts-node": "8.5.2",
69231
- typescript: "4.3.5",
69304
+ typescript: "4.9.4",
69232
69305
  unionfs: "4.4.0"
69233
69306
  },
69234
69307
  files: [
@@ -69287,9 +69360,13 @@ var require_reporting = __commonJS({
69287
69360
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
69288
69361
  if (k2 === void 0)
69289
69362
  k2 = k;
69290
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
69291
- return m[k];
69292
- } });
69363
+ var desc = Object.getOwnPropertyDescriptor(m, k);
69364
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
69365
+ desc = { enumerable: true, get: function() {
69366
+ return m[k];
69367
+ } };
69368
+ }
69369
+ Object.defineProperty(o, k2, desc);
69293
69370
  } : function(o, m, k, k2) {
69294
69371
  if (k2 === void 0)
69295
69372
  k2 = k;
@@ -69356,7 +69433,7 @@ var require_reporting = __commonJS({
69356
69433
  var _a2;
69357
69434
  if (((_a2 = process.env.SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY) == null ? void 0 : _a2.trim()) !== "true") {
69358
69435
  reportingTelemetryClient = new appInsights.TelemetryClient(telemetryPackageJSON.azureInstrumentationKey);
69359
- telemetryClientConfig_1.configAzureTelemetryClient(reportingTelemetryClient);
69436
+ (0, telemetryClientConfig_1.configAzureTelemetryClient)(reportingTelemetryClient);
69360
69437
  }
69361
69438
  var reportRuntimeError = (error3) => {
69362
69439
  const properties = { message: error3.message };
@@ -69409,16 +69486,16 @@ var require_system3 = __commonJS({
69409
69486
  var reporting_1 = require_reporting();
69410
69487
  var TelemetrySystem = class {
69411
69488
  static init() {
69412
- cloudDebugger_1.debug(`start System.init`);
69413
- TelemetrySystem.modules = system_1.processMatchingPaths(TelemetrySystem.modules);
69489
+ (0, cloudDebugger_1.debug)(`start System.init`);
69490
+ TelemetrySystem.modules = (0, system_1.processMatchingPaths)(TelemetrySystem.modules);
69414
69491
  let pathBase = TelemetrySystem.getMatchingModulePath(module2);
69415
- cloudDebugger_1.debug(`base path: ${pathBase}`);
69492
+ (0, cloudDebugger_1.debug)(`base path: ${pathBase}`);
69416
69493
  if (!pathBase) {
69417
- TelemetrySystem.fallbackModules = system_1.processMatchingPaths(TelemetrySystem.fallbackModules);
69494
+ TelemetrySystem.fallbackModules = (0, system_1.processMatchingPaths)(TelemetrySystem.fallbackModules);
69418
69495
  pathBase = TelemetrySystem.getMatchingModulePath(module2, true);
69419
69496
  }
69420
69497
  const manifestPath = TelemetrySystem.getManifestPath(pathBase);
69421
- cloudDebugger_1.debug(`package.json path: ${manifestPath}`);
69498
+ (0, cloudDebugger_1.debug)(`package.json path: ${manifestPath}`);
69422
69499
  TelemetrySystem.manifest = TelemetrySystem.getManifestJSON(manifestPath);
69423
69500
  }
69424
69501
  static getManifestJSON(path5) {
@@ -69431,7 +69508,7 @@ var require_system3 = __commonJS({
69431
69508
  }
69432
69509
  static getManifestPath(pathBase) {
69433
69510
  let manifestPath = pathBase;
69434
- if (ux_common_utils_1.isAppStudio() && manifestPath && manifestPath.indexOf("generators") < 0 && manifestPath.indexOf("deployment-generator") < 0 && manifestPath.indexOf("/ux-ui5-tooling") < 0) {
69511
+ if ((0, ux_common_utils_1.isAppStudio)() && manifestPath && manifestPath.indexOf("generators") < 0 && manifestPath.indexOf("deployment-generator") < 0 && manifestPath.indexOf("/ux-ui5-tooling") < 0) {
69435
69512
  manifestPath = manifestPath.concat("/extension");
69436
69513
  }
69437
69514
  if (manifestPath && manifestPath.indexOf("language-server") > -1) {
@@ -69507,7 +69584,7 @@ var require_system3 = __commonJS({
69507
69584
  TelemetrySystem.init();
69508
69585
  }
69509
69586
  } catch (err) {
69510
- reporting_1.reportRuntimeError(err);
69587
+ (0, reporting_1.reportRuntimeError)(err);
69511
69588
  }
69512
69589
  }
69513
69590
  });
@@ -69585,9 +69662,13 @@ var require_appInsightClient = __commonJS({
69585
69662
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
69586
69663
  if (k2 === void 0)
69587
69664
  k2 = k;
69588
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
69589
- return m[k];
69590
- } });
69665
+ var desc = Object.getOwnPropertyDescriptor(m, k);
69666
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
69667
+ desc = { enumerable: true, get: function() {
69668
+ return m[k];
69669
+ } };
69670
+ }
69671
+ Object.defineProperty(o, k2, desc);
69591
69672
  } : function(o, m, k, k2) {
69592
69673
  if (k2 === void 0)
69593
69674
  k2 = k;
@@ -69670,7 +69751,7 @@ var require_appInsightClient = __commonJS({
69670
69751
  }
69671
69752
  const client = new appInsights.TelemetryClient(this.applicationKey);
69672
69753
  client.config.samplingPercentage = sampleRateNumer;
69673
- telemetryClientConfig_1.configAzureTelemetryClient(client);
69754
+ (0, telemetryClientConfig_1.configAzureTelemetryClient)(client);
69674
69755
  return client;
69675
69756
  }
69676
69757
  };
@@ -69706,10 +69787,10 @@ var require_toolsSuiteTelemetryClient = __commonJS({
69706
69787
  super(applicationKey, extensionName, extensionVersion);
69707
69788
  }
69708
69789
  async report(eventName, properties, measurements, sampleRate, telemetryHelperProperties, ignoreSettings) {
69709
- const fioriProjectCommonProperties = await toolsSuiteTelemetry_1.processToolsSuiteTelemetry(telemetryHelperProperties);
69790
+ const fioriProjectCommonProperties = await (0, toolsSuiteTelemetry_1.processToolsSuiteTelemetry)(telemetryHelperProperties);
69710
69791
  const commonProperties = {
69711
69792
  v: this.extensionVersion,
69712
- datetime: date_1.localDatetimeToUTC()
69793
+ datetime: (0, date_1.localDatetimeToUTC)()
69713
69794
  };
69714
69795
  const finalProperties = {
69715
69796
  ...properties,
@@ -69719,10 +69800,10 @@ var require_toolsSuiteTelemetryClient = __commonJS({
69719
69800
  await super.report(eventName, finalProperties, measurements, sampleRate, telemetryHelperProperties, ignoreSettings);
69720
69801
  }
69721
69802
  async reportEvent(event, sampleRate, telemetryHelperProperties, ignoreSettings) {
69722
- const fioriProjectCommonProperties = await toolsSuiteTelemetry_1.processToolsSuiteTelemetry(telemetryHelperProperties);
69803
+ const fioriProjectCommonProperties = await (0, toolsSuiteTelemetry_1.processToolsSuiteTelemetry)(telemetryHelperProperties);
69723
69804
  const telemetryEventCommonProperties = {
69724
69805
  v: this.extensionVersion,
69725
- datetime: date_1.localDatetimeToUTC()
69806
+ datetime: (0, date_1.localDatetimeToUTC)()
69726
69807
  };
69727
69808
  const finalProperties = {
69728
69809
  ...event.properties,
@@ -70588,9 +70669,13 @@ var require_file2 = __commonJS({
70588
70669
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
70589
70670
  if (k2 === void 0)
70590
70671
  k2 = k;
70591
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
70592
- return m[k];
70593
- } });
70672
+ var desc = Object.getOwnPropertyDescriptor(m, k);
70673
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
70674
+ desc = { enumerable: true, get: function() {
70675
+ return m[k];
70676
+ } };
70677
+ }
70678
+ Object.defineProperty(o, k2, desc);
70594
70679
  } : function(o, m, k, k2) {
70595
70680
  if (k2 === void 0)
70596
70681
  k2 = k;
@@ -70715,7 +70800,7 @@ var require_file2 = __commonJS({
70715
70800
  if (await fileExists2(path5)) {
70716
70801
  const files = await readDirectory(path5);
70717
70802
  for (const name of files) {
70718
- const fullPath = path_1.join(path5, name);
70803
+ const fullPath = (0, path_1.join)(path5, name);
70719
70804
  if (await isDirectory(fullPath)) {
70720
70805
  await deleteDirectory(fullPath);
70721
70806
  } else {
@@ -72616,10 +72701,10 @@ var require_capProject = __commonJS({
72616
72701
  var packageJsonFileName = "package.json";
72617
72702
  async function parsePackageJson(projectRoot) {
72618
72703
  let packageJson;
72619
- const packageJsonPath = path_1.join(projectRoot, packageJsonFileName);
72620
- if (await file_1.fileExists(packageJsonPath)) {
72704
+ const packageJsonPath = (0, path_1.join)(projectRoot, packageJsonFileName);
72705
+ if (await (0, file_1.fileExists)(packageJsonPath)) {
72621
72706
  try {
72622
- packageJson = JSON.parse(await file_1.readFile(packageJsonPath));
72707
+ packageJson = JSON.parse(await (0, file_1.readFile)(packageJsonPath));
72623
72708
  } catch (error3) {
72624
72709
  }
72625
72710
  }
@@ -72638,10 +72723,10 @@ var require_capProject = __commonJS({
72638
72723
  }
72639
72724
  exports2.isCapNodeJsProject = isCapNodeJsProject;
72640
72725
  async function isCapJavaProject(projectRoot) {
72641
- return file_1.fileExists(path_1.join(projectRoot, exports2.CAP_SERVICES_FOLDER, "src", "main", "resources", "application.yaml"));
72726
+ return (0, file_1.fileExists)((0, path_1.join)(projectRoot, exports2.CAP_SERVICES_FOLDER, "src", "main", "resources", "application.yaml"));
72642
72727
  }
72643
72728
  exports2.isCapJavaProject = isCapJavaProject;
72644
- var toAbsoluteUri = (project, relativeUri) => path_1.join(project.root, relativeUri);
72729
+ var toAbsoluteUri = (project, relativeUri) => (0, path_1.join)(project.root, relativeUri);
72645
72730
  exports2.toAbsoluteUri = toAbsoluteUri;
72646
72731
  var toReferenceUri = async (project, relativeUriFrom, relativeUriTo) => {
72647
72732
  let relativeUri = "";
@@ -72660,8 +72745,8 @@ var require_capProject = __commonJS({
72660
72745
  }
72661
72746
  }
72662
72747
  if (!relativeUri) {
72663
- const fromDir = path_1.dirname(exports2.toAbsoluteUri(project, relativeUriFrom));
72664
- relativeUri = path_1.relative(fromDir, exports2.toAbsoluteUri(project, relativeUriTo));
72748
+ const fromDir = (0, path_1.dirname)((0, exports2.toAbsoluteUri)(project, relativeUriFrom));
72749
+ relativeUri = (0, path_1.relative)(fromDir, (0, exports2.toAbsoluteUri)(project, relativeUriTo));
72665
72750
  if (!relativeUri.startsWith(".")) {
72666
72751
  relativeUri = "./" + relativeUri;
72667
72752
  }
@@ -72688,8 +72773,8 @@ var require_capProject = __commonJS({
72688
72773
  async function readPackageNameForFolder(baseUri, relativeUri) {
72689
72774
  let packageName = "";
72690
72775
  try {
72691
- const path5 = path_1.normalize(baseUri + "/" + relativeUri + "/package.json");
72692
- const content = await file_1.readFile(path5);
72776
+ const path5 = (0, path_1.normalize)(baseUri + "/" + relativeUri + "/package.json");
72777
+ const content = await (0, file_1.readFile)(path5);
72693
72778
  if (content) {
72694
72779
  const parsed = JSON.parse(content);
72695
72780
  packageName = parsed.name;
@@ -72709,9 +72794,13 @@ var require_webapp2 = __commonJS({
72709
72794
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
72710
72795
  if (k2 === void 0)
72711
72796
  k2 = k;
72712
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
72713
- return m[k];
72714
- } });
72797
+ var desc = Object.getOwnPropertyDescriptor(m, k);
72798
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
72799
+ desc = { enumerable: true, get: function() {
72800
+ return m[k];
72801
+ } };
72802
+ }
72803
+ Object.defineProperty(o, k2, desc);
72715
72804
  } : function(o, m, k, k2) {
72716
72805
  if (k2 === void 0)
72717
72806
  k2 = k;
@@ -72744,7 +72833,7 @@ var require_webapp2 = __commonJS({
72744
72833
  var _a2, _b, _c, _d, _e;
72745
72834
  let webappPath = project_spec_1.DirName.Webapp;
72746
72835
  try {
72747
- const yamlContent = await file_1.readFile(path_1.join(root, project_spec_1.FileName.Ui5Yaml));
72836
+ const yamlContent = await (0, file_1.readFile)((0, path_1.join)(root, project_spec_1.FileName.Ui5Yaml));
72748
72837
  webappPath = (_e = (_d = (_c = (_b = (_a2 = yaml.parse(yamlContent)) == null ? void 0 : _a2.resources) == null ? void 0 : _b.configuration) == null ? void 0 : _c.paths) == null ? void 0 : _d.webapp) != null ? _e : project_spec_1.DirName.Webapp;
72749
72838
  } catch {
72750
72839
  webappPath = project_spec_1.DirName.Webapp;
@@ -72762,9 +72851,13 @@ var require_yamlFile = __commonJS({
72762
72851
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
72763
72852
  if (k2 === void 0)
72764
72853
  k2 = k;
72765
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
72766
- return m[k];
72767
- } });
72854
+ var desc = Object.getOwnPropertyDescriptor(m, k);
72855
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
72856
+ desc = { enumerable: true, get: function() {
72857
+ return m[k];
72858
+ } };
72859
+ }
72860
+ Object.defineProperty(o, k2, desc);
72768
72861
  } : function(o, m, k, k2) {
72769
72862
  if (k2 === void 0)
72770
72863
  k2 = k;
@@ -72794,9 +72887,9 @@ var require_yamlFile = __commonJS({
72794
72887
  var file_1 = require_file2();
72795
72888
  var i18n_1 = require_i18n3();
72796
72889
  async function readUi5YamlConfig(dirPath, filename) {
72797
- const filePath = path_1.join(dirPath, filename);
72798
- if (await file_1.fileExists(filePath)) {
72799
- return file_1.readFile(filePath);
72890
+ const filePath = (0, path_1.join)(dirPath, filename);
72891
+ if (await (0, file_1.fileExists)(filePath)) {
72892
+ return (0, file_1.readFile)(filePath);
72800
72893
  } else {
72801
72894
  const error3 = new Error(i18n_1.i18n.t("ERROR_UI5_YAML_MISSING"));
72802
72895
  error3.name = "Ui5MissingError";
@@ -72835,7 +72928,7 @@ var require_yamlFile = __commonJS({
72835
72928
  }
72836
72929
  return parsed;
72837
72930
  } catch (e) {
72838
- throw new Error(i18n_1.i18n.t("ERROR_UI5_YAML_PARSING", { filePath: path_1.join(dirPath, filename), parsingError: e.message }));
72931
+ throw new Error(i18n_1.i18n.t("ERROR_UI5_YAML_PARSING", { filePath: (0, path_1.join)(dirPath, filename), parsingError: e.message }));
72839
72932
  }
72840
72933
  }
72841
72934
  exports2.getParsedUi5YamlConfig = getParsedUi5YamlConfig;
@@ -72849,9 +72942,13 @@ var require_mockServer = __commonJS({
72849
72942
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
72850
72943
  if (k2 === void 0)
72851
72944
  k2 = k;
72852
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
72853
- return m[k];
72854
- } });
72945
+ var desc = Object.getOwnPropertyDescriptor(m, k);
72946
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
72947
+ desc = { enumerable: true, get: function() {
72948
+ return m[k];
72949
+ } };
72950
+ }
72951
+ Object.defineProperty(o, k2, desc);
72855
72952
  } : function(o, m, k, k2) {
72856
72953
  if (k2 === void 0)
72857
72954
  k2 = k;
@@ -72883,7 +72980,7 @@ var require_mockServer = __commonJS({
72883
72980
  var file_1 = require_file2();
72884
72981
  async function getMockServerConfig(cfgFileDir, cfgFileName = project_spec_1.FileName.Ui5MockYaml) {
72885
72982
  var _a2;
72886
- const ui5Config = await yamlFile_1.getParsedUi5YamlConfig(cfgFileDir, cfgFileName);
72983
+ const ui5Config = await (0, yamlFile_1.getParsedUi5YamlConfig)(cfgFileDir, cfgFileName);
72887
72984
  const middlewares = (_a2 = ui5Config.server) == null ? void 0 : _a2.customMiddleware;
72888
72985
  if (middlewares) {
72889
72986
  let mockMW;
@@ -72916,22 +73013,23 @@ var require_mockServer = __commonJS({
72916
73013
  }
72917
73014
  exports2.getMockServicesConfiguration = getMockServicesConfiguration;
72918
73015
  async function readDynamicMockServerConfig(yamlCfgDirPath, mockFolderPath) {
72919
- const configDirPath = path_1.resolve(yamlCfgDirPath, mockFolderPath);
72920
- const jsonConfigPath = path_1.join(configDirPath, "config.json");
72921
- const moduleConfigPath = path_1.join(configDirPath, "config.js");
72922
- const isJSON = await file_1.fileExists(jsonConfigPath);
73016
+ var _a2;
73017
+ const configDirPath = (0, path_1.resolve)(yamlCfgDirPath, mockFolderPath);
73018
+ const jsonConfigPath = (0, path_1.join)(configDirPath, "config.json");
73019
+ const moduleConfigPath = (0, path_1.join)(configDirPath, "config.js");
73020
+ const isJSON = await (0, file_1.fileExists)(jsonConfigPath);
72923
73021
  let services;
72924
73022
  try {
72925
73023
  if (isJSON) {
72926
- services = await file_1.readJSON(jsonConfigPath);
73024
+ services = await (0, file_1.readJSON)(jsonConfigPath);
72927
73025
  } else {
72928
- const dynamicConfig = await Promise.resolve().then(() => __importStar(require(moduleConfigPath)));
73026
+ const dynamicConfig = await (_a2 = moduleConfigPath, Promise.resolve().then(() => __importStar(require(_a2))));
72929
73027
  services = dynamicConfig == null ? void 0 : dynamicConfig.default;
72930
73028
  }
72931
73029
  } catch (e) {
72932
73030
  throw new Error(i18n_1.i18n.t("ERROR_UI5_YAML_DYNAMIC_CFG_IMPORT", {
72933
73031
  filePath: isJSON ? jsonConfigPath : moduleConfigPath,
72934
- yamlFile: path_1.join(yamlCfgDirPath, project_spec_1.FileName.Ui5MockYaml)
73032
+ yamlFile: (0, path_1.join)(yamlCfgDirPath, project_spec_1.FileName.Ui5MockYaml)
72935
73033
  }));
72936
73034
  }
72937
73035
  return (services == null ? void 0 : services.length) ? services : null;
@@ -72939,7 +73037,7 @@ var require_mockServer = __commonJS({
72939
73037
  function matchMockServiceByMetadataPath(mockService, path5) {
72940
73038
  const { metadataPath } = mockService;
72941
73039
  if (metadataPath) {
72942
- return path5.endsWith(path_1.normalize(metadataPath));
73040
+ return path5.endsWith((0, path_1.normalize)(metadataPath));
72943
73041
  }
72944
73042
  return false;
72945
73043
  }
@@ -73429,9 +73527,13 @@ var require_utils10 = __commonJS({
73429
73527
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
73430
73528
  if (k2 === void 0)
73431
73529
  k2 = k;
73432
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
73433
- return m[k];
73434
- } });
73530
+ var desc = Object.getOwnPropertyDescriptor(m, k);
73531
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
73532
+ desc = { enumerable: true, get: function() {
73533
+ return m[k];
73534
+ } };
73535
+ }
73536
+ Object.defineProperty(o, k2, desc);
73435
73537
  } : function(o, m, k, k2) {
73436
73538
  if (k2 === void 0)
73437
73539
  k2 = k;
@@ -73481,11 +73583,11 @@ var require_utils10 = __commonJS({
73481
73583
  if (!pckgJson) {
73482
73584
  throw new Error(`Could not find any project root. Parameter 'sapuxRequired' was ${sapuxRequired ? "true" : "false"}`);
73483
73585
  }
73484
- let root = path_1.dirname(pckgJson);
73586
+ let root = (0, path_1.dirname)(pckgJson);
73485
73587
  if (sapuxRequired) {
73486
- const sapux = (await file_1.readJSON(pckgJson)).sapux;
73588
+ const sapux = (await (0, file_1.readJSON)(pckgJson)).sapux;
73487
73589
  if (!sapux) {
73488
- root = await findProjectRoot(path_1.dirname(root), sapuxRequired);
73590
+ root = await findProjectRoot((0, path_1.dirname)(root), sapuxRequired);
73489
73591
  }
73490
73592
  }
73491
73593
  return root;
@@ -73517,16 +73619,16 @@ var require_utils10 = __commonJS({
73517
73619
  ];
73518
73620
  const fileNames = [project_spec_1.FileName.Pom, project_spec_1.FileName.Package];
73519
73621
  return new Promise((doResolve, reject2) => {
73520
- const finder = findit2_1.default(root);
73622
+ const finder = (0, findit2_1.default)(root);
73521
73623
  finder.on("directory", (dir2, stat, stop) => {
73522
- const base = path_1.basename(dir2);
73624
+ const base = (0, path_1.basename)(dir2);
73523
73625
  if (stopFolders.indexOf(base) !== -1) {
73524
73626
  stop();
73525
73627
  }
73526
73628
  });
73527
73629
  finder.on("file", async (file) => {
73528
- if (fileNames.indexOf(path_1.basename(file)) && await capProject_1.isCapProject(path_1.dirname(file))) {
73529
- projects.push(path_1.dirname(file));
73630
+ if (fileNames.indexOf((0, path_1.basename)(file)) && await (0, capProject_1.isCapProject)((0, path_1.dirname)(file))) {
73631
+ projects.push((0, path_1.dirname)(file));
73530
73632
  }
73531
73633
  });
73532
73634
  finder.on("end", () => {
@@ -73540,16 +73642,16 @@ var require_utils10 = __commonJS({
73540
73642
  exports2.findCapProjects = findCapProjects;
73541
73643
  async function findAll(root, filename, results, stopFolders) {
73542
73644
  return new Promise((doResolve, reject2) => {
73543
- const finder = findit2_1.default(root);
73645
+ const finder = (0, findit2_1.default)(root);
73544
73646
  finder.on("directory", (dir2, stat, stop) => {
73545
- const base = path_1.basename(dir2);
73647
+ const base = (0, path_1.basename)(dir2);
73546
73648
  if (stopFolders.indexOf(base) !== -1) {
73547
73649
  stop();
73548
73650
  }
73549
73651
  });
73550
73652
  finder.on("file", (file) => {
73551
73653
  if (file.endsWith(filename)) {
73552
- results.push(path_1.dirname(file));
73654
+ results.push((0, path_1.dirname)(file));
73553
73655
  }
73554
73656
  });
73555
73657
  finder.on("end", () => {
@@ -73564,9 +73666,9 @@ var require_utils10 = __commonJS({
73564
73666
  async function findExtensionFiles(root, targetFileName = project_spec_1.FileName.Fragment) {
73565
73667
  const extensionFiles = [];
73566
73668
  return new Promise((doResolve, reject2) => {
73567
- const finder = findit2_1.default(root);
73669
+ const finder = (0, findit2_1.default)(root);
73568
73670
  finder.on("directory", (dir2, stat, stop) => {
73569
- const base = path_1.basename(dir2);
73671
+ const base = (0, path_1.basename)(dir2);
73570
73672
  if (base === ".git" || base === "node_modules" || base === "dist" || base === project_spec_1.DirName.Sapux) {
73571
73673
  stop();
73572
73674
  }
@@ -73662,7 +73764,7 @@ var require_utils10 = __commonJS({
73662
73764
  const sapuxProjects = [];
73663
73765
  for (const root of projects) {
73664
73766
  try {
73665
- if ((await file_1.readJSON(path_1.join(root, project_spec_1.FileName.Package))).sapux) {
73767
+ if ((await (0, file_1.readJSON)((0, path_1.join)(root, project_spec_1.FileName.Package))).sapux) {
73666
73768
  sapuxProjects.push(root);
73667
73769
  }
73668
73770
  } catch (error3) {
@@ -73684,21 +73786,21 @@ var require_utils10 = __commonJS({
73684
73786
  exports2.findAllProjectRoots = findAllProjectRoots;
73685
73787
  async function getAppType(appRoot, projectRoot) {
73686
73788
  if (appRoot === projectRoot) {
73687
- const appPckJson = await file_1.readJSON(path_1.join(appRoot, project_spec_1.FileName.Package));
73789
+ const appPckJson = await (0, file_1.readJSON)((0, path_1.join)(appRoot, project_spec_1.FileName.Package));
73688
73790
  if (appPckJson.sapux === true) {
73689
73791
  return "SAP Fiori elements";
73690
- } else if (await file_1.fileExists(path_1.join(appRoot, project_spec_1.FileName.ExtConfigJson))) {
73792
+ } else if (await (0, file_1.fileExists)((0, path_1.join)(appRoot, project_spec_1.FileName.ExtConfigJson))) {
73691
73793
  return "SAPUI5 Extension";
73692
73794
  } else {
73693
73795
  return "SAPUI5 freestyle";
73694
73796
  }
73695
73797
  }
73696
73798
  try {
73697
- const projectPckJson = await file_1.readJSON(path_1.join(projectRoot, project_spec_1.FileName.Package));
73799
+ const projectPckJson = await (0, file_1.readJSON)((0, path_1.join)(projectRoot, project_spec_1.FileName.Package));
73698
73800
  if (!projectPckJson.sapux) {
73699
73801
  return "SAPUI5 freestyle";
73700
73802
  } else if (Array.isArray(projectPckJson.sapux)) {
73701
- return projectPckJson.sapux.find((relAppPath) => path_1.join(projectRoot, ...relAppPath.split(/\\|\//)) === appRoot) ? "SAP Fiori elements" : "SAPUI5 freestyle";
73803
+ return projectPckJson.sapux.find((relAppPath) => (0, path_1.join)(projectRoot, ...relAppPath.split(/\\|\//)) === appRoot) ? "SAP Fiori elements" : "SAPUI5 freestyle";
73702
73804
  }
73703
73805
  } catch {
73704
73806
  return "SAPUI5 freestyle";
@@ -73709,10 +73811,10 @@ var require_utils10 = __commonJS({
73709
73811
  if (appRoot === projectRoot) {
73710
73812
  return "EDMX Backend";
73711
73813
  }
73712
- if (await capProject_1.isCapJavaProject(projectRoot)) {
73814
+ if (await (0, capProject_1.isCapJavaProject)(projectRoot)) {
73713
73815
  return "CAP Java";
73714
73816
  }
73715
- if (await capProject_1.isCapNodeJsProject(projectRoot)) {
73817
+ if (await (0, capProject_1.isCapNodeJsProject)(projectRoot)) {
73716
73818
  return "CAP Node.js";
73717
73819
  }
73718
73820
  throw new Error(i18n_1.i18n.t("ERROR_DETAIL_PROJECT_TYPE", { appRoot, projectRoot }));
@@ -73726,11 +73828,11 @@ var require_utils10 = __commonJS({
73726
73828
  };
73727
73829
  } else if (Array.isArray(sapux)) {
73728
73830
  const pathWithSep = path5.endsWith(path_1.sep) ? path5 : path5 + path_1.sep;
73729
- const relAppPaths = sapux.map((a) => path_1.join(...a.split(/\\|\//)));
73730
- const relApp = relAppPaths.find((app) => pathWithSep.startsWith(path_1.join(root, app) + path_1.sep));
73831
+ const relAppPaths = sapux.map((a) => (0, path_1.join)(...a.split(/\\|\//)));
73832
+ const relApp = relAppPaths.find((app) => pathWithSep.startsWith((0, path_1.join)(root, app) + path_1.sep));
73731
73833
  if (relApp) {
73732
73834
  return {
73733
- appRoot: path_1.join(root, relApp),
73835
+ appRoot: (0, path_1.join)(root, relApp),
73734
73836
  projectRoot: root
73735
73837
  };
73736
73838
  }
@@ -73743,30 +73845,30 @@ var require_utils10 = __commonJS({
73743
73845
  if (!appRoot) {
73744
73846
  return null;
73745
73847
  }
73746
- const appPckJson = await file_1.readJSON(path_1.join(appRoot, project_spec_1.FileName.Package));
73848
+ const appPckJson = await (0, file_1.readJSON)((0, path_1.join)(appRoot, project_spec_1.FileName.Package));
73747
73849
  if (appPckJson.sapux) {
73748
73850
  return findRootsWithSapux(appPckJson.sapux, path5, appRoot);
73749
73851
  }
73750
- if (await capProject_1.isCapProject(appRoot, appPckJson)) {
73852
+ if (await (0, capProject_1.isCapProject)(appRoot, appPckJson)) {
73751
73853
  return null;
73752
73854
  }
73753
- if ((fs_1.existsSync(path_1.join(appRoot, project_spec_1.FileName.Ui5LocalYaml)) || fs_1.existsSync(path_1.join(appRoot, project_spec_1.FileName.ExtConfigJson))) && exports2.hasDependency(appPckJson, "@sap/ux-ui5-tooling")) {
73855
+ if (((0, fs_1.existsSync)((0, path_1.join)(appRoot, project_spec_1.FileName.Ui5LocalYaml)) || (0, fs_1.existsSync)((0, path_1.join)(appRoot, project_spec_1.FileName.ExtConfigJson))) && (0, exports2.hasDependency)(appPckJson, "@sap/ux-ui5-tooling")) {
73754
73856
  return {
73755
73857
  appRoot,
73756
73858
  projectRoot: appRoot
73757
73859
  };
73758
73860
  }
73759
73861
  try {
73760
- const { root } = path_1.parse(appRoot);
73761
- let projectRoot = path_1.dirname(appRoot);
73862
+ const { root } = (0, path_1.parse)(appRoot);
73863
+ let projectRoot = (0, path_1.dirname)(appRoot);
73762
73864
  while (projectRoot !== root) {
73763
- if (await capProject_1.isCapProject(projectRoot) && path_1.join(projectRoot, "app") !== appRoot) {
73865
+ if (await (0, capProject_1.isCapProject)(projectRoot) && (0, path_1.join)(projectRoot, "app") !== appRoot) {
73764
73866
  return {
73765
73867
  appRoot,
73766
73868
  projectRoot
73767
73869
  };
73768
73870
  }
73769
- projectRoot = path_1.dirname(projectRoot);
73871
+ projectRoot = (0, path_1.dirname)(projectRoot);
73770
73872
  }
73771
73873
  } catch (e) {
73772
73874
  }
@@ -73781,7 +73883,7 @@ var require_utils10 = __commonJS({
73781
73883
  const manifestPaths = await findAllManifest(wsFolders);
73782
73884
  for (const manifestPath of manifestPaths) {
73783
73885
  try {
73784
- const manifest = await file_1.readJSON(path_1.join(manifestPath, project_spec_1.FileName.Manifest));
73886
+ const manifest = await (0, file_1.readJSON)((0, path_1.join)(manifestPath, project_spec_1.FileName.Manifest));
73785
73887
  if (!manifest["sap.app"] || !manifest["sap.app"].id || manifest["sap.app"].type !== "application") {
73786
73888
  continue;
73787
73889
  }
@@ -73801,12 +73903,12 @@ var require_utils10 = __commonJS({
73801
73903
  const roots = await findAllProjectRoots(workspaceRoots, false);
73802
73904
  for (const root of roots) {
73803
73905
  try {
73804
- const packageJson = await file_1.readJSON(path_1.join(root, project_spec_1.FileName.Package));
73805
- if ((exports2.hasDependency(packageJson, "@sap/ux-ui5-tooling") || await capProject_1.isCapProject(root, packageJson)) && hasScript(packageJson)) {
73906
+ const packageJson = await (0, file_1.readJSON)((0, path_1.join)(root, project_spec_1.FileName.Package));
73907
+ if (((0, exports2.hasDependency)(packageJson, "@sap/ux-ui5-tooling") || await (0, capProject_1.isCapProject)(root, packageJson)) && hasScript(packageJson)) {
73806
73908
  result2.push(root);
73807
73909
  }
73808
73910
  } catch (error3) {
73809
- logger == null ? void 0 : logger.info(`Invalid JSON ${path_1.join(root, project_spec_1.FileName.Package)}. Application Modeler will skip this project.`);
73911
+ logger == null ? void 0 : logger.info(`Invalid JSON ${(0, path_1.join)(root, project_spec_1.FileName.Package)}. Application Modeler will skip this project.`);
73810
73912
  continue;
73811
73913
  }
73812
73914
  }
@@ -73814,7 +73916,7 @@ var require_utils10 = __commonJS({
73814
73916
  };
73815
73917
  exports2.findRunnableProjects = findRunnableProjects;
73816
73918
  async function checkPackageJson(root, dependency, sapux) {
73817
- const packageJson = await file_1.readJSON(path_1.join(root, project_spec_1.FileName.Package));
73919
+ const packageJson = await (0, file_1.readJSON)((0, path_1.join)(root, project_spec_1.FileName.Package));
73818
73920
  if (packageJson.dependencies && packageJson.dependencies[dependency] !== void 0 || packageJson.devDependencies && packageJson.devDependencies[dependency] !== void 0) {
73819
73921
  return true;
73820
73922
  }
@@ -73858,17 +73960,17 @@ var require_utils10 = __commonJS({
73858
73960
  exports2.getMainService = getMainService;
73859
73961
  function createApplicationStructureConfig(appFolder, manifest, sync) {
73860
73962
  return {
73861
- manifest: path_1.join(appFolder, project_spec_1.DirName.Webapp, project_spec_1.FileName.Manifest),
73862
- changes: path_1.join(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Changes),
73863
- app: sync ? path_1.join(appFolder, project_spec_1.DirName.Sapux, project_spec_1.FileName.App) : void 0,
73864
- i18n: getI18nPath(path_1.join(appFolder, project_spec_1.DirName.Webapp), manifest),
73963
+ manifest: (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, project_spec_1.FileName.Manifest),
73964
+ changes: (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Changes),
73965
+ app: sync ? (0, path_1.join)(appFolder, project_spec_1.DirName.Sapux, project_spec_1.FileName.App) : void 0,
73966
+ i18n: getI18nPath((0, path_1.join)(appFolder, project_spec_1.DirName.Webapp), manifest),
73865
73967
  mainService: getMainService(manifest),
73866
73968
  services: {},
73867
73969
  annotations: {},
73868
- ext: path_1.join(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext),
73869
- controller: path_1.join(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext, project_spec_1.DirName.Controller),
73870
- view: path_1.join(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext, project_spec_1.DirName.View),
73871
- fragment: path_1.join(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext, project_spec_1.DirName.Fragment)
73970
+ ext: (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext),
73971
+ controller: (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext, project_spec_1.DirName.Controller),
73972
+ view: (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext, project_spec_1.DirName.View),
73973
+ fragment: (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext, project_spec_1.DirName.Fragment)
73872
73974
  };
73873
73975
  }
73874
73976
  exports2.createApplicationStructureConfig = createApplicationStructureConfig;
@@ -73882,18 +73984,18 @@ var require_utils10 = __commonJS({
73882
73984
  };
73883
73985
  const appServices = project.apps[appFolder].services;
73884
73986
  if (services[name].settings) {
73885
- appServices[name].local = ((_a2 = services[name].settings) == null ? void 0 : _a2.localUri) ? path_1.join(appFolder, project_spec_1.DirName.Webapp, services[name].settings.localUri) : "";
73987
+ appServices[name].local = ((_a2 = services[name].settings) == null ? void 0 : _a2.localUri) ? (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, services[name].settings.localUri) : "";
73886
73988
  if (services[name].settings.annotations) {
73887
73989
  project.apps[appFolder].annotations[name] = project.apps[appFolder].annotations[name] || [];
73888
73990
  for (const id of services[name].settings.annotations) {
73889
73991
  const annotation = services[id];
73890
73992
  if (annotation) {
73891
73993
  if (!annotation.uri || annotation.settings && annotation.uri === annotation.settings.localUri) {
73892
- project.apps[appFolder].annotations[name].push(path_1.join(appFolder, project_spec_1.DirName.Webapp, annotation.settings.localUri));
73994
+ project.apps[appFolder].annotations[name].push((0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, annotation.settings.localUri));
73893
73995
  } else {
73894
73996
  appServices[name].annotations = {
73895
73997
  uri: annotation.uri,
73896
- local: annotation.settings && annotation.settings.localUri ? path_1.join(appFolder, project_spec_1.DirName.Webapp, annotation.settings.localUri) : void 0
73998
+ local: annotation.settings && annotation.settings.localUri ? (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, annotation.settings.localUri) : void 0
73897
73999
  };
73898
74000
  if (appServices[name].annotations.local) {
73899
74001
  project.apps[appFolder].annotations[name].push(appServices[name].annotations.local);
@@ -73928,14 +74030,14 @@ var require_utils10 = __commonJS({
73928
74030
  }
73929
74031
  exports2.getAppConfig = getAppConfig;
73930
74032
  async function readAppJson(path5, includePageConfigs = true) {
73931
- const app = await file_1.readJSON(path5);
74033
+ const app = await (0, file_1.readJSON)(path5);
73932
74034
  if (includePageConfigs) {
73933
74035
  const pagesDirectory = path5.replace(project_spec_1.FileName.App, project_spec_1.DirName.Pages);
73934
- const pageFiles = await file_1.readDirectory(pagesDirectory);
74036
+ const pageFiles = await (0, file_1.readDirectory)(pagesDirectory);
73935
74037
  for (const file of pageFiles) {
73936
74038
  const id = file.replace(".json", "");
73937
74039
  if (app.pages[id]) {
73938
- app.pages[id].config = await file_1.readJSON(path_1.join(pagesDirectory, file));
74040
+ app.pages[id].config = await (0, file_1.readJSON)((0, path_1.join)(pagesDirectory, file));
73939
74041
  }
73940
74042
  }
73941
74043
  }
@@ -73952,15 +74054,15 @@ var require_utils10 = __commonJS({
73952
74054
  relativePath = i18nModel.settings.bundleUrl;
73953
74055
  } else if ("settings" in i18nModel && typeof i18nModel.settings === "object" && "bundleName" in i18nModel.settings && typeof i18nModel.settings.bundleName === "string") {
73954
74056
  const relBundleString = i18nModel.settings.bundleName.replace(manifest["sap.app"].id, "");
73955
- relativePath = `${path_1.join(...relBundleString.split("."))}.properties`;
74057
+ relativePath = `${(0, path_1.join)(...relBundleString.split("."))}.properties`;
73956
74058
  } else if (typeof ((_c = manifest == null ? void 0 : manifest["sap.app"]) == null ? void 0 : _c["i18n"]) === "string") {
73957
74059
  relativePath = manifest["sap.app"]["i18n"];
73958
74060
  }
73959
- return relativePath ? path_1.join(manifestFolder, relativePath) : void 0;
74061
+ return relativePath ? (0, path_1.join)(manifestFolder, relativePath) : void 0;
73960
74062
  }
73961
74063
  exports2.getI18nPath = getI18nPath;
73962
74064
  async function traverseI18nProperties(path5, fnCallback) {
73963
- const i18nFile = await file_1.readFile(path5);
74065
+ const i18nFile = await (0, file_1.readFile)(path5);
73964
74066
  const lines = i18nFile.split(/\r\n|\n/);
73965
74067
  for (let i = 0; i < lines.length; i++) {
73966
74068
  const line = lines[i];
@@ -74022,7 +74124,7 @@ var require_utils10 = __commonJS({
74022
74124
  output3.push(`${key}=${value}${os_1.default.EOL}`);
74023
74125
  }
74024
74126
  }
74025
- await file_1.updateFile(path5, output3.join(os_1.default.EOL));
74127
+ await (0, file_1.updateFile)(path5, output3.join(os_1.default.EOL));
74026
74128
  }
74027
74129
  exports2.updateI18nProperties = updateI18nProperties;
74028
74130
  async function findI18nProperty(path5, key) {
@@ -74040,11 +74142,11 @@ var require_utils10 = __commonJS({
74040
74142
  }
74041
74143
  exports2.findI18nProperty = findI18nProperty;
74042
74144
  async function getProjectTypeFromProjectFiles(projectRoot, packageJson) {
74043
- return await capProject_1.isCapProject(projectRoot, packageJson) ? "Cap" : "Edmx";
74145
+ return await (0, capProject_1.isCapProject)(projectRoot, packageJson) ? "Cap" : "Edmx";
74044
74146
  }
74045
74147
  exports2.getProjectTypeFromProjectFiles = getProjectTypeFromProjectFiles;
74046
74148
  async function getProjectType(root) {
74047
- const packageJson = await file_1.readJSON(path_1.join(root, project_spec_1.FileName.Package));
74149
+ const packageJson = await (0, file_1.readJSON)((0, path_1.join)(root, project_spec_1.FileName.Package));
74048
74150
  return getProjectTypeFromProjectFiles(root, packageJson);
74049
74151
  }
74050
74152
  exports2.getProjectType = getProjectType;
@@ -74075,7 +74177,7 @@ var require_utils10 = __commonJS({
74075
74177
  var _a2, _b, _c;
74076
74178
  let pathInYaml;
74077
74179
  let backEndConfig;
74078
- const yamlContent = await file_1.readFile(path_1.join(root, fileName));
74180
+ const yamlContent = await (0, file_1.readFile)((0, path_1.join)(root, fileName));
74079
74181
  const middlewares = (_b = (_a2 = yaml.parse(yamlContent)) == null ? void 0 : _a2.server) == null ? void 0 : _b.customMiddleware;
74080
74182
  const middleware = middlewares == null ? void 0 : middlewares.find((element) => element.name === middlewareName);
74081
74183
  const backends = (_c = middleware == null ? void 0 : middleware.configuration) == null ? void 0 : _c.backend;
@@ -74099,15 +74201,15 @@ var require_utils10 = __commonJS({
74099
74201
  exports2.getBackendConfigByPath = getBackendConfigByPath;
74100
74202
  async function getUi5CustomMiddleware(root) {
74101
74203
  var _a2, _b;
74102
- const yamlContent = await file_1.readFile(path_1.join(root, project_spec_1.FileName.Ui5Yaml));
74204
+ const yamlContent = await (0, file_1.readFile)((0, path_1.join)(root, project_spec_1.FileName.Ui5Yaml));
74103
74205
  const middlewares = (_b = (_a2 = yaml.parse(yamlContent)) == null ? void 0 : _a2.server) == null ? void 0 : _b.customMiddleware;
74104
74206
  return middlewares == null ? void 0 : middlewares.find((element) => element.name === "fiori-tools-proxy");
74105
74207
  }
74106
74208
  exports2.getUi5CustomMiddleware = getUi5CustomMiddleware;
74107
74209
  async function getLocalUI5Version(root) {
74108
- const yamlFile = path_1.join(root, project_spec_1.FileName.Ui5LocalYaml);
74109
- if (await file_1.fileExists(yamlFile)) {
74110
- const yamlContent = yaml.parse(await file_1.readFile(yamlFile));
74210
+ const yamlFile = (0, path_1.join)(root, project_spec_1.FileName.Ui5LocalYaml);
74211
+ if (await (0, file_1.fileExists)(yamlFile)) {
74212
+ const yamlContent = yaml.parse(await (0, file_1.readFile)(yamlFile));
74111
74213
  return yamlContent.framework && yamlContent.framework.version;
74112
74214
  }
74113
74215
  }
@@ -74117,14 +74219,14 @@ var require_utils10 = __commonJS({
74117
74219
  var _a2, _b;
74118
74220
  try {
74119
74221
  let ui5Version = "latest";
74120
- const webappPath = await webapp_1.getUi5CustomWebappPath(root);
74121
- const manifestFile = path_1.join(root, webappPath, project_spec_1.FileName.Manifest);
74122
- if (await file_1.fileExists(manifestFile)) {
74123
- const manifest = await file_1.readJSON(manifestFile);
74222
+ const webappPath = await (0, webapp_1.getUi5CustomWebappPath)(root);
74223
+ const manifestFile = (0, path_1.join)(root, webappPath, project_spec_1.FileName.Manifest);
74224
+ if (await (0, file_1.fileExists)(manifestFile)) {
74225
+ const manifest = await (0, file_1.readJSON)(manifestFile);
74124
74226
  ui5Version = (_b = (_a2 = manifest["sap.ui5"]) == null ? void 0 : _a2.dependencies) == null ? void 0 : _b.minUI5Version;
74125
74227
  if (isNaN(parseFloat(ui5Version))) {
74126
74228
  if (latestSapui5Version === void 0) {
74127
- latestSapui5Version = await ux_ui5_info_1.getLatestSapui5Version();
74229
+ latestSapui5Version = await (0, ux_ui5_info_1.getLatestSapui5Version)();
74128
74230
  }
74129
74231
  ui5Version = latestSapui5Version;
74130
74232
  }
@@ -74136,9 +74238,9 @@ var require_utils10 = __commonJS({
74136
74238
  }
74137
74239
  exports2.getUI5Version = getUI5Version;
74138
74240
  async function checkServeLocalConfig(root) {
74139
- const yamlFile = path_1.join(root, project_spec_1.FileName.Ui5LocalYaml);
74140
- if (await file_1.fileExists(yamlFile)) {
74141
- const yamlContent = yaml.parse(await file_1.readFile(yamlFile));
74241
+ const yamlFile = (0, path_1.join)(root, project_spec_1.FileName.Ui5LocalYaml);
74242
+ if (await (0, file_1.fileExists)(yamlFile)) {
74243
+ const yamlContent = yaml.parse(await (0, file_1.readFile)(yamlFile));
74142
74244
  const middlewares = yamlContent.server.customMiddleware;
74143
74245
  const serveLocal = middlewares.find((element) => element.name === "fiori-tools-servestatic");
74144
74246
  if (serveLocal) {
@@ -74154,8 +74256,8 @@ var require_utils10 = __commonJS({
74154
74256
  function getAppIdForFile(filepath, projectRoot, appIds) {
74155
74257
  let appId = "";
74156
74258
  appIds.forEach((appIdTmp) => {
74157
- const relativeStr = path_1.relative(path_1.join(projectRoot, appIdTmp), filepath);
74158
- if (relativeStr && !relativeStr.startsWith("..") && !path_1.isAbsolute(relativeStr)) {
74259
+ const relativeStr = (0, path_1.relative)((0, path_1.join)(projectRoot, appIdTmp), filepath);
74260
+ if (relativeStr && !relativeStr.startsWith("..") && !(0, path_1.isAbsolute)(relativeStr)) {
74159
74261
  appId = appIdTmp;
74160
74262
  }
74161
74263
  });
@@ -74169,11 +74271,11 @@ var require_utils10 = __commonJS({
74169
74271
  exports2.isOVPProject = isOVPProject;
74170
74272
  async function deleteCapApp(appPath, logger) {
74171
74273
  var _a2;
74172
- const appName = path_1.basename(appPath);
74274
+ const appName = (0, path_1.basename)(appPath);
74173
74275
  const projectRoot = await findProjectRoot(appPath);
74174
- const packageJsonPath = path_1.join(projectRoot, project_spec_1.FileName.Package);
74175
- const packageJson = await file_1.readJSON(packageJsonPath);
74176
- const cdsFilePaths = [path_1.join(path_1.dirname(appPath), project_spec_1.FileName.ServiceCds), path_1.join(path_1.dirname(appPath), project_spec_1.FileName.IndexCds)];
74276
+ const packageJsonPath = (0, path_1.join)(projectRoot, project_spec_1.FileName.Package);
74277
+ const packageJson = await (0, file_1.readJSON)(packageJsonPath);
74278
+ const cdsFilePaths = [(0, path_1.join)((0, path_1.dirname)(appPath), project_spec_1.FileName.ServiceCds), (0, path_1.join)((0, path_1.dirname)(appPath), project_spec_1.FileName.IndexCds)];
74177
74279
  if (!Array.isArray(packageJson.sapux)) {
74178
74280
  logger == null ? void 0 : logger.error(i18n_1.i18n.t("ERROR_DEL_CAP_APP_SAPUX", { packageJsonPath }));
74179
74281
  throw Error(i18n_1.i18n.t("ERROR_DEL_CAP_APP_SAPUX", { packageJsonPath }));
@@ -74188,23 +74290,23 @@ var require_utils10 = __commonJS({
74188
74290
  if ((_a2 = packageJson.scripts) == null ? void 0 : _a2[`watch-${appName}`]) {
74189
74291
  delete packageJson.scripts[`watch-${appName}`];
74190
74292
  }
74191
- await file_1.updateJSON(packageJsonPath, packageJson);
74293
+ await (0, file_1.updateJSON)(packageJsonPath, packageJson);
74192
74294
  logger == null ? void 0 : logger.info(i18n_1.i18n.t("INFO_DEL_CAP_APP_FILE_UPDATED", { packageJsonPath }));
74193
- await file_1.deleteDirectory(appPath);
74295
+ await (0, file_1.deleteDirectory)(appPath);
74194
74296
  logger == null ? void 0 : logger.info(i18n_1.i18n.t("INFO_DEL_CAP_APP_DIR_DELETED", { appPath }));
74195
74297
  const usingEntry = `using from './${appName}/annotations';`;
74196
74298
  for (const cdsFilePath of cdsFilePaths) {
74197
- if (await file_1.fileExists(cdsFilePath)) {
74299
+ if (await (0, file_1.fileExists)(cdsFilePath)) {
74198
74300
  try {
74199
- let cdsFile = await file_1.readFile(cdsFilePath);
74301
+ let cdsFile = await (0, file_1.readFile)(cdsFilePath);
74200
74302
  if (cdsFile.indexOf(usingEntry) !== -1) {
74201
74303
  logger == null ? void 0 : logger.info(i18n_1.i18n.t("INFO_DEL_CAP_APP_DELETE_USING", { appName, cdsFilePath }));
74202
74304
  cdsFile = cdsFile.replace(usingEntry, "");
74203
74305
  if (cdsFile.replace(/\n/g, "").trim() === "") {
74204
74306
  logger == null ? void 0 : logger.info(i18n_1.i18n.t("INFO_DEL_CAP_APP_DEL_CDS", { cdsFilePath }));
74205
- await file_1.deleteFile(cdsFilePath);
74307
+ await (0, file_1.deleteFile)(cdsFilePath);
74206
74308
  } else {
74207
- await file_1.updateFile(cdsFilePath, cdsFile);
74309
+ await (0, file_1.updateFile)(cdsFilePath, cdsFile);
74208
74310
  }
74209
74311
  }
74210
74312
  } catch (error3) {
@@ -74212,9 +74314,9 @@ var require_utils10 = __commonJS({
74212
74314
  }
74213
74315
  }
74214
74316
  }
74215
- if ((await file_1.readDirectory(path_1.dirname(appPath))).length === 0) {
74216
- logger == null ? void 0 : logger.info(i18n_1.i18n.t("INFO_DEL_CAP_APP_FOLDER_EMPTY", { appPath: path_1.dirname(appPath) }));
74217
- await file_1.deleteDirectory(path_1.dirname(appPath));
74317
+ if ((await (0, file_1.readDirectory)((0, path_1.dirname)(appPath))).length === 0) {
74318
+ logger == null ? void 0 : logger.info(i18n_1.i18n.t("INFO_DEL_CAP_APP_FOLDER_EMPTY", { appPath: (0, path_1.dirname)(appPath) }));
74319
+ await (0, file_1.deleteDirectory)((0, path_1.dirname)(appPath));
74218
74320
  }
74219
74321
  }
74220
74322
  exports2.deleteCapApp = deleteCapApp;
@@ -74223,7 +74325,7 @@ var require_utils10 = __commonJS({
74223
74325
  let appId = manifest["sap.app"].id;
74224
74326
  if (appId === project_spec_1.AppPomXmlArtifactIdPlaceholder) {
74225
74327
  try {
74226
- const pomFile = await file_1.readFile(path_1.join(projectRoot, "pom.xml"));
74328
+ const pomFile = await (0, file_1.readFile)((0, path_1.join)(projectRoot, "pom.xml"));
74227
74329
  const pomXml = fast_xml_parser_1.default.parse(pomFile);
74228
74330
  if ((_a2 = pomXml.project) == null ? void 0 : _a2.artifactId) {
74229
74331
  appId = pomXml.project.artifactId;
@@ -74231,7 +74333,7 @@ var require_utils10 = __commonJS({
74231
74333
  throw new Error();
74232
74334
  }
74233
74335
  } catch (error3) {
74234
- appId = path_1.basename(projectRoot);
74336
+ appId = (0, path_1.basename)(projectRoot);
74235
74337
  }
74236
74338
  }
74237
74339
  return appId;
@@ -74239,48 +74341,48 @@ var require_utils10 = __commonJS({
74239
74341
  exports2.getApplicationId = getApplicationId;
74240
74342
  function getCapAppMockdataDirPath(projectRoot) {
74241
74343
  const capMockdataDirPaths = [
74242
- path_1.join(projectRoot, project_spec_1.DirName.Db, project_spec_1.DirName.Csv),
74243
- path_1.join(projectRoot, project_spec_1.DirName.Db, project_spec_1.DirName.Sapux, project_spec_1.DirName.Csv)
74344
+ (0, path_1.join)(projectRoot, project_spec_1.DirName.Db, project_spec_1.DirName.Csv),
74345
+ (0, path_1.join)(projectRoot, project_spec_1.DirName.Db, project_spec_1.DirName.Sapux, project_spec_1.DirName.Csv)
74244
74346
  ];
74245
74347
  for (const path5 of capMockdataDirPaths) {
74246
- if (fs_1.existsSync(path5)) {
74348
+ if ((0, fs_1.existsSync)(path5)) {
74247
74349
  return path5;
74248
74350
  }
74249
74351
  }
74250
- return path_1.join(projectRoot, project_spec_1.DirName.Db, project_spec_1.DirName.Data);
74352
+ return (0, path_1.join)(projectRoot, project_spec_1.DirName.Db, project_spec_1.DirName.Data);
74251
74353
  }
74252
74354
  exports2.getCapAppMockdataDirPath = getCapAppMockdataDirPath;
74253
74355
  function getEdmxAppDefaultMockdataDirPath(appRoot) {
74254
- return path_1.join(appRoot, project_spec_1.DirName.Webapp, project_spec_1.DirName.LocalService, project_spec_1.DirName.Data);
74356
+ return (0, path_1.join)(appRoot, project_spec_1.DirName.Webapp, project_spec_1.DirName.LocalService, project_spec_1.DirName.Data);
74255
74357
  }
74256
74358
  exports2.getEdmxAppDefaultMockdataDirPath = getEdmxAppDefaultMockdataDirPath;
74257
74359
  async function tryGetEdmxAppMockServiceMockdataDir(configDir, serviceMetadataPath) {
74258
- const config2 = await ui5Config_1.getMockServerConfig(configDir);
74360
+ const config2 = await (0, ui5Config_1.getMockServerConfig)(configDir);
74259
74361
  if (config2) {
74260
- const { services, mockFolder } = await ui5Config_1.getMockServicesConfiguration(configDir, config2);
74362
+ const { services, mockFolder } = await (0, ui5Config_1.getMockServicesConfiguration)(configDir, config2);
74261
74363
  if (services) {
74262
- const mockService = ui5Config_1.findMockServiceByMetadataPath(services, serviceMetadataPath);
74364
+ const mockService = (0, ui5Config_1.findMockServiceByMetadataPath)(services, serviceMetadataPath);
74263
74365
  if (mockService == null ? void 0 : mockService.mockdataPath) {
74264
- const servicesConfigFilePath = mockFolder ? path_1.resolve(configDir, mockFolder) : configDir;
74265
- return path_1.resolve(servicesConfigFilePath, mockService.mockdataPath);
74366
+ const servicesConfigFilePath = mockFolder ? (0, path_1.resolve)(configDir, mockFolder) : configDir;
74367
+ return (0, path_1.resolve)(servicesConfigFilePath, mockService.mockdataPath);
74266
74368
  }
74267
74369
  }
74268
74370
  }
74269
74371
  }
74270
74372
  exports2.tryGetEdmxAppMockServiceMockdataDir = tryGetEdmxAppMockServiceMockdataDir;
74271
74373
  async function isAdaptationProject(projectRoot) {
74272
- const adpConfigJsonPath = path_1.join(projectRoot, ".adp", "config.json");
74273
- return file_1.fileExists(adpConfigJsonPath);
74374
+ const adpConfigJsonPath = (0, path_1.join)(projectRoot, ".adp", "config.json");
74375
+ return (0, file_1.fileExists)(adpConfigJsonPath);
74274
74376
  }
74275
74377
  exports2.isAdaptationProject = isAdaptationProject;
74276
74378
  function getAdditionalEntitySetsFromManifest(json) {
74277
74379
  const jsonPathTargetsPattern = `$['sap.ui5'].routing.targets`;
74278
74380
  const jsonPathEntitySetsPattern = `options.settings.views.paths.*.entitySet`;
74279
- const pages = jsonpath_plus_1.JSONPath({ path: jsonPathTargetsPattern, json })[0];
74381
+ const pages = (0, jsonpath_plus_1.JSONPath)({ path: jsonPathTargetsPattern, json })[0];
74280
74382
  const additionalEntitySets = {};
74281
74383
  for (const pageId in pages) {
74282
74384
  const page = pages[pageId];
74283
- const viewEntitySets = jsonpath_plus_1.JSONPath({
74385
+ const viewEntitySets = (0, jsonpath_plus_1.JSONPath)({
74284
74386
  path: jsonPathEntitySetsPattern,
74285
74387
  json: page
74286
74388
  });
@@ -74510,7 +74612,7 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
74510
74612
  async function getCommonProperties() {
74511
74613
  const commonProperties = {};
74512
74614
  commonProperties[types_1.CommonProperties.DevSpace] = await getSbasDevspace();
74513
- commonProperties[types_1.CommonProperties.AppStudio] = ux_common_utils_1.isAppStudio();
74615
+ commonProperties[types_1.CommonProperties.AppStudio] = (0, ux_common_utils_1.isAppStudio)();
74514
74616
  commonProperties[types_1.CommonProperties.AppStudioBackwardCompatible] = commonProperties[types_1.CommonProperties.AppStudio];
74515
74617
  commonProperties[types_1.CommonProperties.InternlVsExternal] = getInternalVsExternal();
74516
74618
  commonProperties[types_1.CommonProperties.InternlVsExternalBackwardCompatible] = commonProperties[types_1.CommonProperties.InternlVsExternal];
@@ -74519,7 +74621,7 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
74519
74621
  exports2.getCommonProperties = getCommonProperties;
74520
74622
  async function getSbasDevspace() {
74521
74623
  var _a2, _b;
74522
- if (ux_common_utils_1.isAppStudio()) {
74624
+ if ((0, ux_common_utils_1.isAppStudio)()) {
74523
74625
  try {
74524
74626
  const h20Url = process.env.H2O_URL;
74525
74627
  const workspaceId = process.env.WORKSPACE_ID.replace("workspaces-", "");
@@ -74573,13 +74675,13 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
74573
74675
  try {
74574
74676
  let projectRoot;
74575
74677
  try {
74576
- projectRoot = await utils_1.findProjectRoot(appPath);
74678
+ projectRoot = await (0, utils_1.findProjectRoot)(appPath);
74577
74679
  } catch {
74578
74680
  }
74579
74681
  if (!projectRoot) {
74580
74682
  try {
74581
74683
  const appParentFolder = path_1.default.dirname(appPath);
74582
- projectRoot = await utils_1.findProjectRoot(appParentFolder, false);
74684
+ projectRoot = await (0, utils_1.findProjectRoot)(appParentFolder, false);
74583
74685
  } catch (e) {
74584
74686
  }
74585
74687
  }
@@ -74587,17 +74689,17 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
74587
74689
  if (!projectRoot) {
74588
74690
  const directParentFolder = path_1.default.dirname(appPath);
74589
74691
  const twoLevelUpParentFolder = path_1.default.dirname(directParentFolder);
74590
- isCapJavaWithoutPackageJson = await capProject_1.isCapJavaProject(twoLevelUpParentFolder);
74692
+ isCapJavaWithoutPackageJson = await (0, capProject_1.isCapJavaProject)(twoLevelUpParentFolder);
74591
74693
  projectRoot = isCapJavaWithoutPackageJson ? twoLevelUpParentFolder : appPath;
74592
74694
  }
74593
74695
  if (isCapJavaWithoutPackageJson) {
74594
74696
  return types_1.ODataSource.CAPJava;
74595
74697
  }
74596
- const projectType = await utils_1.getProjectType(projectRoot);
74698
+ const projectType = await (0, utils_1.getProjectType)(projectRoot);
74597
74699
  if (projectType === "Cap") {
74598
- if (await capProject_1.isCapJavaProject(projectRoot)) {
74700
+ if (await (0, capProject_1.isCapJavaProject)(projectRoot)) {
74599
74701
  return types_1.ODataSource.CAPJava;
74600
- } else if (await capProject_1.isCapNodeJsProject(projectRoot)) {
74702
+ } else if (await (0, capProject_1.isCapNodeJsProject)(projectRoot)) {
74601
74703
  return types_1.ODataSource.CAPNode;
74602
74704
  }
74603
74705
  } else if (projectType === "Edmx") {
@@ -74630,7 +74732,7 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
74630
74732
  return types_1.DeployTarget.NO_DEPLOY_CONFIG;
74631
74733
  }
74632
74734
  function getInternalVsExternal() {
74633
- return ux_feature_toggle_1.isInternalFeaturesSettingEnabled() ? "internal" : "external";
74735
+ return (0, ux_feature_toggle_1.isInternalFeaturesSettingEnabled)() ? "internal" : "external";
74634
74736
  }
74635
74737
  async function getToolsId(appPath) {
74636
74738
  var _a2, _b, _c;
@@ -80167,9 +80269,9 @@ var require_cloneDeep = __commonJS({
80167
80269
  }
80168
80270
  });
80169
80271
 
80170
- // ../../node_modules/@sap-ux/logger/dist/types.js
80272
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/types.js
80171
80273
  var require_types10 = __commonJS({
80172
- "../../node_modules/@sap-ux/logger/dist/types.js"(exports2) {
80274
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/types.js"(exports2) {
80173
80275
  "use strict";
80174
80276
  var __importDefault = exports2 && exports2.__importDefault || function(mod) {
80175
80277
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -83078,9 +83180,9 @@ var require_winston_transport = __commonJS({
83078
83180
  }
83079
83181
  });
83080
83182
 
83081
- // ../../node_modules/@sap-ux/logger/dist/transports/transport.js
83183
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/transports/transport.js
83082
83184
  var require_transport = __commonJS({
83083
- "../../node_modules/@sap-ux/logger/dist/transports/transport.js"(exports2) {
83185
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/transports/transport.js"(exports2) {
83084
83186
  "use strict";
83085
83187
  var __importDefault = exports2 && exports2.__importDefault || function(mod) {
83086
83188
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -83165,9 +83267,9 @@ var require_transport = __commonJS({
83165
83267
  }
83166
83268
  });
83167
83269
 
83168
- // ../../node_modules/@sap-ux/logger/dist/transports/index.js
83270
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/transports/index.js
83169
83271
  var require_transports = __commonJS({
83170
- "../../node_modules/@sap-ux/logger/dist/transports/index.js"(exports2) {
83272
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/transports/index.js"(exports2) {
83171
83273
  "use strict";
83172
83274
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
83173
83275
  if (k2 === void 0)
@@ -92828,9 +92930,9 @@ var require_winston = __commonJS({
92828
92930
  }
92829
92931
  });
92830
92932
 
92831
- // ../../node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js
92933
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js
92832
92934
  var require_null_transport = __commonJS({
92833
- "../../node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js"(exports2) {
92935
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js"(exports2) {
92834
92936
  "use strict";
92835
92937
  var __importDefault = exports2 && exports2.__importDefault || function(mod) {
92836
92938
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -92847,9 +92949,9 @@ var require_null_transport = __commonJS({
92847
92949
  }
92848
92950
  });
92849
92951
 
92850
- // ../../node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js
92952
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js
92851
92953
  var require_vscode_output_channel_transport = __commonJS({
92852
- "../../node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js"(exports2) {
92954
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js"(exports2) {
92853
92955
  "use strict";
92854
92956
  var __importDefault = exports2 && exports2.__importDefault || function(mod) {
92855
92957
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -92876,9 +92978,9 @@ var require_vscode_output_channel_transport = __commonJS({
92876
92978
  }
92877
92979
  });
92878
92980
 
92879
- // ../../node_modules/@sap-ux/logger/node_modules/chalk/source/util.js
92981
+ // ../../node_modules/@sap-ux/store/node_modules/chalk/source/util.js
92880
92982
  var require_util6 = __commonJS({
92881
- "../../node_modules/@sap-ux/logger/node_modules/chalk/source/util.js"(exports2, module2) {
92983
+ "../../node_modules/@sap-ux/store/node_modules/chalk/source/util.js"(exports2, module2) {
92882
92984
  "use strict";
92883
92985
  var stringReplaceAll = (string, substring, replacer) => {
92884
92986
  let index2 = string.indexOf(substring);
@@ -92915,9 +93017,9 @@ var require_util6 = __commonJS({
92915
93017
  }
92916
93018
  });
92917
93019
 
92918
- // ../../node_modules/@sap-ux/logger/node_modules/chalk/source/templates.js
93020
+ // ../../node_modules/@sap-ux/store/node_modules/chalk/source/templates.js
92919
93021
  var require_templates3 = __commonJS({
92920
- "../../node_modules/@sap-ux/logger/node_modules/chalk/source/templates.js"(exports2, module2) {
93022
+ "../../node_modules/@sap-ux/store/node_modules/chalk/source/templates.js"(exports2, module2) {
92921
93023
  "use strict";
92922
93024
  var TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
92923
93025
  var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
@@ -93029,9 +93131,9 @@ var require_templates3 = __commonJS({
93029
93131
  }
93030
93132
  });
93031
93133
 
93032
- // ../../node_modules/@sap-ux/logger/node_modules/chalk/source/index.js
93134
+ // ../../node_modules/@sap-ux/store/node_modules/chalk/source/index.js
93033
93135
  var require_source8 = __commonJS({
93034
- "../../node_modules/@sap-ux/logger/node_modules/chalk/source/index.js"(exports2, module2) {
93136
+ "../../node_modules/@sap-ux/store/node_modules/chalk/source/index.js"(exports2, module2) {
93035
93137
  "use strict";
93036
93138
  var ansiStyles = require_ansi_styles();
93037
93139
  var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
@@ -93204,9 +93306,9 @@ var require_source8 = __commonJS({
93204
93306
  }
93205
93307
  });
93206
93308
 
93207
- // ../../node_modules/@sap-ux/logger/dist/winston-logger/adapter.js
93309
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/adapter.js
93208
93310
  var require_adapter = __commonJS({
93209
- "../../node_modules/@sap-ux/logger/dist/winston-logger/adapter.js"(exports2) {
93311
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/adapter.js"(exports2) {
93210
93312
  "use strict";
93211
93313
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
93212
93314
  if (k2 === void 0)
@@ -93337,9 +93439,9 @@ ${level} ${chalk_1.default.magenta(label)} `);
93337
93439
  }
93338
93440
  });
93339
93441
 
93340
- // ../../node_modules/@sap-ux/logger/dist/winston-logger/utils.js
93442
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/utils.js
93341
93443
  var require_utils12 = __commonJS({
93342
- "../../node_modules/@sap-ux/logger/dist/winston-logger/utils.js"(exports2) {
93444
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/utils.js"(exports2) {
93343
93445
  "use strict";
93344
93446
  Object.defineProperty(exports2, "__esModule", { value: true });
93345
93447
  exports2.nextColor = void 0;
@@ -93359,9 +93461,9 @@ var require_utils12 = __commonJS({
93359
93461
  }
93360
93462
  });
93361
93463
 
93362
- // ../../node_modules/@sap-ux/logger/dist/winston-logger/logger.js
93464
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/logger.js
93363
93465
  var require_logger2 = __commonJS({
93364
- "../../node_modules/@sap-ux/logger/dist/winston-logger/logger.js"(exports2) {
93466
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/logger.js"(exports2) {
93365
93467
  "use strict";
93366
93468
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
93367
93469
  if (k2 === void 0)
@@ -93501,9 +93603,9 @@ var require_logger2 = __commonJS({
93501
93603
  }
93502
93604
  });
93503
93605
 
93504
- // ../../node_modules/@sap-ux/logger/dist/winston-logger/index.js
93606
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/index.js
93505
93607
  var require_winston_logger = __commonJS({
93506
- "../../node_modules/@sap-ux/logger/dist/winston-logger/index.js"(exports2) {
93608
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/index.js"(exports2) {
93507
93609
  "use strict";
93508
93610
  Object.defineProperty(exports2, "__esModule", { value: true });
93509
93611
  exports2.WinstonLogger = void 0;
@@ -93514,9 +93616,9 @@ var require_winston_logger = __commonJS({
93514
93616
  }
93515
93617
  });
93516
93618
 
93517
- // ../../node_modules/@sap-ux/logger/dist/index.js
93619
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/index.js
93518
93620
  var require_dist11 = __commonJS({
93519
- "../../node_modules/@sap-ux/logger/dist/index.js"(exports2) {
93621
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/index.js"(exports2) {
93520
93622
  "use strict";
93521
93623
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
93522
93624
  if (k2 === void 0)
@@ -93709,7 +93811,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
93709
93811
  var definePath = (paths) => {
93710
93812
  const platform4 = process.platform;
93711
93813
  let settingsPath = paths[platform4];
93712
- if (ux_common_utils_1.isAppStudio()) {
93814
+ if ((0, ux_common_utils_1.isAppStudio)()) {
93713
93815
  settingsPath = paths.theia;
93714
93816
  }
93715
93817
  if (!settingsPath) {
@@ -93720,20 +93822,20 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
93720
93822
  return path_1.default.join(homedir3, settingsPath);
93721
93823
  };
93722
93824
  var setEnableTelemetry = async (enableTelemetry) => {
93723
- const storeService = await store_1.getService({
93825
+ const storeService = await (0, store_1.getService)({
93724
93826
  entityName: "telemetrySetting"
93725
93827
  });
93726
93828
  const setting = new store_1.TelemetrySetting({ enableTelemetry });
93727
93829
  await storeService.write(setting);
93728
93830
  system_1.TelemetrySystem.telemetryEnabled = enableTelemetry;
93729
- const commonProperties = await toolsSuiteTelemetryDataProcessor_1.getCommonProperties();
93730
- reporting_1.reportEnableTelemetryOnOff(enableTelemetry, commonProperties);
93831
+ const commonProperties = await (0, toolsSuiteTelemetryDataProcessor_1.getCommonProperties)();
93832
+ (0, reporting_1.reportEnableTelemetryOnOff)(enableTelemetry, commonProperties);
93731
93833
  };
93732
93834
  exports2.setEnableTelemetry = setEnableTelemetry;
93733
93835
  var getTelemetrySetting = async () => {
93734
93836
  let setting;
93735
93837
  try {
93736
- const storeService = await store_1.getService({
93838
+ const storeService = await (0, store_1.getService)({
93737
93839
  entityName: "telemetrySetting"
93738
93840
  });
93739
93841
  setting = await storeService.read(new store_1.TelemetrySettingKey());
@@ -93743,7 +93845,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
93743
93845
  };
93744
93846
  exports2.getTelemetrySetting = getTelemetrySetting;
93745
93847
  var readEnableTelemetryFromSetting = async () => {
93746
- const storeService = await store_1.getService({
93848
+ const storeService = await (0, store_1.getService)({
93747
93849
  entityName: "telemetrySetting"
93748
93850
  });
93749
93851
  let setting;
@@ -93754,7 +93856,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
93754
93856
  if (!setting) {
93755
93857
  const deprecatedSettingPath = definePath(settingPaths);
93756
93858
  if (!deprecatedSettingPath) {
93757
- exports2.setEnableTelemetry(true);
93859
+ (0, exports2.setEnableTelemetry)(true);
93758
93860
  } else {
93759
93861
  let content;
93760
93862
  try {
@@ -93765,27 +93867,27 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
93765
93867
  return (_a2 = deprecatedSetting[propKey]) != null ? _a2 : true;
93766
93868
  });
93767
93869
  const deprecatedEnableTelemetrySetting = propValues.reduce((prevValue, currentValue) => prevValue && currentValue);
93768
- exports2.setEnableTelemetry(deprecatedEnableTelemetrySetting);
93870
+ (0, exports2.setEnableTelemetry)(deprecatedEnableTelemetrySetting);
93769
93871
  } catch {
93770
- exports2.setEnableTelemetry(true);
93872
+ (0, exports2.setEnableTelemetry)(true);
93771
93873
  }
93772
93874
  }
93773
93875
  } else {
93774
93876
  system_1.TelemetrySystem.telemetryEnabled = setting.enableTelemetry;
93775
93877
  }
93776
93878
  if (system_1.TelemetrySystem.WORKSTREAM === "extension") {
93777
- store_1.getFilesystemWatcherFor(store_1.Entity.TelemetrySetting, async () => {
93879
+ (0, store_1.getFilesystemWatcherFor)(store_1.Entity.TelemetrySetting, async () => {
93778
93880
  const watchedSetting = await storeService.read(new store_1.TelemetrySettingKey());
93779
93881
  system_1.TelemetrySystem.telemetryEnabled = watchedSetting.enableTelemetry;
93780
93882
  });
93781
93883
  }
93782
93884
  };
93783
93885
  var initToolsSuiteTelemetrySettings = async () => {
93784
- cloudDebugger_1.debug("start initTelemetrySettings");
93886
+ (0, cloudDebugger_1.debug)("start initTelemetrySettings");
93785
93887
  if (!system_1.TelemetrySystem.WORKSTREAM) {
93786
93888
  throw new Error("Workstream is undefined");
93787
93889
  }
93788
- cloudDebugger_1.debug(`workstream: ${system_1.TelemetrySystem.WORKSTREAM}`);
93890
+ (0, cloudDebugger_1.debug)(`workstream: ${system_1.TelemetrySystem.WORKSTREAM}`);
93789
93891
  system_1.TelemetrySystem.telemetryEnabled = true;
93790
93892
  await readEnableTelemetryFromSetting();
93791
93893
  };
@@ -93802,7 +93904,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
93802
93904
  await initToolsSuiteTelemetrySettings();
93803
93905
  }
93804
93906
  } catch (err) {
93805
- reporting_1.reportRuntimeError(err);
93907
+ (0, reporting_1.reportRuntimeError)(err);
93806
93908
  }
93807
93909
  };
93808
93910
  exports2.initTelemetrySettings = initTelemetrySettings4;
@@ -93816,9 +93918,13 @@ var require_toolsSuiteTelemetry = __commonJS({
93816
93918
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
93817
93919
  if (k2 === void 0)
93818
93920
  k2 = k;
93819
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
93820
- return m[k];
93821
- } });
93921
+ var desc = Object.getOwnPropertyDescriptor(m, k);
93922
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
93923
+ desc = { enumerable: true, get: function() {
93924
+ return m[k];
93925
+ } };
93926
+ }
93927
+ Object.defineProperty(o, k2, desc);
93822
93928
  } : function(o, m, k, k2) {
93823
93929
  if (k2 === void 0)
93824
93930
  k2 = k;
@@ -93848,9 +93954,13 @@ var require_client3 = __commonJS({
93848
93954
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
93849
93955
  if (k2 === void 0)
93850
93956
  k2 = k;
93851
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
93852
- return m[k];
93853
- } });
93957
+ var desc = Object.getOwnPropertyDescriptor(m, k);
93958
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
93959
+ desc = { enumerable: true, get: function() {
93960
+ return m[k];
93961
+ } };
93962
+ }
93963
+ Object.defineProperty(o, k2, desc);
93854
93964
  } : function(o, m, k, k2) {
93855
93965
  if (k2 === void 0)
93856
93966
  k2 = k;
@@ -93941,15 +94051,15 @@ var require_entries = __commonJS({
93941
94051
  exports2.Measurement = exports2.Mark = void 0;
93942
94052
  var types_1 = require_types11();
93943
94053
  var Mark = class {
94054
+ getStartTime() {
94055
+ return this.startTime;
94056
+ }
93944
94057
  constructor(name, type, startTime) {
93945
94058
  this.startTime = startTime;
93946
94059
  this.name = name;
93947
94060
  this.startTime = startTime;
93948
94061
  this.type = type;
93949
94062
  }
93950
- getStartTime() {
93951
- return this.startTime;
93952
- }
93953
94063
  };
93954
94064
  exports2.Mark = Mark;
93955
94065
  var Measurement = class extends Mark {
@@ -94101,7 +94211,7 @@ var require_paramProcessing = __commonJS({
94101
94211
  while (i < pathArr.length) {
94102
94212
  node = node[pathArr[i]];
94103
94213
  if (node === void 0) {
94104
- throw exports2.wrongPathErr(field, paramIndex);
94214
+ throw (0, exports2.wrongPathErr)(field, paramIndex);
94105
94215
  }
94106
94216
  i++;
94107
94217
  }
@@ -94120,7 +94230,7 @@ var require_paramProcessing = __commonJS({
94120
94230
  if (typeof instructions.value === "string") {
94121
94231
  val = instructions.value;
94122
94232
  } else if (instructions.value !== void 0 && instructions.paramIndex !== void 0) {
94123
- val = exports2.getValue(param, instructions.value.path, "val", instructions.paramIndex);
94233
+ val = (0, exports2.getValue)(param, instructions.value.path, "val", instructions.paramIndex);
94124
94234
  } else {
94125
94235
  val = param;
94126
94236
  }
@@ -94138,7 +94248,7 @@ var require_paramProcessing = __commonJS({
94138
94248
  let customMeasurements = {};
94139
94249
  if (Array.isArray(instructions)) {
94140
94250
  for (const instruction of instructions) {
94141
- [processedDimensions, processedMeasurements] = exports2.paramsProcessing(params, instruction);
94251
+ [processedDimensions, processedMeasurements] = (0, exports2.paramsProcessing)(params, instruction);
94142
94252
  customDimensions = {
94143
94253
  ...customDimensions,
94144
94254
  ...processedDimensions
@@ -94149,7 +94259,7 @@ var require_paramProcessing = __commonJS({
94149
94259
  };
94150
94260
  }
94151
94261
  } else {
94152
- [customDimensions, customMeasurements] = exports2.paramsProcessing(params, instructions);
94262
+ [customDimensions, customMeasurements] = (0, exports2.paramsProcessing)(params, instructions);
94153
94263
  }
94154
94264
  return [customDimensions, customMeasurements];
94155
94265
  };
@@ -94213,7 +94323,7 @@ var require_interceptor = __commonJS({
94213
94323
  var captureParam = (target, originalFn, evtName, sampleRate, instructions) => {
94214
94324
  return (...args) => {
94215
94325
  const result2 = originalFn.apply(target, args);
94216
- const [customDimensions, customMeasurements] = paramProcessing_1.getParamsData(args, instructions);
94326
+ const [customDimensions, customMeasurements] = (0, paramProcessing_1.getParamsData)(args, instructions);
94217
94327
  const appinsightClient = client_1.ClientFactory.getTelemetryClient();
94218
94328
  appinsightClient.report(evtName, customDimensions, customMeasurements, sampleRate);
94219
94329
  return result2;
@@ -94223,7 +94333,7 @@ var require_interceptor = __commonJS({
94223
94333
  var captureParamAsync = (target, originalFn, evtName, sampleRate, instructions) => {
94224
94334
  return async (...args) => {
94225
94335
  const result2 = await originalFn.apply(target, args);
94226
- const [customDimensions, customMeasurements] = paramProcessing_1.getParamsData(args, instructions);
94336
+ const [customDimensions, customMeasurements] = (0, paramProcessing_1.getParamsData)(args, instructions);
94227
94337
  const appinsightClient = client_1.ClientFactory.getTelemetryClient();
94228
94338
  appinsightClient.report(evtName, customDimensions, customMeasurements, sampleRate);
94229
94339
  return result2;
@@ -94240,9 +94350,13 @@ var require_config4 = __commonJS({
94240
94350
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
94241
94351
  if (k2 === void 0)
94242
94352
  k2 = k;
94243
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
94244
- return m[k];
94245
- } });
94353
+ var desc = Object.getOwnPropertyDescriptor(m, k);
94354
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
94355
+ desc = { enumerable: true, get: function() {
94356
+ return m[k];
94357
+ } };
94358
+ }
94359
+ Object.defineProperty(o, k2, desc);
94246
94360
  } : function(o, m, k, k2) {
94247
94361
  if (k2 === void 0)
94248
94362
  k2 = k;