@sap/ux-ui5-tooling 1.9.1 → 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
@@ -36245,9 +36245,9 @@ var require_error2 = __commonJS({
36245
36245
  }
36246
36246
  });
36247
36247
 
36248
- // ../lib/odata-client/node_modules/qs/lib/utils.js
36248
+ // ../../node_modules/qs/lib/utils.js
36249
36249
  var require_utils5 = __commonJS({
36250
- "../lib/odata-client/node_modules/qs/lib/utils.js"(exports2, module2) {
36250
+ "../../node_modules/qs/lib/utils.js"(exports2, module2) {
36251
36251
  "use strict";
36252
36252
  var has = Object.prototype.hasOwnProperty;
36253
36253
  var isArray = Array.isArray;
@@ -36427,9 +36427,9 @@ var require_utils5 = __commonJS({
36427
36427
  }
36428
36428
  });
36429
36429
 
36430
- // ../lib/odata-client/node_modules/qs/lib/formats.js
36430
+ // ../../node_modules/qs/lib/formats.js
36431
36431
  var require_formats = __commonJS({
36432
- "../lib/odata-client/node_modules/qs/lib/formats.js"(exports2, module2) {
36432
+ "../../node_modules/qs/lib/formats.js"(exports2, module2) {
36433
36433
  "use strict";
36434
36434
  var replace = String.prototype.replace;
36435
36435
  var percentTwenties = /%20/g;
@@ -36452,9 +36452,9 @@ var require_formats = __commonJS({
36452
36452
  }
36453
36453
  });
36454
36454
 
36455
- // ../lib/odata-client/node_modules/qs/lib/stringify.js
36455
+ // ../../node_modules/qs/lib/stringify.js
36456
36456
  var require_stringify2 = __commonJS({
36457
- "../lib/odata-client/node_modules/qs/lib/stringify.js"(exports2, module2) {
36457
+ "../../node_modules/qs/lib/stringify.js"(exports2, module2) {
36458
36458
  "use strict";
36459
36459
  var utils = require_utils5();
36460
36460
  var formats = require_formats();
@@ -36644,9 +36644,9 @@ var require_stringify2 = __commonJS({
36644
36644
  }
36645
36645
  });
36646
36646
 
36647
- // ../lib/odata-client/node_modules/qs/lib/parse.js
36647
+ // ../../node_modules/qs/lib/parse.js
36648
36648
  var require_parse3 = __commonJS({
36649
- "../lib/odata-client/node_modules/qs/lib/parse.js"(exports2, module2) {
36649
+ "../../node_modules/qs/lib/parse.js"(exports2, module2) {
36650
36650
  "use strict";
36651
36651
  var utils = require_utils5();
36652
36652
  var has = Object.prototype.hasOwnProperty;
@@ -36847,9 +36847,9 @@ var require_parse3 = __commonJS({
36847
36847
  }
36848
36848
  });
36849
36849
 
36850
- // ../lib/odata-client/node_modules/qs/lib/index.js
36850
+ // ../../node_modules/qs/lib/index.js
36851
36851
  var require_lib = __commonJS({
36852
- "../lib/odata-client/node_modules/qs/lib/index.js"(exports2, module2) {
36852
+ "../../node_modules/qs/lib/index.js"(exports2, module2) {
36853
36853
  "use strict";
36854
36854
  var stringify2 = require_stringify2();
36855
36855
  var parse2 = require_parse3();
@@ -55237,16 +55237,18 @@ var require_oDataClient = __commonJS({
55237
55237
  (0, axios_debug_log_1.default)({
55238
55238
  request: (debug2, req) => {
55239
55239
  var _a2;
55240
- 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)}`);
55241
55241
  debug2(req);
55242
55242
  },
55243
55243
  response: (debug2, res) => {
55244
- debug2(`${res.status} ${res.statusText} ${this.buildFullUrl(res.config)}`);
55244
+ debug2(`Response ${res.status} ${res.statusText} ${this.buildFullUrl(res.config)}`);
55245
55245
  debug2(res);
55246
55246
  },
55247
55247
  error: (debug2, error3) => {
55248
- var _a2, _b;
55249
- 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);
55250
55252
  debug2(error3);
55251
55253
  }
55252
55254
  });
@@ -55660,14 +55662,25 @@ var require_v2Catalog = __commonJS({
55660
55662
  return services;
55661
55663
  }
55662
55664
  async findService({ title, path: path5 }) {
55665
+ let version = 1;
55663
55666
  if (!title) {
55664
- title = path5.replace(/\/$/, "").split("/").pop();
55667
+ const titleWithParameters = path5.replace(/\/$/, "").split("/").pop().split(";");
55668
+ title = titleWithParameters[0];
55669
+ const params = titleWithParameters.slice(1);
55665
55670
  if (!title) {
55666
55671
  throw new Error(`Cannot determine service title from path: ${path5}`);
55667
55672
  }
55673
+ params.forEach((parameter) => {
55674
+ const [key, value] = parameter.split("=");
55675
+ if (key === "v") {
55676
+ version = parseInt(value, 10);
55677
+ }
55678
+ });
55668
55679
  }
55669
55680
  title = title.toUpperCase();
55670
- 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);
55671
55684
  if (services.length > 1) {
55672
55685
  const servicesWithSameNameSpace = services.filter((service) => {
55673
55686
  var _a2;
@@ -57586,7 +57599,6 @@ var require_EventName = __commonJS({
57586
57599
  EventName4["ANNOTATION_FILE_BACKEND_LOAD"] = "ANNOTATION_FILE_BACKEND_LOAD";
57587
57600
  EventName4["ANNOTATION_LSP_XML_LOAD"] = "ANNOTATION_LSP_XML_LOAD";
57588
57601
  EventName4["ANNOTATION_LSP_USAGE_TERM"] = "ANNOTATION_LSP_USAGE_TERM";
57589
- EventName4["ANNOTATION_LSP_CODE_COMPLETION_TERM"] = "ANNOTATION_LSP_CODE_COMPLETION_TERM";
57590
57602
  EventName4["ANNOTATION_LSP_CODE_COMPLETION"] = "ANNOTATION_LSP_CODE_COMPLETION";
57591
57603
  EventName4["MIGRATION_ACTIVATED"] = "MIGRATION_ACTIVATED";
57592
57604
  EventName4["MIGRATION_BACKEND_LOAD"] = "MIGRATION_BACKEND_LOAD";
@@ -69251,7 +69263,7 @@ var require_package5 = __commonJS({
69251
69263
  "../lib/telemetry/dist/package.json"(exports2, module2) {
69252
69264
  module2.exports = {
69253
69265
  name: "@sap/ux-telemetry",
69254
- version: "1.9.1",
69266
+ version: "1.9.2",
69255
69267
  description: "SAP Fiori tools telemetry library",
69256
69268
  main: "dist/src/index.js",
69257
69269
  author: "SAP SE",
@@ -69276,10 +69288,10 @@ var require_package5 = __commonJS({
69276
69288
  },
69277
69289
  dependencies: {
69278
69290
  "@sap-ux/store": "0.3.8",
69279
- "@sap/ux-cds": "1.9.1",
69280
- "@sap/ux-common-utils": "1.9.1",
69281
- "@sap/ux-feature-toggle": "1.9.1",
69282
- "@sap/ux-project-access": "1.9.1",
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",
69283
69295
  applicationinsights: "1.4.1",
69284
69296
  axios: "0.26.0",
69285
69297
  "performance-now": "2.1.0",
@@ -80257,9 +80269,9 @@ var require_cloneDeep = __commonJS({
80257
80269
  }
80258
80270
  });
80259
80271
 
80260
- // ../../node_modules/@sap-ux/logger/dist/types.js
80272
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/types.js
80261
80273
  var require_types10 = __commonJS({
80262
- "../../node_modules/@sap-ux/logger/dist/types.js"(exports2) {
80274
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/types.js"(exports2) {
80263
80275
  "use strict";
80264
80276
  var __importDefault = exports2 && exports2.__importDefault || function(mod) {
80265
80277
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -83168,9 +83180,9 @@ var require_winston_transport = __commonJS({
83168
83180
  }
83169
83181
  });
83170
83182
 
83171
- // ../../node_modules/@sap-ux/logger/dist/transports/transport.js
83183
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/transports/transport.js
83172
83184
  var require_transport = __commonJS({
83173
- "../../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) {
83174
83186
  "use strict";
83175
83187
  var __importDefault = exports2 && exports2.__importDefault || function(mod) {
83176
83188
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -83255,9 +83267,9 @@ var require_transport = __commonJS({
83255
83267
  }
83256
83268
  });
83257
83269
 
83258
- // ../../node_modules/@sap-ux/logger/dist/transports/index.js
83270
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/transports/index.js
83259
83271
  var require_transports = __commonJS({
83260
- "../../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) {
83261
83273
  "use strict";
83262
83274
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
83263
83275
  if (k2 === void 0)
@@ -92918,9 +92930,9 @@ var require_winston = __commonJS({
92918
92930
  }
92919
92931
  });
92920
92932
 
92921
- // ../../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
92922
92934
  var require_null_transport = __commonJS({
92923
- "../../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) {
92924
92936
  "use strict";
92925
92937
  var __importDefault = exports2 && exports2.__importDefault || function(mod) {
92926
92938
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -92937,9 +92949,9 @@ var require_null_transport = __commonJS({
92937
92949
  }
92938
92950
  });
92939
92951
 
92940
- // ../../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
92941
92953
  var require_vscode_output_channel_transport = __commonJS({
92942
- "../../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) {
92943
92955
  "use strict";
92944
92956
  var __importDefault = exports2 && exports2.__importDefault || function(mod) {
92945
92957
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -92966,9 +92978,9 @@ var require_vscode_output_channel_transport = __commonJS({
92966
92978
  }
92967
92979
  });
92968
92980
 
92969
- // ../../node_modules/@sap-ux/logger/node_modules/chalk/source/util.js
92981
+ // ../../node_modules/@sap-ux/store/node_modules/chalk/source/util.js
92970
92982
  var require_util6 = __commonJS({
92971
- "../../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) {
92972
92984
  "use strict";
92973
92985
  var stringReplaceAll = (string, substring, replacer) => {
92974
92986
  let index2 = string.indexOf(substring);
@@ -93005,9 +93017,9 @@ var require_util6 = __commonJS({
93005
93017
  }
93006
93018
  });
93007
93019
 
93008
- // ../../node_modules/@sap-ux/logger/node_modules/chalk/source/templates.js
93020
+ // ../../node_modules/@sap-ux/store/node_modules/chalk/source/templates.js
93009
93021
  var require_templates3 = __commonJS({
93010
- "../../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) {
93011
93023
  "use strict";
93012
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;
93013
93025
  var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
@@ -93119,9 +93131,9 @@ var require_templates3 = __commonJS({
93119
93131
  }
93120
93132
  });
93121
93133
 
93122
- // ../../node_modules/@sap-ux/logger/node_modules/chalk/source/index.js
93134
+ // ../../node_modules/@sap-ux/store/node_modules/chalk/source/index.js
93123
93135
  var require_source8 = __commonJS({
93124
- "../../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) {
93125
93137
  "use strict";
93126
93138
  var ansiStyles = require_ansi_styles();
93127
93139
  var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
@@ -93294,9 +93306,9 @@ var require_source8 = __commonJS({
93294
93306
  }
93295
93307
  });
93296
93308
 
93297
- // ../../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
93298
93310
  var require_adapter = __commonJS({
93299
- "../../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) {
93300
93312
  "use strict";
93301
93313
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
93302
93314
  if (k2 === void 0)
@@ -93427,9 +93439,9 @@ ${level} ${chalk_1.default.magenta(label)} `);
93427
93439
  }
93428
93440
  });
93429
93441
 
93430
- // ../../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
93431
93443
  var require_utils12 = __commonJS({
93432
- "../../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) {
93433
93445
  "use strict";
93434
93446
  Object.defineProperty(exports2, "__esModule", { value: true });
93435
93447
  exports2.nextColor = void 0;
@@ -93449,9 +93461,9 @@ var require_utils12 = __commonJS({
93449
93461
  }
93450
93462
  });
93451
93463
 
93452
- // ../../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
93453
93465
  var require_logger2 = __commonJS({
93454
- "../../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) {
93455
93467
  "use strict";
93456
93468
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
93457
93469
  if (k2 === void 0)
@@ -93591,9 +93603,9 @@ var require_logger2 = __commonJS({
93591
93603
  }
93592
93604
  });
93593
93605
 
93594
- // ../../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
93595
93607
  var require_winston_logger = __commonJS({
93596
- "../../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) {
93597
93609
  "use strict";
93598
93610
  Object.defineProperty(exports2, "__esModule", { value: true });
93599
93611
  exports2.WinstonLogger = void 0;
@@ -93604,9 +93616,9 @@ var require_winston_logger = __commonJS({
93604
93616
  }
93605
93617
  });
93606
93618
 
93607
- // ../../node_modules/@sap-ux/logger/dist/index.js
93619
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/index.js
93608
93620
  var require_dist11 = __commonJS({
93609
- "../../node_modules/@sap-ux/logger/dist/index.js"(exports2) {
93621
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/index.js"(exports2) {
93610
93622
  "use strict";
93611
93623
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
93612
93624
  if (k2 === void 0)
@@ -60252,16 +60252,17 @@ var import_project_spec = __toESM(require_dist2());
60252
60252
  var connectLivereload = require_connect_livereload();
60253
60253
  module.exports = async function({ options }) {
60254
60254
  await initI18n();
60255
- const log3 = (0, import_logger.getLogger)("server:liveload");
60256
- const port = await getAvailablePort(options.configuration.port || 35729);
60257
- const key = options.configuration.key || process.env.FIORI_TOOLS_SSL_KEY;
60258
- const cert = options.configuration.cert || process.env.FIORI_TOOLS_SSL_CERT;
60255
+ const config = options.configuration || {};
60256
+ const log3 = (0, import_logger.getLogger)("fiori-tools-appreload");
60257
+ const port = await getAvailablePort(config.port || 35729);
60258
+ const key = config.key || process.env.FIORI_TOOLS_SSL_KEY;
60259
+ const cert = config.cert || process.env.FIORI_TOOLS_SSL_CERT;
60259
60260
  const connectOptions = { port, include: [/.*\.html/] };
60260
60261
  const livereloadOptions = {
60261
- debug: options.configuration.debug,
60262
- exts: options.configuration.ext || "html,js,ts,json,xml,properties,change,variant,ctrl_variant,ctrl_variant_change,ctrl_variant_management_change",
60262
+ debug: config.debug,
60263
+ exts: config.ext || "html,js,ts,json,xml,properties,change,variant,ctrl_variant,ctrl_variant_change,ctrl_variant_management_change",
60263
60264
  port,
60264
- delay: options.configuration.delay
60265
+ delay: config.delay
60265
60266
  };
60266
60267
  if (process.env.WS_BASE_URL !== void 0) {
60267
60268
  connectOptions["src"] = await exposeLivereloadPort(port, log3);
@@ -60272,7 +60273,7 @@ module.exports = async function({ options }) {
60272
60273
  cert: await import_fs.promises.readFile(cert)
60273
60274
  };
60274
60275
  }
60275
- const watchPath = options.configuration.path || import_project_spec.DirName.Webapp;
60276
+ const watchPath = config.path || import_project_spec.DirName.Webapp;
60276
60277
  const projectPath = process.cwd();
60277
60278
  const fullWatchPath = (0, import_path.join)(projectPath, watchPath);
60278
60279
  const livereloadServer = (0, import_livereload.createServer)(livereloadOptions, () => {
@@ -14684,9 +14684,9 @@ var require_error2 = __commonJS({
14684
14684
  }
14685
14685
  });
14686
14686
 
14687
- // ../lib/odata-client/node_modules/qs/lib/utils.js
14687
+ // ../../node_modules/qs/lib/utils.js
14688
14688
  var require_utils5 = __commonJS({
14689
- "../lib/odata-client/node_modules/qs/lib/utils.js"(exports2, module2) {
14689
+ "../../node_modules/qs/lib/utils.js"(exports2, module2) {
14690
14690
  "use strict";
14691
14691
  var has = Object.prototype.hasOwnProperty;
14692
14692
  var isArray = Array.isArray;
@@ -14866,9 +14866,9 @@ var require_utils5 = __commonJS({
14866
14866
  }
14867
14867
  });
14868
14868
 
14869
- // ../lib/odata-client/node_modules/qs/lib/formats.js
14869
+ // ../../node_modules/qs/lib/formats.js
14870
14870
  var require_formats = __commonJS({
14871
- "../lib/odata-client/node_modules/qs/lib/formats.js"(exports2, module2) {
14871
+ "../../node_modules/qs/lib/formats.js"(exports2, module2) {
14872
14872
  "use strict";
14873
14873
  var replace = String.prototype.replace;
14874
14874
  var percentTwenties = /%20/g;
@@ -14891,9 +14891,9 @@ var require_formats = __commonJS({
14891
14891
  }
14892
14892
  });
14893
14893
 
14894
- // ../lib/odata-client/node_modules/qs/lib/stringify.js
14894
+ // ../../node_modules/qs/lib/stringify.js
14895
14895
  var require_stringify = __commonJS({
14896
- "../lib/odata-client/node_modules/qs/lib/stringify.js"(exports2, module2) {
14896
+ "../../node_modules/qs/lib/stringify.js"(exports2, module2) {
14897
14897
  "use strict";
14898
14898
  var utils = require_utils5();
14899
14899
  var formats = require_formats();
@@ -15083,9 +15083,9 @@ var require_stringify = __commonJS({
15083
15083
  }
15084
15084
  });
15085
15085
 
15086
- // ../lib/odata-client/node_modules/qs/lib/parse.js
15086
+ // ../../node_modules/qs/lib/parse.js
15087
15087
  var require_parse = __commonJS({
15088
- "../lib/odata-client/node_modules/qs/lib/parse.js"(exports2, module2) {
15088
+ "../../node_modules/qs/lib/parse.js"(exports2, module2) {
15089
15089
  "use strict";
15090
15090
  var utils = require_utils5();
15091
15091
  var has = Object.prototype.hasOwnProperty;
@@ -15286,9 +15286,9 @@ var require_parse = __commonJS({
15286
15286
  }
15287
15287
  });
15288
15288
 
15289
- // ../lib/odata-client/node_modules/qs/lib/index.js
15289
+ // ../../node_modules/qs/lib/index.js
15290
15290
  var require_lib = __commonJS({
15291
- "../lib/odata-client/node_modules/qs/lib/index.js"(exports2, module2) {
15291
+ "../../node_modules/qs/lib/index.js"(exports2, module2) {
15292
15292
  "use strict";
15293
15293
  var stringify2 = require_stringify();
15294
15294
  var parse3 = require_parse();
@@ -33676,16 +33676,18 @@ var require_oDataClient = __commonJS({
33676
33676
  (0, axios_debug_log_1.default)({
33677
33677
  request: (debug, req) => {
33678
33678
  var _a2;
33679
- debug(`${(_a2 = req.method) == null ? void 0 : _a2.toUpperCase()} ${this.buildFullUrl(req)}`);
33679
+ debug(`Request ${(_a2 = req.method) == null ? void 0 : _a2.toUpperCase()} ${this.buildFullUrl(req)}`);
33680
33680
  debug(req);
33681
33681
  },
33682
33682
  response: (debug, res) => {
33683
- debug(`${res.status} ${res.statusText} ${this.buildFullUrl(res.config)}`);
33683
+ debug(`Response ${res.status} ${res.statusText} ${this.buildFullUrl(res.config)}`);
33684
33684
  debug(res);
33685
33685
  },
33686
33686
  error: (debug, error3) => {
33687
- var _a2, _b;
33688
- debug(`${error3.code} ${(_b = (_a2 = error3.response) == null ? void 0 : _a2.data) == null ? void 0 : _b.message}`);
33687
+ var _a2, _b, _c, _d, _e, _f;
33688
+ debug(`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 : {})}
33689
+ `);
33690
+ debug(error3.response);
33689
33691
  debug(error3);
33690
33692
  }
33691
33693
  });
@@ -34099,14 +34101,25 @@ var require_v2Catalog = __commonJS({
34099
34101
  return services;
34100
34102
  }
34101
34103
  async findService({ title, path }) {
34104
+ let version = 1;
34102
34105
  if (!title) {
34103
- title = path.replace(/\/$/, "").split("/").pop();
34106
+ const titleWithParameters = path.replace(/\/$/, "").split("/").pop().split(";");
34107
+ title = titleWithParameters[0];
34108
+ const params = titleWithParameters.slice(1);
34104
34109
  if (!title) {
34105
34110
  throw new Error(`Cannot determine service title from path: ${path}`);
34106
34111
  }
34112
+ params.forEach((parameter) => {
34113
+ const [key, value] = parameter.split("=");
34114
+ if (key === "v") {
34115
+ version = parseInt(value, 10);
34116
+ }
34117
+ });
34107
34118
  }
34108
34119
  title = title.toUpperCase();
34109
- const services = await this.get(`/ServiceCollection/?$filter=Title%20eq%20%27${title}%27&$format=json`);
34120
+ const uriTemplate = `/ServiceCollection/?$filter=Title eq '${title}' and TechnicalServiceVersion eq ${version}&$format=json`;
34121
+ const uri = encodeURI(uriTemplate);
34122
+ const services = await this.get(uri);
34110
34123
  if (services.length > 1) {
34111
34124
  const servicesWithSameNameSpace = services.filter((service) => {
34112
34125
  var _a2;
@@ -41964,7 +41977,6 @@ var require_EventName = __commonJS({
41964
41977
  EventName3["ANNOTATION_FILE_BACKEND_LOAD"] = "ANNOTATION_FILE_BACKEND_LOAD";
41965
41978
  EventName3["ANNOTATION_LSP_XML_LOAD"] = "ANNOTATION_LSP_XML_LOAD";
41966
41979
  EventName3["ANNOTATION_LSP_USAGE_TERM"] = "ANNOTATION_LSP_USAGE_TERM";
41967
- EventName3["ANNOTATION_LSP_CODE_COMPLETION_TERM"] = "ANNOTATION_LSP_CODE_COMPLETION_TERM";
41968
41980
  EventName3["ANNOTATION_LSP_CODE_COMPLETION"] = "ANNOTATION_LSP_CODE_COMPLETION";
41969
41981
  EventName3["MIGRATION_ACTIVATED"] = "MIGRATION_ACTIVATED";
41970
41982
  EventName3["MIGRATION_BACKEND_LOAD"] = "MIGRATION_BACKEND_LOAD";
@@ -53629,7 +53641,7 @@ var require_package6 = __commonJS({
53629
53641
  "../lib/telemetry/dist/package.json"(exports2, module2) {
53630
53642
  module2.exports = {
53631
53643
  name: "@sap/ux-telemetry",
53632
- version: "1.9.1",
53644
+ version: "1.9.2",
53633
53645
  description: "SAP Fiori tools telemetry library",
53634
53646
  main: "dist/src/index.js",
53635
53647
  author: "SAP SE",
@@ -53654,10 +53666,10 @@ var require_package6 = __commonJS({
53654
53666
  },
53655
53667
  dependencies: {
53656
53668
  "@sap-ux/store": "0.3.8",
53657
- "@sap/ux-cds": "1.9.1",
53658
- "@sap/ux-common-utils": "1.9.1",
53659
- "@sap/ux-feature-toggle": "1.9.1",
53660
- "@sap/ux-project-access": "1.9.1",
53669
+ "@sap/ux-cds": "1.9.2",
53670
+ "@sap/ux-common-utils": "1.9.2",
53671
+ "@sap/ux-feature-toggle": "1.9.2",
53672
+ "@sap/ux-project-access": "1.9.2",
53661
53673
  applicationinsights: "1.4.1",
53662
53674
  axios: "0.26.0",
53663
53675
  "performance-now": "2.1.0",
@@ -67638,9 +67650,9 @@ var require_cloneDeep = __commonJS({
67638
67650
  }
67639
67651
  });
67640
67652
 
67641
- // ../../node_modules/@sap-ux/logger/dist/types.js
67653
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/types.js
67642
67654
  var require_types8 = __commonJS({
67643
- "../../node_modules/@sap-ux/logger/dist/types.js"(exports2) {
67655
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/types.js"(exports2) {
67644
67656
  "use strict";
67645
67657
  var __importDefault = exports2 && exports2.__importDefault || function(mod) {
67646
67658
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -70549,9 +70561,9 @@ var require_winston_transport = __commonJS({
70549
70561
  }
70550
70562
  });
70551
70563
 
70552
- // ../../node_modules/@sap-ux/logger/dist/transports/transport.js
70564
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/transports/transport.js
70553
70565
  var require_transport = __commonJS({
70554
- "../../node_modules/@sap-ux/logger/dist/transports/transport.js"(exports2) {
70566
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/transports/transport.js"(exports2) {
70555
70567
  "use strict";
70556
70568
  var __importDefault = exports2 && exports2.__importDefault || function(mod) {
70557
70569
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -70636,9 +70648,9 @@ var require_transport = __commonJS({
70636
70648
  }
70637
70649
  });
70638
70650
 
70639
- // ../../node_modules/@sap-ux/logger/dist/transports/index.js
70651
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/transports/index.js
70640
70652
  var require_transports = __commonJS({
70641
- "../../node_modules/@sap-ux/logger/dist/transports/index.js"(exports2) {
70653
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/transports/index.js"(exports2) {
70642
70654
  "use strict";
70643
70655
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
70644
70656
  if (k2 === void 0)
@@ -80299,9 +80311,9 @@ var require_winston = __commonJS({
80299
80311
  }
80300
80312
  });
80301
80313
 
80302
- // ../../node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js
80314
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js
80303
80315
  var require_null_transport = __commonJS({
80304
- "../../node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js"(exports2) {
80316
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js"(exports2) {
80305
80317
  "use strict";
80306
80318
  var __importDefault = exports2 && exports2.__importDefault || function(mod) {
80307
80319
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -80318,9 +80330,9 @@ var require_null_transport = __commonJS({
80318
80330
  }
80319
80331
  });
80320
80332
 
80321
- // ../../node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js
80333
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js
80322
80334
  var require_vscode_output_channel_transport = __commonJS({
80323
- "../../node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js"(exports2) {
80335
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js"(exports2) {
80324
80336
  "use strict";
80325
80337
  var __importDefault = exports2 && exports2.__importDefault || function(mod) {
80326
80338
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -80347,9 +80359,9 @@ var require_vscode_output_channel_transport = __commonJS({
80347
80359
  }
80348
80360
  });
80349
80361
 
80350
- // ../../node_modules/@sap-ux/logger/node_modules/chalk/source/util.js
80362
+ // ../../node_modules/@sap-ux/store/node_modules/chalk/source/util.js
80351
80363
  var require_util5 = __commonJS({
80352
- "../../node_modules/@sap-ux/logger/node_modules/chalk/source/util.js"(exports2, module2) {
80364
+ "../../node_modules/@sap-ux/store/node_modules/chalk/source/util.js"(exports2, module2) {
80353
80365
  "use strict";
80354
80366
  var stringReplaceAll = (string, substring, replacer) => {
80355
80367
  let index = string.indexOf(substring);
@@ -80386,9 +80398,9 @@ var require_util5 = __commonJS({
80386
80398
  }
80387
80399
  });
80388
80400
 
80389
- // ../../node_modules/@sap-ux/logger/node_modules/chalk/source/templates.js
80401
+ // ../../node_modules/@sap-ux/store/node_modules/chalk/source/templates.js
80390
80402
  var require_templates3 = __commonJS({
80391
- "../../node_modules/@sap-ux/logger/node_modules/chalk/source/templates.js"(exports2, module2) {
80403
+ "../../node_modules/@sap-ux/store/node_modules/chalk/source/templates.js"(exports2, module2) {
80392
80404
  "use strict";
80393
80405
  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;
80394
80406
  var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
@@ -80500,9 +80512,9 @@ var require_templates3 = __commonJS({
80500
80512
  }
80501
80513
  });
80502
80514
 
80503
- // ../../node_modules/@sap-ux/logger/node_modules/chalk/source/index.js
80515
+ // ../../node_modules/@sap-ux/store/node_modules/chalk/source/index.js
80504
80516
  var require_source3 = __commonJS({
80505
- "../../node_modules/@sap-ux/logger/node_modules/chalk/source/index.js"(exports2, module2) {
80517
+ "../../node_modules/@sap-ux/store/node_modules/chalk/source/index.js"(exports2, module2) {
80506
80518
  "use strict";
80507
80519
  var ansiStyles = require_ansi_styles();
80508
80520
  var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
@@ -80675,9 +80687,9 @@ var require_source3 = __commonJS({
80675
80687
  }
80676
80688
  });
80677
80689
 
80678
- // ../../node_modules/@sap-ux/logger/dist/winston-logger/adapter.js
80690
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/adapter.js
80679
80691
  var require_adapter = __commonJS({
80680
- "../../node_modules/@sap-ux/logger/dist/winston-logger/adapter.js"(exports2) {
80692
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/adapter.js"(exports2) {
80681
80693
  "use strict";
80682
80694
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
80683
80695
  if (k2 === void 0)
@@ -80808,9 +80820,9 @@ ${level} ${chalk_1.default.magenta(label)} `);
80808
80820
  }
80809
80821
  });
80810
80822
 
80811
- // ../../node_modules/@sap-ux/logger/dist/winston-logger/utils.js
80823
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/utils.js
80812
80824
  var require_utils12 = __commonJS({
80813
- "../../node_modules/@sap-ux/logger/dist/winston-logger/utils.js"(exports2) {
80825
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/utils.js"(exports2) {
80814
80826
  "use strict";
80815
80827
  Object.defineProperty(exports2, "__esModule", { value: true });
80816
80828
  exports2.nextColor = void 0;
@@ -80830,9 +80842,9 @@ var require_utils12 = __commonJS({
80830
80842
  }
80831
80843
  });
80832
80844
 
80833
- // ../../node_modules/@sap-ux/logger/dist/winston-logger/logger.js
80845
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/logger.js
80834
80846
  var require_logger2 = __commonJS({
80835
- "../../node_modules/@sap-ux/logger/dist/winston-logger/logger.js"(exports2) {
80847
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/logger.js"(exports2) {
80836
80848
  "use strict";
80837
80849
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
80838
80850
  if (k2 === void 0)
@@ -80972,9 +80984,9 @@ var require_logger2 = __commonJS({
80972
80984
  }
80973
80985
  });
80974
80986
 
80975
- // ../../node_modules/@sap-ux/logger/dist/winston-logger/index.js
80987
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/index.js
80976
80988
  var require_winston_logger = __commonJS({
80977
- "../../node_modules/@sap-ux/logger/dist/winston-logger/index.js"(exports2) {
80989
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/index.js"(exports2) {
80978
80990
  "use strict";
80979
80991
  Object.defineProperty(exports2, "__esModule", { value: true });
80980
80992
  exports2.WinstonLogger = void 0;
@@ -80985,9 +80997,9 @@ var require_winston_logger = __commonJS({
80985
80997
  }
80986
80998
  });
80987
80999
 
80988
- // ../../node_modules/@sap-ux/logger/dist/index.js
81000
+ // ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/index.js
80989
81001
  var require_dist10 = __commonJS({
80990
- "../../node_modules/@sap-ux/logger/dist/index.js"(exports2) {
81002
+ "../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/index.js"(exports2) {
80991
81003
  "use strict";
80992
81004
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
80993
81005
  if (k2 === void 0)
@@ -83952,7 +83964,14 @@ var sendTelemetryReport = async (req, res, next) => {
83952
83964
  }
83953
83965
  const data2 = req.body;
83954
83966
  data2.layer = await getSapuxLayer();
83955
- import_ux_telemetry2.ClientFactory.getTelemetryClient().report(import_ux_telemetry2.EventName.CPE_EVENT, data2, {}, import_ux_telemetry2.SampleRate.NoSampling);
83967
+ const telemetryEvent = {
83968
+ eventName: import_ux_telemetry2.EventName.CPE_EVENT,
83969
+ properties: data2,
83970
+ measurements: {}
83971
+ };
83972
+ import_ux_telemetry2.ClientFactory.getTelemetryClient().reportEvent(telemetryEvent, import_ux_telemetry2.SampleRate.NoSampling, {
83973
+ appPath: process.cwd()
83974
+ });
83956
83975
  res.status(200).contentType("json").send({ updatedTelemetry: true });
83957
83976
  } catch (error3) {
83958
83977
  next(error3);