@sap/ux-ui5-tooling 1.8.3 → 1.8.5

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.
@@ -46554,8 +46554,8 @@ var require_utils3 = __commonJS({
46554
46554
  if (typeof source !== "object") {
46555
46555
  if (Array.isArray(target)) {
46556
46556
  target.push(source);
46557
- } else if (typeof target === "object") {
46558
- if (options.plainObjects || options.allowPrototypes || !has.call(Object.prototype, source)) {
46557
+ } else if (target && typeof target === "object") {
46558
+ if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
46559
46559
  target[source] = true;
46560
46560
  }
46561
46561
  } else {
@@ -46563,7 +46563,7 @@ var require_utils3 = __commonJS({
46563
46563
  }
46564
46564
  return target;
46565
46565
  }
46566
- if (typeof target !== "object") {
46566
+ if (!target || typeof target !== "object") {
46567
46567
  return [target].concat(source);
46568
46568
  }
46569
46569
  var mergeTarget = target;
@@ -46573,8 +46573,9 @@ var require_utils3 = __commonJS({
46573
46573
  if (Array.isArray(target) && Array.isArray(source)) {
46574
46574
  source.forEach(function(item, i) {
46575
46575
  if (has.call(target, i)) {
46576
- if (target[i] && typeof target[i] === "object") {
46577
- target[i] = merge2(target[i], item, options);
46576
+ var targetItem = target[i];
46577
+ if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
46578
+ target[i] = merge2(targetItem, item, options);
46578
46579
  } else {
46579
46580
  target.push(item);
46580
46581
  }
@@ -46690,7 +46691,7 @@ var require_formats = __commonJS({
46690
46691
  return replace.call(value, percentTwenties, "+");
46691
46692
  },
46692
46693
  RFC3986: function(value) {
46693
- return value;
46694
+ return String(value);
46694
46695
  }
46695
46696
  },
46696
46697
  RFC1738: "RFC1738",
@@ -46716,6 +46717,11 @@ var require_stringify2 = __commonJS({
46716
46717
  return prefix;
46717
46718
  }
46718
46719
  };
46720
+ var isArray = Array.isArray;
46721
+ var push = Array.prototype.push;
46722
+ var pushToArray = function(arr, valueOrArray) {
46723
+ push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
46724
+ };
46719
46725
  var toISO = Date.prototype.toISOString;
46720
46726
  var defaults = {
46721
46727
  delimiter: "&",
@@ -46734,7 +46740,8 @@ var require_stringify2 = __commonJS({
46734
46740
  obj2 = filter2(prefix, obj2);
46735
46741
  } else if (obj2 instanceof Date) {
46736
46742
  obj2 = serializeDate(obj2);
46737
- } else if (obj2 === null) {
46743
+ }
46744
+ if (obj2 === null) {
46738
46745
  if (strictNullHandling) {
46739
46746
  return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder) : prefix;
46740
46747
  }
@@ -46752,7 +46759,7 @@ var require_stringify2 = __commonJS({
46752
46759
  return values;
46753
46760
  }
46754
46761
  var objKeys;
46755
- if (Array.isArray(filter2)) {
46762
+ if (isArray(filter2)) {
46756
46763
  objKeys = filter2;
46757
46764
  } else {
46758
46765
  var keys = Object.keys(obj2);
@@ -46763,10 +46770,10 @@ var require_stringify2 = __commonJS({
46763
46770
  if (skipNulls && obj2[key] === null) {
46764
46771
  continue;
46765
46772
  }
46766
- if (Array.isArray(obj2)) {
46767
- values = values.concat(stringify2(obj2[key], generateArrayPrefix(prefix, key), generateArrayPrefix, strictNullHandling, skipNulls, encoder, filter2, sort, allowDots, serializeDate, formatter, encodeValuesOnly));
46773
+ if (isArray(obj2)) {
46774
+ pushToArray(values, stringify2(obj2[key], generateArrayPrefix(prefix, key), generateArrayPrefix, strictNullHandling, skipNulls, encoder, filter2, sort, allowDots, serializeDate, formatter, encodeValuesOnly));
46768
46775
  } else {
46769
- values = values.concat(stringify2(obj2[key], prefix + (allowDots ? "." + key : "[" + key + "]"), generateArrayPrefix, strictNullHandling, skipNulls, encoder, filter2, sort, allowDots, serializeDate, formatter, encodeValuesOnly));
46776
+ pushToArray(values, stringify2(obj2[key], prefix + (allowDots ? "." + key : "[" + key + "]"), generateArrayPrefix, strictNullHandling, skipNulls, encoder, filter2, sort, allowDots, serializeDate, formatter, encodeValuesOnly));
46770
46777
  }
46771
46778
  }
46772
46779
  return values;
@@ -46774,7 +46781,7 @@ var require_stringify2 = __commonJS({
46774
46781
  module2.exports = function(object, opts) {
46775
46782
  var obj2 = object;
46776
46783
  var options = opts ? utils.assign({}, opts) : {};
46777
- if (options.encoder !== null && options.encoder !== void 0 && typeof options.encoder !== "function") {
46784
+ if (options.encoder !== null && typeof options.encoder !== "undefined" && typeof options.encoder !== "function") {
46778
46785
  throw new TypeError("Encoder has to be a function.");
46779
46786
  }
46780
46787
  var delimiter = typeof options.delimiter === "undefined" ? defaults.delimiter : options.delimiter;
@@ -46797,7 +46804,7 @@ var require_stringify2 = __commonJS({
46797
46804
  if (typeof options.filter === "function") {
46798
46805
  filter2 = options.filter;
46799
46806
  obj2 = filter2("", obj2);
46800
- } else if (Array.isArray(options.filter)) {
46807
+ } else if (isArray(options.filter)) {
46801
46808
  filter2 = options.filter;
46802
46809
  objKeys = filter2;
46803
46810
  }
@@ -46825,7 +46832,7 @@ var require_stringify2 = __commonJS({
46825
46832
  if (skipNulls && obj2[key] === null) {
46826
46833
  continue;
46827
46834
  }
46828
- keys = keys.concat(stringify(obj2[key], key, generateArrayPrefix, strictNullHandling, skipNulls, encode ? encoder : null, filter2, sort, allowDots, serializeDate, formatter, encodeValuesOnly));
46835
+ pushToArray(keys, stringify(obj2[key], key, generateArrayPrefix, strictNullHandling, skipNulls, encode ? encoder : null, filter2, sort, allowDots, serializeDate, formatter, encodeValuesOnly));
46829
46836
  }
46830
46837
  var joined = keys.join(delimiter);
46831
46838
  var prefix = options.addQueryPrefix === true ? "?" : "";
@@ -46881,17 +46888,18 @@ var require_parse = __commonJS({
46881
46888
  for (var i = chain.length - 1; i >= 0; --i) {
46882
46889
  var obj2;
46883
46890
  var root = chain[i];
46884
- if (root === "[]") {
46885
- obj2 = [];
46886
- obj2 = obj2.concat(leaf);
46891
+ if (root === "[]" && options.parseArrays) {
46892
+ obj2 = [].concat(leaf);
46887
46893
  } else {
46888
46894
  obj2 = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
46889
46895
  var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
46890
46896
  var index2 = parseInt(cleanRoot, 10);
46891
- if (!isNaN(index2) && root !== cleanRoot && String(index2) === cleanRoot && index2 >= 0 && (options.parseArrays && index2 <= options.arrayLimit)) {
46897
+ if (!options.parseArrays && cleanRoot === "") {
46898
+ obj2 = { 0: leaf };
46899
+ } else if (!isNaN(index2) && root !== cleanRoot && String(index2) === cleanRoot && index2 >= 0 && (options.parseArrays && index2 <= options.arrayLimit)) {
46892
46900
  obj2 = [];
46893
46901
  obj2[index2] = leaf;
46894
- } else {
46902
+ } else if (cleanRoot !== "__proto__") {
46895
46903
  obj2[cleanRoot] = leaf;
46896
46904
  }
46897
46905
  }
@@ -56985,6 +56993,7 @@ var require_application = __commonJS({
56985
56993
  (function(AppType2) {
56986
56994
  AppType2["FioriElement"] = "SAP Fiori elements";
56987
56995
  AppType2["UI5Freestyle"] = "SAPUI5 freestyle";
56996
+ AppType2["UI5Extension"] = "SAPUI5 Extension";
56988
56997
  })(AppType = exports2.AppType || (exports2.AppType = {}));
56989
56998
  exports2.AppPomXmlArtifactIdPlaceholder = `\${project.artifactId}`;
56990
56999
  }
@@ -57306,6 +57315,7 @@ var require_constants = __commonJS({
57306
57315
  FileName2["Ui5DeployYaml"] = "ui5-deploy.yaml";
57307
57316
  FileName2["fioriSandboxConfig"] = "fioriSandboxConfig.json";
57308
57317
  FileName2["View"] = "view.xml";
57318
+ FileName2["ExtConfigJson"] = ".extconfig.json";
57309
57319
  })(FileName = exports2.FileName || (exports2.FileName = {}));
57310
57320
  var FioriToolsSettings;
57311
57321
  (function(FioriToolsSettings2) {