@sap/ux-ui5-tooling 1.18.7 → 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.
package/dist/cli/index.js CHANGED
@@ -31275,7 +31275,7 @@ var require_update_notifier_cjs = __commonJS({
31275
31275
  var latestVersion = require_latest_version();
31276
31276
  var importLazy = require_import_lazy()(require);
31277
31277
  var configstore = importLazy("configstore");
31278
- var chalk3 = importLazy("chalk");
31278
+ var chalk4 = importLazy("chalk");
31279
31279
  var semver2 = importLazy("semver");
31280
31280
  var semverDiff = importLazy("semver-diff");
31281
31281
  var isNpm = importLazy("is-npm");
@@ -31314,7 +31314,7 @@ var require_update_notifier_cjs = __commonJS({
31314
31314
  lastUpdateCheck: Date.now()
31315
31315
  });
31316
31316
  } catch {
31317
- const message = chalk3().yellow(format5(" %s update check failed ", options3.pkg.name)) + format5("\n Try running with %s or get access ", chalk3().cyan("sudo")) + "\n to the local update config store via \n" + chalk3().cyan(format5(" sudo chown -R $USER:$(id -gn $USER) %s ", xdgBasedir().config));
31317
+ const message = chalk4().yellow(format5(" %s update check failed ", options3.pkg.name)) + format5("\n Try running with %s or get access ", chalk4().cyan("sudo")) + "\n to the local update config store via \n" + chalk4().cyan(format5(" sudo chown -R $USER:$(id -gn $USER) %s ", xdgBasedir().config));
31318
31318
  process.on("exit", () => {
31319
31319
  console.error(boxen()(message, { align: "center" }));
31320
31320
  });
@@ -31368,7 +31368,7 @@ var require_update_notifier_cjs = __commonJS({
31368
31368
  } else {
31369
31369
  installCommand = `npm i ${this.packageName}`;
31370
31370
  }
31371
- const defaultTemplate = "Update available " + chalk3().dim("{currentVersion}") + chalk3().reset(" \u2192 ") + chalk3().green("{latestVersion}") + " \nRun " + chalk3().cyan("{updateCommand}") + " to update";
31371
+ const defaultTemplate = "Update available " + chalk4().dim("{currentVersion}") + chalk4().reset(" \u2192 ") + chalk4().green("{latestVersion}") + " \nRun " + chalk4().cyan("{updateCommand}") + " to update";
31372
31372
  const template = options3.message || defaultTemplate;
31373
31373
  options3.boxenOptions = options3.boxenOptions || {
31374
31374
  padding: 1,
@@ -51118,11 +51118,12 @@ var require_ui5config = __commonJS({
51118
51118
  * @param fioriTools if true use the middleware included in the @sap/ux-ui5-tooling module
51119
51119
  * @param exclude optional list of files that are to be excluded from the deployment configuration
51120
51120
  * @param index if true a standalone index.html is generated during deployment
51121
+ * @param lrep optional lrep namespace to be used for the deployment configuration
51121
51122
  * @param comments optional comments that are added to the task
51122
51123
  * @returns this UI5Config instance
51123
51124
  * @memberof UI5Config
51124
51125
  */
51125
- addAbapDeployTask(target, app, fioriTools = true, exclude, index2 = false, comments = []) {
51126
+ addAbapDeployTask(target, app, fioriTools = true, exclude, index2 = false, lrep, comments = []) {
51126
51127
  this.document.appendTo({
51127
51128
  path: "builder.resources.excludes",
51128
51129
  value: "/test/**"
@@ -51131,7 +51132,7 @@ var require_ui5config = __commonJS({
51131
51132
  path: "builder.resources.excludes",
51132
51133
  value: "/localService/**"
51133
51134
  });
51134
- const configuration = { target, app, exclude };
51135
+ const configuration = { target, app, exclude, lrep };
51135
51136
  if (index2) {
51136
51137
  configuration["index"] = true;
51137
51138
  }
@@ -73710,6 +73711,8 @@ var init_constants = __esm({
73710
73711
  "-au": "archive-url",
73711
73712
  "-ap": "archive-path",
73712
73713
  "-ss": "strict-ssl",
73714
+ "-ic": "ignore-cert-error",
73715
+ "-ics": "ignore-cert-errors",
73713
73716
  "-tm": "testMode",
73714
73717
  "-vb": "verbose",
73715
73718
  "-ur": "username",
@@ -92103,14 +92106,14 @@ var require_templates = __commonJS({
92103
92106
  }
92104
92107
  return results;
92105
92108
  }
92106
- function buildStyle(chalk3, styles) {
92109
+ function buildStyle(chalk4, styles) {
92107
92110
  const enabled2 = {};
92108
92111
  for (const layer of styles) {
92109
92112
  for (const style of layer.styles) {
92110
92113
  enabled2[style[0]] = layer.inverse ? null : style.slice(1);
92111
92114
  }
92112
92115
  }
92113
- let current = chalk3;
92116
+ let current = chalk4;
92114
92117
  for (const [styleName, styles2] of Object.entries(enabled2)) {
92115
92118
  if (!Array.isArray(styles2)) {
92116
92119
  continue;
@@ -92122,7 +92125,7 @@ var require_templates = __commonJS({
92122
92125
  }
92123
92126
  return current;
92124
92127
  }
92125
- module2.exports = (chalk3, temporary) => {
92128
+ module2.exports = (chalk4, temporary) => {
92126
92129
  const styles = [];
92127
92130
  const chunks = [];
92128
92131
  let chunk = [];
@@ -92132,13 +92135,13 @@ var require_templates = __commonJS({
92132
92135
  } else if (style) {
92133
92136
  const string = chunk.join("");
92134
92137
  chunk = [];
92135
- chunks.push(styles.length === 0 ? string : buildStyle(chalk3, styles)(string));
92138
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk4, styles)(string));
92136
92139
  styles.push({ inverse, styles: parseStyle(style) });
92137
92140
  } else if (close) {
92138
92141
  if (styles.length === 0) {
92139
92142
  throw new Error("Found extraneous } in Chalk template literal");
92140
92143
  }
92141
- chunks.push(buildStyle(chalk3, styles)(chunk.join("")));
92144
+ chunks.push(buildStyle(chalk4, styles)(chunk.join("")));
92142
92145
  chunk = [];
92143
92146
  styles.pop();
92144
92147
  } else {
@@ -92186,16 +92189,16 @@ var require_source = __commonJS({
92186
92189
  }
92187
92190
  };
92188
92191
  var chalkFactory = (options3) => {
92189
- const chalk4 = {};
92190
- applyOptions(chalk4, options3);
92191
- chalk4.template = (...arguments_) => chalkTag(chalk4.template, ...arguments_);
92192
- Object.setPrototypeOf(chalk4, Chalk.prototype);
92193
- Object.setPrototypeOf(chalk4.template, chalk4);
92194
- chalk4.template.constructor = () => {
92192
+ const chalk5 = {};
92193
+ applyOptions(chalk5, options3);
92194
+ chalk5.template = (...arguments_) => chalkTag(chalk5.template, ...arguments_);
92195
+ Object.setPrototypeOf(chalk5, Chalk.prototype);
92196
+ Object.setPrototypeOf(chalk5.template, chalk5);
92197
+ chalk5.template.constructor = () => {
92195
92198
  throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
92196
92199
  };
92197
- chalk4.template.Instance = ChalkClass;
92198
- return chalk4.template;
92200
+ chalk5.template.Instance = ChalkClass;
92201
+ return chalk5.template;
92199
92202
  };
92200
92203
  function Chalk(options3) {
92201
92204
  return chalkFactory(options3);
@@ -92306,7 +92309,7 @@ var require_source = __commonJS({
92306
92309
  return openAll + string + closeAll;
92307
92310
  };
92308
92311
  var template;
92309
- var chalkTag = (chalk4, ...strings) => {
92312
+ var chalkTag = (chalk5, ...strings) => {
92310
92313
  const [firstString] = strings;
92311
92314
  if (!isArray3(firstString) || !isArray3(firstString.raw)) {
92312
92315
  return strings.join(" ");
@@ -92322,14 +92325,14 @@ var require_source = __commonJS({
92322
92325
  if (template === void 0) {
92323
92326
  template = require_templates();
92324
92327
  }
92325
- return template(chalk4, parts.join(""));
92328
+ return template(chalk5, parts.join(""));
92326
92329
  };
92327
92330
  Object.defineProperties(Chalk.prototype, styles);
92328
- var chalk3 = Chalk();
92329
- chalk3.supportsColor = stdoutColor;
92330
- chalk3.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
92331
- chalk3.stderr.supportsColor = stderrColor;
92332
- module2.exports = chalk3;
92331
+ var chalk4 = Chalk();
92332
+ chalk4.supportsColor = stdoutColor;
92333
+ chalk4.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
92334
+ chalk4.stderr.supportsColor = stderrColor;
92335
+ module2.exports = chalk4;
92333
92336
  }
92334
92337
  });
92335
92338
 
@@ -158402,7 +158405,7 @@ var require_package8 = __commonJS({
158402
158405
  "../../node_modules/@sap-ux/telemetry/package.json"(exports2, module2) {
158403
158406
  module2.exports = {
158404
158407
  name: "@sap-ux/telemetry",
158405
- version: "0.6.19",
158408
+ version: "0.6.20",
158406
158409
  description: "Library for sending usage telemetry data",
158407
158410
  repository: {
158408
158411
  type: "git",
@@ -158421,16 +158424,16 @@ var require_package8 = __commonJS({
158421
158424
  "performance-now": "2.1.0",
158422
158425
  yaml: "2.3.3",
158423
158426
  "@sap-ux/store": "1.1.4",
158427
+ "@sap-ux/project-access": "1.30.14",
158424
158428
  "@sap-ux/btp-utils": "1.1.1",
158425
- "@sap-ux/project-access": "1.30.13",
158426
- "@sap-ux/ui5-config": "0.29.3",
158429
+ "@sap-ux/ui5-config": "0.29.4",
158427
158430
  "@sap-ux/logger": "0.7.0",
158428
158431
  "@sap-ux/nodejs-utils": "0.2.3"
158429
158432
  },
158430
158433
  devDependencies: {
158431
158434
  "jest-extended": "6.0.0",
158432
158435
  memfs: "3.4.13",
158433
- "ts-jest": "29.4.0",
158436
+ "ts-jest": "29.4.1",
158434
158437
  "ts-node": "10.9.2",
158435
158438
  unionfs: "4.4.0",
158436
158439
  dotenv: "16.3.1"
@@ -161102,14 +161105,14 @@ var require_templates2 = __commonJS({
161102
161105
  }
161103
161106
  return results;
161104
161107
  }
161105
- function buildStyle(chalk3, styles) {
161108
+ function buildStyle(chalk4, styles) {
161106
161109
  const enabled2 = {};
161107
161110
  for (const layer of styles) {
161108
161111
  for (const style of layer.styles) {
161109
161112
  enabled2[style[0]] = layer.inverse ? null : style.slice(1);
161110
161113
  }
161111
161114
  }
161112
- let current = chalk3;
161115
+ let current = chalk4;
161113
161116
  for (const styleName of Object.keys(enabled2)) {
161114
161117
  if (Array.isArray(enabled2[styleName])) {
161115
161118
  if (!(styleName in current)) {
@@ -161124,7 +161127,7 @@ var require_templates2 = __commonJS({
161124
161127
  }
161125
161128
  return current;
161126
161129
  }
161127
- module2.exports = (chalk3, tmp) => {
161130
+ module2.exports = (chalk4, tmp) => {
161128
161131
  const styles = [];
161129
161132
  const chunks = [];
161130
161133
  let chunk = [];
@@ -161134,13 +161137,13 @@ var require_templates2 = __commonJS({
161134
161137
  } else if (style) {
161135
161138
  const str = chunk.join("");
161136
161139
  chunk = [];
161137
- chunks.push(styles.length === 0 ? str : buildStyle(chalk3, styles)(str));
161140
+ chunks.push(styles.length === 0 ? str : buildStyle(chalk4, styles)(str));
161138
161141
  styles.push({ inverse, styles: parseStyle(style) });
161139
161142
  } else if (close) {
161140
161143
  if (styles.length === 0) {
161141
161144
  throw new Error("Found extraneous } in Chalk template literal");
161142
161145
  }
161143
- chunks.push(buildStyle(chalk3, styles)(chunk.join("")));
161146
+ chunks.push(buildStyle(chalk4, styles)(chunk.join("")));
161144
161147
  chunk = [];
161145
161148
  styles.pop();
161146
161149
  } else {
@@ -161177,16 +161180,16 @@ var require_chalk = __commonJS({
161177
161180
  }
161178
161181
  function Chalk(options3) {
161179
161182
  if (!this || !(this instanceof Chalk) || this.template) {
161180
- const chalk3 = {};
161181
- applyOptions(chalk3, options3);
161182
- chalk3.template = function() {
161183
+ const chalk4 = {};
161184
+ applyOptions(chalk4, options3);
161185
+ chalk4.template = function() {
161183
161186
  const args = [].slice.call(arguments);
161184
- return chalkTag.apply(null, [chalk3.template].concat(args));
161187
+ return chalkTag.apply(null, [chalk4.template].concat(args));
161185
161188
  };
161186
- Object.setPrototypeOf(chalk3, Chalk.prototype);
161187
- Object.setPrototypeOf(chalk3.template, chalk3);
161188
- chalk3.template.constructor = Chalk;
161189
- return chalk3.template;
161189
+ Object.setPrototypeOf(chalk4, Chalk.prototype);
161190
+ Object.setPrototypeOf(chalk4.template, chalk4);
161191
+ chalk4.template.constructor = Chalk;
161192
+ return chalk4.template;
161190
161193
  }
161191
161194
  applyOptions(this, options3);
161192
161195
  }
@@ -161305,7 +161308,7 @@ var require_chalk = __commonJS({
161305
161308
  ansiStyles.dim.open = originalDim;
161306
161309
  return str;
161307
161310
  }
161308
- function chalkTag(chalk3, strings) {
161311
+ function chalkTag(chalk4, strings) {
161309
161312
  if (!Array.isArray(strings)) {
161310
161313
  return [].slice.call(arguments, 1).join(" ");
161311
161314
  }
@@ -161315,7 +161318,7 @@ var require_chalk = __commonJS({
161315
161318
  parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
161316
161319
  parts.push(String(strings.raw[i]));
161317
161320
  }
161318
- return template(chalk3, parts.join(""));
161321
+ return template(chalk4, parts.join(""));
161319
161322
  }
161320
161323
  Object.defineProperties(Chalk.prototype, styles);
161321
161324
  module2.exports = Chalk();
@@ -161377,17 +161380,17 @@ var require_lib11 = __commonJS({
161377
161380
  }
161378
161381
  return newObj;
161379
161382
  }
161380
- function getDefs(chalk3) {
161383
+ function getDefs(chalk4) {
161381
161384
  return {
161382
- keyword: chalk3.cyan,
161383
- capitalized: chalk3.yellow,
161384
- jsx_tag: chalk3.yellow,
161385
- punctuator: chalk3.yellow,
161386
- number: chalk3.magenta,
161387
- string: chalk3.green,
161388
- regex: chalk3.magenta,
161389
- comment: chalk3.grey,
161390
- invalid: chalk3.white.bgRed.bold
161385
+ keyword: chalk4.cyan,
161386
+ capitalized: chalk4.yellow,
161387
+ jsx_tag: chalk4.yellow,
161388
+ punctuator: chalk4.yellow,
161389
+ number: chalk4.magenta,
161390
+ string: chalk4.green,
161391
+ regex: chalk4.magenta,
161392
+ comment: chalk4.grey,
161393
+ invalid: chalk4.white.bgRed.bold
161391
161394
  };
161392
161395
  }
161393
161396
  var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
@@ -161430,19 +161433,19 @@ var require_lib11 = __commonJS({
161430
161433
  return _chalk.default.supportsColor || options3.forceColor;
161431
161434
  }
161432
161435
  function getChalk(options3) {
161433
- let chalk3 = _chalk.default;
161436
+ let chalk4 = _chalk.default;
161434
161437
  if (options3.forceColor) {
161435
- chalk3 = new _chalk.default.constructor({
161438
+ chalk4 = new _chalk.default.constructor({
161436
161439
  enabled: true,
161437
161440
  level: 1
161438
161441
  });
161439
161442
  }
161440
- return chalk3;
161443
+ return chalk4;
161441
161444
  }
161442
161445
  function highlight(code, options3 = {}) {
161443
161446
  if (shouldHighlight(options3)) {
161444
- const chalk3 = getChalk(options3);
161445
- const defs = getDefs(chalk3);
161447
+ const chalk4 = getChalk(options3);
161448
+ const defs = getDefs(chalk4);
161446
161449
  return highlightTokens(defs, code);
161447
161450
  } else {
161448
161451
  return code;
@@ -161499,11 +161502,11 @@ var require_lib12 = __commonJS({
161499
161502
  return newObj;
161500
161503
  }
161501
161504
  var deprecationWarningShown = false;
161502
- function getDefs(chalk3) {
161505
+ function getDefs(chalk4) {
161503
161506
  return {
161504
- gutter: chalk3.grey,
161505
- marker: chalk3.red.bold,
161506
- message: chalk3.red.bold
161507
+ gutter: chalk4.grey,
161508
+ marker: chalk4.red.bold,
161509
+ message: chalk4.red.bold
161507
161510
  };
161508
161511
  }
161509
161512
  var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
@@ -161565,8 +161568,8 @@ var require_lib12 = __commonJS({
161565
161568
  }
161566
161569
  function codeFrameColumns(rawLines, loc, opts = {}) {
161567
161570
  const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
161568
- const chalk3 = (0, _highlight.getChalk)(opts);
161569
- const defs = getDefs(chalk3);
161571
+ const chalk4 = (0, _highlight.getChalk)(opts);
161572
+ const defs = getDefs(chalk4);
161570
161573
  const maybeHighlight = (chalkFn, string) => {
161571
161574
  return highlighted ? chalkFn(string) : string;
161572
161575
  };
@@ -161605,7 +161608,7 @@ var require_lib12 = __commonJS({
161605
161608
  ${frame}`;
161606
161609
  }
161607
161610
  if (highlighted) {
161608
- return chalk3.reset(frame);
161611
+ return chalk4.reset(frame);
161609
161612
  } else {
161610
161613
  return frame;
161611
161614
  }
@@ -179893,9 +179896,6 @@ function handleConfigCredentials(config, params) {
179893
179896
  }
179894
179897
  }
179895
179898
  function mergeConfigAndParams(config, params) {
179896
- handleConfigTarget(config, params);
179897
- handleConfigApp(config, params);
179898
- handleConfigCredentials(config, params);
179899
179899
  if (params.yes) {
179900
179900
  config.yes = params.yes;
179901
179901
  }
@@ -179908,22 +179908,31 @@ function mergeConfigAndParams(config, params) {
179908
179908
  if (params["archive-url"]) {
179909
179909
  config.archiveUrl = params["archive-url"];
179910
179910
  }
179911
- if (params["strict-ssl"]) {
179912
- config.strictSsl = parseBoolParamValue(params["strict-ssl"]);
179913
- }
179914
- if (config.strictSsl === false || config.ignoreCertError) {
179915
- config.ignoreCertError = true;
179916
- config.strictSsl = false;
179917
- } else {
179918
- config.ignoreCertError = false;
179919
- config.strictSsl = true;
179920
- }
179921
179911
  if (params.config) {
179922
179912
  config.configPath = params.config;
179923
179913
  }
179914
+ handleConfigSSL(config, params);
179915
+ handleConfigTarget(config, params);
179916
+ handleConfigApp(config, params);
179917
+ handleConfigCredentials(config, params);
179924
179918
  handleConfigDeployment(config, params);
179925
179919
  config.cli = !!params.noConfig;
179926
179920
  }
179921
+ function handleConfigSSL(config, params) {
179922
+ if (params["strict-ssl"]) {
179923
+ config.ignoreCertErrors = !parseBoolParamValue(params["strict-ssl"]);
179924
+ config.strictSsl = !config.ignoreCertErrors;
179925
+ } else if (params["ignore-cert-error"]) {
179926
+ config.ignoreCertErrors = parseBoolParamValue(params["ignore-cert-error"]);
179927
+ config.ignoreCertError = config.ignoreCertErrors;
179928
+ } else if (params["ignore-cert-errors"]) {
179929
+ config.ignoreCertErrors = parseBoolParamValue(params["ignore-cert-errors"]);
179930
+ } else if (config.strictSsl === false) {
179931
+ config.ignoreCertErrors = true;
179932
+ } else {
179933
+ config.ignoreCertErrors = config.ignoreCertErrors ?? config.ignoreCertError === true;
179934
+ }
179935
+ }
179927
179936
  function parseBoolParamValue(paramValue) {
179928
179937
  if (typeof paramValue === "boolean") {
179929
179938
  return paramValue;
@@ -180369,6 +180378,8 @@ var init_i18n = __esm({
180369
180378
  ERROR_EXTRACT_API_KEY: "Could not extract API hub key from '{{-envPath}}'",
180370
180379
  ERROR_API_HUB_KEY: "Property apiHub is set to true in yaml file, but file '{{-envPath}}' doesn't contain API key. Error was: ${{-message}}",
180371
180380
  SSL_IGNORE_WARNING: "You chose not to validate SSL certificate. Please verify the server certificate is trustful before proceeding. See documentation for recommended configuration (https://help.sap.com/viewer/17d50220bcd848aa854c9c182d65b699/Latest/en-US/4b318bede7eb4021a8be385c46c74045.html).",
180381
+ SSL_DEPRECATION_WARNING: "The configuration property `ignoreCertError` is deprecated. Use `ignoreCertErrors` (plural) instead.",
180382
+ STRICT_SSL_DEPRECATION_WARNING: "The configuration property `strictSsl` is deprecated. Use `ignoreCertErrors` (plural) instead.",
180372
180383
  SSL_PROXY_ERROR: "You are trying to connect to a server with a self signed certificate. Please check (https://ga.support.sap.com/dtp/viewer/index.html#/tree/3046/actions/45995:48363:53594:53643) for guidance.",
180373
180384
  NO_DEPLOY_CONFIG: "No deployment configuration has been detected. Run `npm run deploy-config` to add configuration first.",
180374
180385
  NO_BSP_APPLICATION: "Mandatory parameter --bspApplication <value> is missing. Please provide BSP Application",
@@ -180557,14 +180568,14 @@ var require_templates3 = __commonJS({
180557
180568
  }
180558
180569
  return results;
180559
180570
  }
180560
- function buildStyle(chalk3, styles) {
180571
+ function buildStyle(chalk4, styles) {
180561
180572
  const enabled2 = {};
180562
180573
  for (const layer of styles) {
180563
180574
  for (const style of layer.styles) {
180564
180575
  enabled2[style[0]] = layer.inverse ? null : style.slice(1);
180565
180576
  }
180566
180577
  }
180567
- let current = chalk3;
180578
+ let current = chalk4;
180568
180579
  for (const [styleName, styles2] of Object.entries(enabled2)) {
180569
180580
  if (!Array.isArray(styles2)) {
180570
180581
  continue;
@@ -180576,7 +180587,7 @@ var require_templates3 = __commonJS({
180576
180587
  }
180577
180588
  return current;
180578
180589
  }
180579
- module2.exports = (chalk3, temporary) => {
180590
+ module2.exports = (chalk4, temporary) => {
180580
180591
  const styles = [];
180581
180592
  const chunks = [];
180582
180593
  let chunk = [];
@@ -180586,13 +180597,13 @@ var require_templates3 = __commonJS({
180586
180597
  } else if (style) {
180587
180598
  const string = chunk.join("");
180588
180599
  chunk = [];
180589
- chunks.push(styles.length === 0 ? string : buildStyle(chalk3, styles)(string));
180600
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk4, styles)(string));
180590
180601
  styles.push({ inverse, styles: parseStyle(style) });
180591
180602
  } else if (close) {
180592
180603
  if (styles.length === 0) {
180593
180604
  throw new Error("Found extraneous } in Chalk template literal");
180594
180605
  }
180595
- chunks.push(buildStyle(chalk3, styles)(chunk.join("")));
180606
+ chunks.push(buildStyle(chalk4, styles)(chunk.join("")));
180596
180607
  chunk = [];
180597
180608
  styles.pop();
180598
180609
  } else {
@@ -180640,16 +180651,16 @@ var require_source2 = __commonJS({
180640
180651
  }
180641
180652
  };
180642
180653
  var chalkFactory = (options3) => {
180643
- const chalk4 = {};
180644
- applyOptions(chalk4, options3);
180645
- chalk4.template = (...arguments_) => chalkTag(chalk4.template, ...arguments_);
180646
- Object.setPrototypeOf(chalk4, Chalk.prototype);
180647
- Object.setPrototypeOf(chalk4.template, chalk4);
180648
- chalk4.template.constructor = () => {
180654
+ const chalk5 = {};
180655
+ applyOptions(chalk5, options3);
180656
+ chalk5.template = (...arguments_) => chalkTag(chalk5.template, ...arguments_);
180657
+ Object.setPrototypeOf(chalk5, Chalk.prototype);
180658
+ Object.setPrototypeOf(chalk5.template, chalk5);
180659
+ chalk5.template.constructor = () => {
180649
180660
  throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
180650
180661
  };
180651
- chalk4.template.Instance = ChalkClass;
180652
- return chalk4.template;
180662
+ chalk5.template.Instance = ChalkClass;
180663
+ return chalk5.template;
180653
180664
  };
180654
180665
  function Chalk(options3) {
180655
180666
  return chalkFactory(options3);
@@ -180760,7 +180771,7 @@ var require_source2 = __commonJS({
180760
180771
  return openAll + string + closeAll;
180761
180772
  };
180762
180773
  var template;
180763
- var chalkTag = (chalk4, ...strings) => {
180774
+ var chalkTag = (chalk5, ...strings) => {
180764
180775
  const [firstString] = strings;
180765
180776
  if (!isArray3(firstString) || !isArray3(firstString.raw)) {
180766
180777
  return strings.join(" ");
@@ -180776,14 +180787,14 @@ var require_source2 = __commonJS({
180776
180787
  if (template === void 0) {
180777
180788
  template = require_templates3();
180778
180789
  }
180779
- return template(chalk4, parts.join(""));
180790
+ return template(chalk5, parts.join(""));
180780
180791
  };
180781
180792
  Object.defineProperties(Chalk.prototype, styles);
180782
- var chalk3 = Chalk();
180783
- chalk3.supportsColor = stdoutColor;
180784
- chalk3.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
180785
- chalk3.stderr.supportsColor = stderrColor;
180786
- module2.exports = chalk3;
180793
+ var chalk4 = Chalk();
180794
+ chalk4.supportsColor = stdoutColor;
180795
+ chalk4.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
180796
+ chalk4.stderr.supportsColor = stderrColor;
180797
+ module2.exports = chalk4;
180787
180798
  }
180788
180799
  });
180789
180800
 
@@ -183675,7 +183686,7 @@ var require_supports_hyperlinks = __commonJS({
183675
183686
  var require_marked_terminal = __commonJS({
183676
183687
  "node_modules/marked-terminal/index.js"(exports2, module2) {
183677
183688
  "use strict";
183678
- var chalk3 = require_source2();
183689
+ var chalk4 = require_source2();
183679
183690
  var Table = require_cli_table3();
183680
183691
  var cardinal = require_cardinal();
183681
183692
  var emoji = require_node_emoji();
@@ -183691,22 +183702,22 @@ var require_marked_terminal = __commonJS({
183691
183702
  var HARD_RETURN_RE = new RegExp(HARD_RETURN);
183692
183703
  var HARD_RETURN_GFM_RE = new RegExp(HARD_RETURN + "|<br />");
183693
183704
  var defaultOptions = {
183694
- code: chalk3.yellow,
183695
- blockquote: chalk3.gray.italic,
183696
- html: chalk3.gray,
183697
- heading: chalk3.green.bold,
183698
- firstHeading: chalk3.magenta.underline.bold,
183699
- hr: chalk3.reset,
183700
- listitem: chalk3.reset,
183705
+ code: chalk4.yellow,
183706
+ blockquote: chalk4.gray.italic,
183707
+ html: chalk4.gray,
183708
+ heading: chalk4.green.bold,
183709
+ firstHeading: chalk4.magenta.underline.bold,
183710
+ hr: chalk4.reset,
183711
+ listitem: chalk4.reset,
183701
183712
  list,
183702
- table: chalk3.reset,
183703
- paragraph: chalk3.reset,
183704
- strong: chalk3.bold,
183705
- em: chalk3.italic,
183706
- codespan: chalk3.yellow,
183707
- del: chalk3.dim.gray.strikethrough,
183708
- link: chalk3.blue,
183709
- href: chalk3.blue.underline,
183713
+ table: chalk4.reset,
183714
+ paragraph: chalk4.reset,
183715
+ strong: chalk4.bold,
183716
+ em: chalk4.italic,
183717
+ codespan: chalk4.yellow,
183718
+ del: chalk4.dim.gray.strikethrough,
183719
+ link: chalk4.blue,
183720
+ href: chalk4.blue.underline,
183710
183721
  text: identity,
183711
183722
  unescape: true,
183712
183723
  emoji: true,
@@ -183984,7 +183995,7 @@ var require_marked_terminal = __commonJS({
183984
183995
  return text + "\n\n";
183985
183996
  }
183986
183997
  function highlight(code, lang, opts, hightlightOpts) {
183987
- if (chalk3.level === 0) return code;
183998
+ if (chalk4.level === 0) return code;
183988
183999
  var style = opts.code;
183989
184000
  code = fixHardReturn(code, opts.reflowText);
183990
184001
  if (lang !== "javascript" && lang !== "js") {
@@ -210403,8 +210414,11 @@ var require_getPackageScripts = __commonJS({
210403
210414
  }
210404
210415
  return `fiori run --open "${startFile ?? constants_1.SCRIPT_FLP_SANDBOX}${params}"`;
210405
210416
  }
210406
- function getVariantPreviewAppScript(addSearchParams) {
210407
- const previewAppAnchor = "#app-preview";
210417
+ function getVariantPreviewAppScript(addSearchParams, flpAppId) {
210418
+ let previewAppAnchor = "#app-preview";
210419
+ if (addSearchParams && flpAppId) {
210420
+ previewAppAnchor = `#${flpAppId}`;
210421
+ }
210408
210422
  let urlParam = "";
210409
210423
  if (addSearchParams) {
210410
210424
  const disableCacheParam = "sap-ui-xx-viewCache=false";
@@ -210428,7 +210442,7 @@ var require_getPackageScripts = __commonJS({
210428
210442
  if (addTest) {
210429
210443
  scripts["int-test"] = 'fiori run --config ./ui5-mock.yaml --open "/test/integration/opaTests.qunit.html"';
210430
210444
  }
210431
- scripts["start-variants-management"] = localOnly ? `echo \\"${(0, i18n_1.t)("info.mockOnlyWarning")}\\"` : getVariantPreviewAppScript(!supportVirtualEndpoints);
210445
+ scripts["start-variants-management"] = localOnly ? `echo \\"${(0, i18n_1.t)("info.mockOnlyWarning")}\\"` : getVariantPreviewAppScript(!supportVirtualEndpoints, flpAppId);
210432
210446
  return scripts;
210433
210447
  }
210434
210448
  }
@@ -215028,10 +215042,11 @@ function configureCliParams(config, command) {
215028
215042
  delete params["password"];
215029
215043
  }
215030
215044
  processUAAParams(params);
215045
+ mergeConfigAndParams(config, params);
215031
215046
  if ((_d2 = config.credentials) == null ? void 0 : _d2.serviceInfo) {
215032
215047
  updatedArgs.push(...["--cloud-service-env"], true);
215033
215048
  }
215034
- if (config.strictSsl === false) {
215049
+ if (config.ignoreCertErrors === true) {
215035
215050
  updatedArgs.push(...["--no-strict-ssl"], true);
215036
215051
  }
215037
215052
  [
@@ -215059,13 +215074,26 @@ async function runCliCommand(config, command) {
215059
215074
  configureCliParams(config, command);
215060
215075
  await commands[command]();
215061
215076
  }
215062
- var import_deploy_tooling, import_btp_utils3, commands, configureCliParamsUsingUI5Config, processUAAParams;
215077
+ function logSSLWarnings(config) {
215078
+ if (config.ignoreCertErrors === true) {
215079
+ console.log(chalk.yellow(instance.t("SSL_IGNORE_WARNING")));
215080
+ }
215081
+ if (config.strictSsl !== void 0) {
215082
+ console.log(chalk.yellow(instance.t("STRICT_SSL_DEPRECATION_WARNING")));
215083
+ }
215084
+ if (config.ignoreCertError !== void 0) {
215085
+ console.log(chalk.yellow(instance.t("SSL_DEPRECATION_WARNING")));
215086
+ }
215087
+ }
215088
+ var import_deploy_tooling, import_btp_utils3, commands, chalk, configureCliParamsUsingUI5Config, processUAAParams;
215063
215089
  var init_common = __esm({
215064
215090
  "src/tasks/common/index.ts"() {
215065
215091
  init_utils10();
215066
215092
  import_deploy_tooling = __toESM(require_dist31());
215067
215093
  import_btp_utils3 = __toESM(require_dist10());
215094
+ init_i18next();
215068
215095
  commands = { runDeploy: import_deploy_tooling.runDeploy, runUndeploy: import_deploy_tooling.runUndeploy };
215096
+ chalk = require_source();
215069
215097
  configureCliParamsUsingUI5Config = (config) => {
215070
215098
  var _a4, _b3, _c3, _d2, _e, _f, _g, _h, _i, _j;
215071
215099
  const isDestinationEnabled = (0, import_btp_utils3.isAppStudio)() && ((_a4 = config.target) == null ? void 0 : _a4.destination);
@@ -215128,6 +215156,7 @@ async function deployToABAP(workspace, options3, log5 = console, archivePath) {
215128
215156
  if (options3.configuration.cli || options3.configuration.archivePath || options3.configuration.archiveUrl || ((_a4 = options3.configuration.credentials) == null ? void 0 : _a4.serviceInfo)) {
215129
215157
  await runCliCommand(options3.configuration, "runDeploy" /* Deploy */);
215130
215158
  } else {
215159
+ options3.configuration.strictSsl = !(options3.configuration.ignoreCertErrors ?? false);
215131
215160
  await (0, import_deploy_tooling2.task)({ workspace, options: options3 });
215132
215161
  }
215133
215162
  }
@@ -215226,7 +215255,7 @@ var init_package = __esm({
215226
215255
  package_default = {
215227
215256
  name: "@sap/ux-ui5-tooling",
215228
215257
  displayName: "SAP Fiori Tools \u2013 UI5 Tooling",
215229
- version: "1.18.7",
215258
+ version: "1.19.0",
215230
215259
  description: "SAP Fiori Tools \u2013 UI5 Tooling",
215231
215260
  publisher: "SAPSE",
215232
215261
  license: "SEE LICENSE IN LICENSE",
@@ -215261,7 +215290,7 @@ var init_package = __esm({
215261
215290
  madge: "madge --warning --circular --extensions ts ./"
215262
215291
  },
215263
215292
  dependencies: {
215264
- "@sap-ux/preview-middleware": "0.23.5",
215293
+ "@sap-ux/preview-middleware": "0.23.9",
215265
215294
  "@ui5/fs": "3.0.4",
215266
215295
  "connect-livereload": "0.6.1",
215267
215296
  debug: "4.3.7",
@@ -215275,24 +215304,24 @@ var init_package = __esm({
215275
215304
  },
215276
215305
  devDependencies: {
215277
215306
  "@playwright/test": "1.53.1",
215278
- "@sap-ux/adp-tooling": "0.15.24",
215307
+ "@sap-ux/adp-tooling": "0.15.27",
215279
215308
  "@sap-ux/axios-extension": "1.22.7",
215280
215309
  "@sap-ux/backend-proxy-middleware": "0.9.17",
215281
215310
  "@sap-ux/btp-utils": "1.1.1",
215282
- "@sap-ux/deploy-tooling": "0.16.46",
215311
+ "@sap-ux/deploy-tooling": "0.16.48",
215283
215312
  "@sap-ux/feature-toggle": "0.3.1",
215284
215313
  "@sap-ux/guided-answers-helper": "0.4.0",
215285
215314
  "@sap-ux/logger": "0.7.0",
215286
215315
  "@sap-ux/nodejs-utils": "0.2.3",
215287
- "@sap-ux/project-access": "1.30.13",
215316
+ "@sap-ux/project-access": "1.30.14",
215288
215317
  "@sap-ux/reload-middleware": "0.3.1",
215289
215318
  "@sap-ux/serve-static-middleware": "0.4.0",
215290
215319
  "@sap-ux/store": "1.1.4",
215291
- "@sap-ux/telemetry": "0.6.19",
215292
- "@sap-ux/ui5-config": "0.29.3",
215320
+ "@sap-ux/telemetry": "0.6.20",
215321
+ "@sap-ux/ui5-config": "0.29.4",
215293
215322
  "@sap-ux/ui5-info": "0.12.2",
215294
- "@sap-ux/ui5-proxy-middleware": "1.5.10",
215295
- "@sap/ux-app-templates": "1.18.7",
215323
+ "@sap-ux/ui5-proxy-middleware": "1.5.11",
215324
+ "@sap/ux-app-templates": "1.19.0",
215296
215325
  "@types/fs-extra": "11.0.4",
215297
215326
  "@types/marked": "4.0.1",
215298
215327
  "@types/prompts": "2.0.14",
@@ -215455,45 +215484,47 @@ var require_deploy2 = __commonJS({
215455
215484
  init_util();
215456
215485
  init_package();
215457
215486
  var import_dotenv2 = __toESM(require_main4());
215458
- var chalk3 = require_source();
215459
- async function confirmDeploy(config) {
215487
+ init_common();
215488
+ var chalk4 = require_source();
215489
+ function appendExtraLogging(config) {
215460
215490
  var _a4;
215491
+ console.log();
215492
+ console.log(
215493
+ chalk4.blue.bold.underline(instance.t(config.testMode ? "CONFIRM_DEPLOYMENT_TESTMODE" : "CONFIRM_DEPLOYMENT"))
215494
+ );
215495
+ logSSLWarnings(config);
215496
+ if (config.app.name) {
215497
+ console.log(`
215498
+ ${chalk4.blue(instance.t("APPLICATION_NAME"))}: ${((_a4 = config.app) == null ? void 0 : _a4.name) ?? ""}`);
215499
+ }
215500
+ }
215501
+ async function confirmDeploy(config) {
215461
215502
  let abort = false;
215462
215503
  let target;
215463
215504
  if ((0, import_btp_utils6.isAppStudio)()) {
215464
- target = `${chalk3.blue(instance.t("DESTINATION"))}: ${config.target.destination ?? ""}`;
215505
+ target = `${chalk4.blue(instance.t("DESTINATION"))}: ${config.target.destination ?? ""}`;
215465
215506
  } else {
215466
- target = `${chalk3.blue(instance.t("TARGET"))}: ${config.target.url ?? ""}
215467
- ${chalk3.blue(instance.t("CLIENT"))}: ${config.target.client ?? ""}`;
215507
+ target = `${chalk4.blue(instance.t("TARGET"))}: ${config.target.url ?? ""}
215508
+ ${chalk4.blue(instance.t("CLIENT"))}: ${config.target.client ?? ""}`;
215468
215509
  }
215469
215510
  if (config.target.service) {
215470
215511
  console.log(`
215471
- ${chalk3.blue(instance.t("SERVICE_PATH"))}: ${config.target.service}
215512
+ ${chalk4.blue(instance.t("SERVICE_PATH"))}: ${config.target.service}
215472
215513
  `);
215473
215514
  }
215474
215515
  let targetSystemUI5Version = "";
215475
215516
  if (config.targetSystemUI5Version) {
215476
- targetSystemUI5Version = `${chalk3.blue(instance.t("TARGET_SYSTEM_UI5_VERSION"))}: ${config.targetSystemUI5Version}`;
215517
+ targetSystemUI5Version = `${chalk4.blue(instance.t("TARGET_SYSTEM_UI5_VERSION"))}: ${config.targetSystemUI5Version}`;
215477
215518
  }
215478
- console.log();
215479
- console.log(
215480
- chalk3.blue.bold.underline(instance.t(config.testMode ? "CONFIRM_DEPLOYMENT_TESTMODE" : "CONFIRM_DEPLOYMENT"))
215481
- );
215482
- if (config.ignoreCertError) {
215483
- console.log(chalk3.yellow(instance.t("SSL_IGNORE_WARNING")));
215484
- }
215485
- if (config.app.name) {
215486
- console.log(`
215487
- ${chalk3.blue(instance.t("APPLICATION_NAME"))}: ${((_a4 = config.app) == null ? void 0 : _a4.name) ?? ""}`);
215488
- }
215489
- console.log(` ${chalk3.blue(instance.t("PACKAGE"))}: ${config.app.package ?? ""}
215490
- ${chalk3.blue(instance.t("TRANSPORT_REQUEST"))}: ${config.app.transport ?? ""}
215519
+ appendExtraLogging(config);
215520
+ console.log(` ${chalk4.blue(instance.t("PACKAGE"))}: ${config.app.package ?? ""}
215521
+ ${chalk4.blue(instance.t("TRANSPORT_REQUEST"))}: ${config.app.transport ?? ""}
215491
215522
  ${target}
215492
- ${chalk3.blue("SCP")}: ${config.target.scp ?? "false"}
215523
+ ${chalk4.blue("SCP")}: ${config.target.scp ?? "false"}
215493
215524
  ${targetSystemUI5Version}
215494
215525
  `);
215495
215526
  if (config.targetSystemUI5Version) {
215496
- console.log(chalk3.yellow(instance.t("WARN_TARGET_SYSTEM_UI5_VERSION")));
215527
+ console.log(chalk4.yellow(instance.t("WARN_TARGET_SYSTEM_UI5_VERSION")));
215497
215528
  console.log();
215498
215529
  }
215499
215530
  const { confirm } = await (0, import_prompts3.default)(
@@ -219401,7 +219432,7 @@ var import_fs10 = __toESM(require("fs"));
219401
219432
  var import_path8 = __toESM(require("path"));
219402
219433
  init_i18next();
219403
219434
  init_i18n2();
219404
- var chalk = require_source();
219435
+ var chalk2 = require_source();
219405
219436
  async function verify(args) {
219406
219437
  if (isHelpOption(args)) {
219407
219438
  printHelpForCommand("verify");
@@ -219413,7 +219444,7 @@ async function executeCmd4() {
219413
219444
  const deployConfigPath = import_path8.default.join(process.cwd(), "ui5-deploy.yaml");
219414
219445
  if (!import_fs10.default.existsSync(deployConfigPath)) {
219415
219446
  await initI18n();
219416
- console.log(chalk.yellow(instance.t("NO_DEPLOY_CONFIG")));
219447
+ console.log(chalk2.yellow(instance.t("NO_DEPLOY_CONFIG")));
219417
219448
  }
219418
219449
  }
219419
219450
 
@@ -219435,7 +219466,7 @@ init_telemetryEvents();
219435
219466
  init_package();
219436
219467
  var import_feature_toggle2 = __toESM(require_dist23());
219437
219468
  var import_dotenv = __toESM(require_main4());
219438
- var chalk2 = require_source();
219469
+ var chalk3 = require_source();
219439
219470
  var undeployWithCli = async (config) => {
219440
219471
  await runCliCommand(config, "runUndeploy" /* UnDeploy */);
219441
219472
  };
@@ -219443,27 +219474,28 @@ async function confirmUndeploy(config) {
219443
219474
  var _a4;
219444
219475
  let abort = false;
219445
219476
  console.log();
219446
- console.log(chalk2.blue.bold.underline(instance.t("CONFIRM_UNDEPLOYMENT")));
219477
+ console.log(chalk3.blue.bold.underline(instance.t("CONFIRM_UNDEPLOYMENT")));
219478
+ logSSLWarnings(config);
219447
219479
  let target;
219448
219480
  if ((0, import_btp_utils4.isAppStudio)()) {
219449
- target = `${chalk2.blue(instance.t("DESTINATION"))}: ${config.target.destination ?? ""}`;
219481
+ target = `${chalk3.blue(instance.t("DESTINATION"))}: ${config.target.destination ?? ""}`;
219450
219482
  } else {
219451
- target = `${chalk2.blue(instance.t("TARGET"))}: ${config.target.url ?? ""}`;
219483
+ target = `${chalk3.blue(instance.t("TARGET"))}: ${config.target.url ?? ""}`;
219452
219484
  }
219453
219485
  if (config.target.service) {
219454
219486
  console.log(`
219455
- ${chalk2.blue(instance.t("SERVICE_PATH"))}: ${config.target.service ?? ""}
219487
+ ${chalk3.blue(instance.t("SERVICE_PATH"))}: ${config.target.service ?? ""}
219456
219488
  `);
219457
219489
  }
219458
219490
  let name2;
219459
219491
  if (config.lrep) {
219460
- name2 = `${chalk2.blue(instance.t("REPOSITORY_NAME"))}: ${config.lrep}`;
219492
+ name2 = `${chalk3.blue(instance.t("REPOSITORY_NAME"))}: ${config.lrep}`;
219461
219493
  } else {
219462
- name2 = `${chalk2.blue(instance.t("APPLICATION_NAME"))}: ${((_a4 = config.app) == null ? void 0 : _a4.name) ?? ""}`;
219494
+ name2 = `${chalk3.blue(instance.t("APPLICATION_NAME"))}: ${((_a4 = config.app) == null ? void 0 : _a4.name) ?? ""}`;
219463
219495
  }
219464
219496
  console.log(`
219465
219497
  ${name2}
219466
- ${chalk2.blue(instance.t("TRANSPORT_REQUEST"))}: ${config.app.transport ?? ""}
219498
+ ${chalk3.blue(instance.t("TRANSPORT_REQUEST"))}: ${config.app.transport ?? ""}
219467
219499
  ${target}
219468
219500
  `);
219469
219501
  console.log();