@sap/ux-ui5-tooling 1.18.6 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41168,7 +41168,7 @@ var require_package5 = __commonJS({
41168
41168
  "../../node_modules/@sap-ux/telemetry/package.json"(exports2, module2) {
41169
41169
  module2.exports = {
41170
41170
  name: "@sap-ux/telemetry",
41171
- version: "0.6.16",
41171
+ version: "0.6.20",
41172
41172
  description: "Library for sending usage telemetry data",
41173
41173
  repository: {
41174
41174
  type: "git",
@@ -41183,20 +41183,20 @@ var require_package5 = __commonJS({
41183
41183
  main: "dist/index.js",
41184
41184
  dependencies: {
41185
41185
  applicationinsights: "2.9.2",
41186
- axios: "1.8.2",
41186
+ axios: "1.11.0",
41187
41187
  "performance-now": "2.1.0",
41188
41188
  yaml: "2.3.3",
41189
- "@sap-ux/store": "1.1.2",
41190
- "@sap-ux/project-access": "1.30.12",
41191
- "@sap-ux/btp-utils": "1.1.0",
41192
- "@sap-ux/ui5-config": "0.29.2",
41189
+ "@sap-ux/store": "1.1.4",
41190
+ "@sap-ux/project-access": "1.30.14",
41191
+ "@sap-ux/btp-utils": "1.1.1",
41192
+ "@sap-ux/ui5-config": "0.29.4",
41193
41193
  "@sap-ux/logger": "0.7.0",
41194
- "@sap-ux/nodejs-utils": "0.2.2"
41194
+ "@sap-ux/nodejs-utils": "0.2.3"
41195
41195
  },
41196
41196
  devDependencies: {
41197
41197
  "jest-extended": "6.0.0",
41198
41198
  memfs: "3.4.13",
41199
- "ts-jest": "29.4.0",
41199
+ "ts-jest": "29.4.1",
41200
41200
  "ts-node": "10.9.2",
41201
41201
  unionfs: "4.4.0",
41202
41202
  dotenv: "16.3.1"
@@ -98524,11 +98524,12 @@ var require_ui5config = __commonJS({
98524
98524
  * @param fioriTools if true use the middleware included in the @sap/ux-ui5-tooling module
98525
98525
  * @param exclude optional list of files that are to be excluded from the deployment configuration
98526
98526
  * @param index if true a standalone index.html is generated during deployment
98527
+ * @param lrep optional lrep namespace to be used for the deployment configuration
98527
98528
  * @param comments optional comments that are added to the task
98528
98529
  * @returns this UI5Config instance
98529
98530
  * @memberof UI5Config
98530
98531
  */
98531
- addAbapDeployTask(target, app, fioriTools = true, exclude, index = false, comments = []) {
98532
+ addAbapDeployTask(target, app, fioriTools = true, exclude, index = false, lrep, comments = []) {
98532
98533
  this.document.appendTo({
98533
98534
  path: "builder.resources.excludes",
98534
98535
  value: "/test/**"
@@ -98537,7 +98538,7 @@ var require_ui5config = __commonJS({
98537
98538
  path: "builder.resources.excludes",
98538
98539
  value: "/localService/**"
98539
98540
  });
98540
- const configuration = { target, app, exclude };
98541
+ const configuration = { target, app, exclude, lrep };
98541
98542
  if (index) {
98542
98543
  configuration["index"] = true;
98543
98544
  }
@@ -129466,7 +129467,8 @@ var require_hybrid = __commonJS({
129466
129467
  async readAll({ entityName: entityName2, includeSensitiveData = true }) {
129467
129468
  const result = {};
129468
129469
  const entitiesFs = await this.filesystem.readAll({ entityName: entityName2 }) || {};
129469
- if (!includeSensitiveData) {
129470
+ const isEntitiesFsEmpty = Object.keys(entitiesFs).length === 0;
129471
+ if (!includeSensitiveData && !isEntitiesFsEmpty) {
129470
129472
  return entitiesFs;
129471
129473
  }
129472
129474
  const entitiesInSecureStore = await this.secureStore.getAll(getFullyQualifiedServiceName(entityName2)) || {};
@@ -129655,6 +129657,7 @@ var require_backend_system2 = __commonJS({
129655
129657
  var backend_system_1 = require_backend_system();
129656
129658
  var constants_1 = require_constants10();
129657
129659
  var utils_1 = require_utils14();
129660
+ var filesystem_1 = require_filesystem();
129658
129661
  var SystemDataProvider = class {
129659
129662
  dataAccessor;
129660
129663
  entityName = constants_1.Entities.BackendSystem;
@@ -129686,7 +129689,7 @@ var require_backend_system2 = __commonJS({
129686
129689
  });
129687
129690
  }
129688
129691
  async getAll({ includeSensitiveData = true } = {}) {
129689
- var _a3;
129692
+ var _a3, _b2;
129690
129693
  let systems = await this.dataAccessor.readAll({ entityName: this.entityName, includeSensitiveData });
129691
129694
  if (!includeSensitiveData) {
129692
129695
  const allMigrated = await this.ensureSystemTypesExist(systems);
@@ -129700,12 +129703,40 @@ var require_backend_system2 = __commonJS({
129700
129703
  for (const id of Object.keys(systems)) {
129701
129704
  const system = systems[id];
129702
129705
  if (!((_a3 = system == null ? void 0 : system.url) == null ? void 0 : _a3.trim())) {
129703
- this.logger.warn(`Filtering system with ID [${id}] as it seems corrupt. Run repair`);
129704
- delete systems[id];
129706
+ const backendSystem = await this.recoverBackendSystemFromId(id);
129707
+ if ((_b2 = backendSystem == null ? void 0 : backendSystem.url) == null ? void 0 : _b2.trim()) {
129708
+ systems[id] = { ...system, ...backendSystem };
129709
+ const fileSystem = (0, filesystem_1.getFilesystemStore)(this.logger);
129710
+ await fileSystem.write({ entityName: this.entityName, id, entity: backendSystem });
129711
+ } else {
129712
+ this.logger.warn(`Filtering system with ID [${id}] as it seems corrupt. Run repair`);
129713
+ delete systems[id];
129714
+ }
129705
129715
  }
129706
129716
  }
129707
129717
  return Object.values(systems);
129708
129718
  }
129719
+ /**
129720
+ * Recover the URL from the system ID and write it to the file.
129721
+ *
129722
+ * @param systemId - the specific system ID to recover
129723
+ * @returns the recovered partial backend system (a default name with the url and client if present)
129724
+ */
129725
+ async recoverBackendSystemFromId(systemId) {
129726
+ let backendSystem = {};
129727
+ try {
129728
+ const urlObj = new URL(systemId);
129729
+ const client = urlObj.pathname && /^\d{3}$/.test(urlObj.pathname.slice(1)) ? urlObj.pathname.slice(1) : void 0;
129730
+ backendSystem = {
129731
+ name: urlObj.origin + (client ? ", client " + client : ""),
129732
+ url: urlObj.origin,
129733
+ ...client ? { client } : {}
129734
+ };
129735
+ } catch {
129736
+ this.logger.error(`Error while writing recovered entries from the secure store to the file.`);
129737
+ }
129738
+ return backendSystem;
129739
+ }
129709
129740
  async ensureSystemTypesExist(systems) {
129710
129741
  let allSystemsHaveType = true;
129711
129742
  for (const [id, system] of Object.entries(systems)) {
@@ -145680,7 +145711,8 @@ var require_constants11 = __commonJS({
145680
145711
  "sap.ux.help.testBetaFeatures.enableFioriAIAppModeler": "165a0e31-35ea-4bee-8d47-b8593435a82g",
145681
145712
  "sap.ux.help.testBetaFeatures.enableFioriAIRapGeneration": "165a0e31-35ea-4bee-8d47-b8593435a82h",
145682
145713
  "sap.ux.applicationModeler.testBetaFeatures.manifestEditor": true,
145683
- "sap.ux.appGenerator.testBetaFeatures.newAnnotationAPI": true
145714
+ "sap.ux.appGenerator.testBetaFeatures.newAnnotationAPI": true,
145715
+ "sap.ux.appGenerator.testBetaFeatures.disableBtpServiceKeyAuth": false
145684
145716
  };
145685
145717
  exports2.FeatureToggleKey = "testBetaFeatures";
145686
145718
  exports2.ExperimentalFeatures = "sap.ux.applicationModeler.enableExperimentalFeatures";
@@ -164531,7 +164563,7 @@ var import_yaml2 = __toESM(require_dist6());
164531
164563
  var package_default = {
164532
164564
  name: "@sap/ux-ui5-tooling",
164533
164565
  displayName: "SAP Fiori Tools \u2013 UI5 Tooling",
164534
- version: "1.18.6",
164566
+ version: "1.19.0",
164535
164567
  description: "SAP Fiori Tools \u2013 UI5 Tooling",
164536
164568
  publisher: "SAPSE",
164537
164569
  license: "SEE LICENSE IN LICENSE",
@@ -164566,38 +164598,38 @@ var package_default = {
164566
164598
  madge: "madge --warning --circular --extensions ts ./"
164567
164599
  },
164568
164600
  dependencies: {
164569
- "@sap-ux/preview-middleware": "0.23.0",
164601
+ "@sap-ux/preview-middleware": "0.23.9",
164570
164602
  "@ui5/fs": "3.0.4",
164571
164603
  "connect-livereload": "0.6.1",
164572
164604
  debug: "4.3.7",
164573
164605
  express: "4.21.2",
164574
164606
  livereload: "0.9.3",
164575
164607
  semver: "7.6.3",
164576
- "update-notifier-cjs": "5.1.6"
164608
+ "update-notifier-cjs": "5.1.7"
164577
164609
  },
164578
164610
  optionalDependencies: {
164579
164611
  "@zowe/secrets-for-zowe-sdk": "8.1.2"
164580
164612
  },
164581
164613
  devDependencies: {
164582
164614
  "@playwright/test": "1.53.1",
164583
- "@sap-ux/adp-tooling": "0.15.21",
164584
- "@sap-ux/axios-extension": "1.22.5",
164585
- "@sap-ux/backend-proxy-middleware": "0.9.12",
164586
- "@sap-ux/btp-utils": "1.1.0",
164587
- "@sap-ux/deploy-tooling": "0.16.42",
164588
- "@sap-ux/feature-toggle": "0.3.0",
164615
+ "@sap-ux/adp-tooling": "0.15.27",
164616
+ "@sap-ux/axios-extension": "1.22.7",
164617
+ "@sap-ux/backend-proxy-middleware": "0.9.17",
164618
+ "@sap-ux/btp-utils": "1.1.1",
164619
+ "@sap-ux/deploy-tooling": "0.16.48",
164620
+ "@sap-ux/feature-toggle": "0.3.1",
164589
164621
  "@sap-ux/guided-answers-helper": "0.4.0",
164590
164622
  "@sap-ux/logger": "0.7.0",
164591
- "@sap-ux/nodejs-utils": "0.2.2",
164592
- "@sap-ux/project-access": "1.30.12",
164593
- "@sap-ux/reload-middleware": "0.3.0",
164594
- "@sap-ux/serve-static-middleware": "0.3.0",
164595
- "@sap-ux/store": "1.1.2",
164596
- "@sap-ux/telemetry": "0.6.16",
164597
- "@sap-ux/ui5-config": "0.29.2",
164598
- "@sap-ux/ui5-info": "0.12.1",
164599
- "@sap-ux/ui5-proxy-middleware": "1.5.9",
164600
- "@sap/ux-app-templates": "1.18.6",
164623
+ "@sap-ux/nodejs-utils": "0.2.3",
164624
+ "@sap-ux/project-access": "1.30.14",
164625
+ "@sap-ux/reload-middleware": "0.3.1",
164626
+ "@sap-ux/serve-static-middleware": "0.4.0",
164627
+ "@sap-ux/store": "1.1.4",
164628
+ "@sap-ux/telemetry": "0.6.20",
164629
+ "@sap-ux/ui5-config": "0.29.4",
164630
+ "@sap-ux/ui5-info": "0.12.2",
164631
+ "@sap-ux/ui5-proxy-middleware": "1.5.11",
164632
+ "@sap/ux-app-templates": "1.19.0",
164601
164633
  "@types/fs-extra": "11.0.4",
164602
164634
  "@types/marked": "4.0.1",
164603
164635
  "@types/prompts": "2.0.14",
@@ -164688,6 +164720,8 @@ var cliParamMap = {
164688
164720
  "-au": "archive-url",
164689
164721
  "-ap": "archive-path",
164690
164722
  "-ss": "strict-ssl",
164723
+ "-ic": "ignore-cert-error",
164724
+ "-ics": "ignore-cert-errors",
164691
164725
  "-tm": "testMode",
164692
164726
  "-vb": "verbose",
164693
164727
  "-ur": "username",