@sap/ux-ui5-tooling 1.19.0 → 1.19.1

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.
@@ -42010,12 +42010,14 @@ var require_info = __commonJS({
42010
42010
  }
42011
42011
  const capProjectType = await (0, cap_1.getCapProjectType)(root);
42012
42012
  const projectType = capProjectType ?? "EDMXBackend";
42013
+ const capCustomPaths = projectType === "EDMXBackend" ? void 0 : await (0, cap_1.getCapCustomPaths)(root);
42013
42014
  const appFolders = await getAppFolders(root, memFs);
42014
42015
  const apps = await getApps(root, appFolders, memFs);
42015
42016
  return {
42016
42017
  root: (0, path_2.normalizePath)(root),
42017
42018
  projectType,
42018
- apps
42019
+ apps,
42020
+ capCustomPaths
42019
42021
  };
42020
42022
  }
42021
42023
  async function getAppFolders(root, memFs) {
@@ -45378,9 +45380,9 @@ var require_combined_stream = __commonJS({
45378
45380
  }
45379
45381
  });
45380
45382
 
45381
- // ../../node_modules/mime-db/db.json
45383
+ // ../../node_modules/form-data/node_modules/mime-db/db.json
45382
45384
  var require_db = __commonJS({
45383
- "../../node_modules/mime-db/db.json"(exports2, module2) {
45385
+ "../../node_modules/form-data/node_modules/mime-db/db.json"(exports2, module2) {
45384
45386
  module2.exports = {
45385
45387
  "application/1d-interleaved-parityfec": {
45386
45388
  source: "iana"
@@ -53560,16 +53562,16 @@ var require_db = __commonJS({
53560
53562
  }
53561
53563
  });
53562
53564
 
53563
- // ../../node_modules/mime-db/index.js
53565
+ // ../../node_modules/form-data/node_modules/mime-db/index.js
53564
53566
  var require_mime_db = __commonJS({
53565
- "../../node_modules/mime-db/index.js"(exports2, module2) {
53567
+ "../../node_modules/form-data/node_modules/mime-db/index.js"(exports2, module2) {
53566
53568
  module2.exports = require_db();
53567
53569
  }
53568
53570
  });
53569
53571
 
53570
- // ../../node_modules/mime-types/index.js
53572
+ // ../../node_modules/form-data/node_modules/mime-types/index.js
53571
53573
  var require_mime_types = __commonJS({
53572
- "../../node_modules/mime-types/index.js"(exports2) {
53574
+ "../../node_modules/form-data/node_modules/mime-types/index.js"(exports2) {
53573
53575
  "use strict";
53574
53576
  var db = require_mime_db();
53575
53577
  var extname = require("path").extname;
@@ -56578,7 +56580,7 @@ var require_axios = __commonJS({
56578
56580
  var { isArray: isArray2 } = Array;
56579
56581
  var isUndefined = typeOfTest("undefined");
56580
56582
  function isBuffer(val2) {
56581
- return val2 !== null && !isUndefined(val2) && val2.constructor !== null && !isUndefined(val2.constructor) && isFunction2(val2.constructor.isBuffer) && val2.constructor.isBuffer(val2);
56583
+ return val2 !== null && !isUndefined(val2) && val2.constructor !== null && !isUndefined(val2.constructor) && isFunction$1(val2.constructor.isBuffer) && val2.constructor.isBuffer(val2);
56582
56584
  }
56583
56585
  var isArrayBuffer2 = kindOfTest("ArrayBuffer");
56584
56586
  function isArrayBufferView(val2) {
@@ -56591,7 +56593,7 @@ var require_axios = __commonJS({
56591
56593
  return result;
56592
56594
  }
56593
56595
  var isString2 = typeOfTest("string");
56594
- var isFunction2 = typeOfTest("function");
56596
+ var isFunction$1 = typeOfTest("function");
56595
56597
  var isNumber = typeOfTest("number");
56596
56598
  var isObject3 = (thing) => thing !== null && typeof thing === "object";
56597
56599
  var isBoolean = (thing) => thing === true || thing === false;
@@ -56616,11 +56618,11 @@ var require_axios = __commonJS({
56616
56618
  var isFile = kindOfTest("File");
56617
56619
  var isBlob = kindOfTest("Blob");
56618
56620
  var isFileList = kindOfTest("FileList");
56619
- var isStream = (val2) => isObject3(val2) && isFunction2(val2.pipe);
56621
+ var isStream = (val2) => isObject3(val2) && isFunction$1(val2.pipe);
56620
56622
  var isFormData = (thing) => {
56621
56623
  let kind;
56622
- return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction2(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
56623
- kind === "object" && isFunction2(thing.toString) && thing.toString() === "[object FormData]"));
56624
+ return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction$1(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
56625
+ kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]"));
56624
56626
  };
56625
56627
  var isURLSearchParams = kindOfTest("URLSearchParams");
56626
56628
  var [isReadableStream2, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
@@ -56673,7 +56675,7 @@ var require_axios = __commonJS({
56673
56675
  })();
56674
56676
  var isContextDefined = (context2) => !isUndefined(context2) && context2 !== _global2;
56675
56677
  function merge2() {
56676
- const { caseless } = isContextDefined(this) && this || {};
56678
+ const { caseless, skipUndefined } = isContextDefined(this) && this || {};
56677
56679
  const result = {};
56678
56680
  const assignValue = (val2, key) => {
56679
56681
  const targetKey = caseless && findKey(result, key) || key;
@@ -56683,7 +56685,7 @@ var require_axios = __commonJS({
56683
56685
  result[targetKey] = merge2({}, val2);
56684
56686
  } else if (isArray2(val2)) {
56685
56687
  result[targetKey] = val2.slice();
56686
- } else {
56688
+ } else if (!skipUndefined || !isUndefined(val2)) {
56687
56689
  result[targetKey] = val2;
56688
56690
  }
56689
56691
  };
@@ -56694,7 +56696,7 @@ var require_axios = __commonJS({
56694
56696
  }
56695
56697
  var extend2 = (a, b, thisArg, { allOwnKeys } = {}) => {
56696
56698
  forEach(b, (val2, key) => {
56697
- if (thisArg && isFunction2(val2)) {
56699
+ if (thisArg && isFunction$1(val2)) {
56698
56700
  a[key] = bind(val2, thisArg);
56699
56701
  } else {
56700
56702
  a[key] = val2;
@@ -56803,11 +56805,11 @@ var require_axios = __commonJS({
56803
56805
  };
56804
56806
  var freezeMethods = (obj) => {
56805
56807
  reduceDescriptors(obj, (descriptor, name2) => {
56806
- if (isFunction2(obj) && ["arguments", "caller", "callee"].indexOf(name2) !== -1) {
56808
+ if (isFunction$1(obj) && ["arguments", "caller", "callee"].indexOf(name2) !== -1) {
56807
56809
  return false;
56808
56810
  }
56809
56811
  const value = obj[name2];
56810
- if (!isFunction2(value)) return;
56812
+ if (!isFunction$1(value)) return;
56811
56813
  descriptor.enumerable = false;
56812
56814
  if ("writable" in descriptor) {
56813
56815
  descriptor.writable = false;
@@ -56836,7 +56838,7 @@ var require_axios = __commonJS({
56836
56838
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
56837
56839
  };
56838
56840
  function isSpecCompliantForm(thing) {
56839
- return !!(thing && isFunction2(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
56841
+ return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
56840
56842
  }
56841
56843
  var toJSONObject = (obj) => {
56842
56844
  const stack = new Array(10);
@@ -56864,7 +56866,7 @@ var require_axios = __commonJS({
56864
56866
  return visit3(obj, 0);
56865
56867
  };
56866
56868
  var isAsyncFn = kindOfTest("AsyncFunction");
56867
- var isThenable = (thing) => thing && (isObject3(thing) || isFunction2(thing)) && isFunction2(thing.then) && isFunction2(thing.catch);
56869
+ var isThenable = (thing) => thing && (isObject3(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
56868
56870
  var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
56869
56871
  if (setImmediateSupported) {
56870
56872
  return setImmediate;
@@ -56882,10 +56884,10 @@ var require_axios = __commonJS({
56882
56884
  })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
56883
56885
  })(
56884
56886
  typeof setImmediate === "function",
56885
- isFunction2(_global2.postMessage)
56887
+ isFunction$1(_global2.postMessage)
56886
56888
  );
56887
56889
  var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global2) : typeof process !== "undefined" && process.nextTick || _setImmediate;
56888
- var isIterable = (thing) => thing != null && isFunction2(thing[iterator]);
56890
+ var isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
56889
56891
  var utils$1 = {
56890
56892
  isArray: isArray2,
56891
56893
  isArrayBuffer: isArrayBuffer2,
@@ -56907,7 +56909,7 @@ var require_axios = __commonJS({
56907
56909
  isFile,
56908
56910
  isBlob,
56909
56911
  isRegExp,
56910
- isFunction: isFunction2,
56912
+ isFunction: isFunction$1,
56911
56913
  isStream,
56912
56914
  isURLSearchParams,
56913
56915
  isTypedArray,
@@ -57012,9 +57014,13 @@ var require_axios = __commonJS({
57012
57014
  }, (prop) => {
57013
57015
  return prop !== "isAxiosError";
57014
57016
  });
57015
- AxiosError.call(axiosError, error.message, code, config, request3, response);
57016
- axiosError.cause = error;
57017
- axiosError.name = error.name;
57017
+ const msg = error && error.message ? error.message : "Error";
57018
+ const errCode = code == null && error ? error.code : code;
57019
+ AxiosError.call(axiosError, msg, errCode, config, request3, response);
57020
+ if (error && axiosError.cause == null) {
57021
+ Object.defineProperty(axiosError, "cause", { value: error, configurable: true });
57022
+ }
57023
+ axiosError.name = error && error.name || "Error";
57018
57024
  customProps && Object.assign(axiosError, customProps);
57019
57025
  return axiosError;
57020
57026
  };
@@ -57161,7 +57167,7 @@ var require_axios = __commonJS({
57161
57167
  }, "").join("&");
57162
57168
  };
57163
57169
  function encode(val2) {
57164
- return encodeURIComponent(val2).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
57170
+ return encodeURIComponent(val2).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
57165
57171
  }
57166
57172
  function buildURL(url2, params, options2) {
57167
57173
  if (!params) {
@@ -57435,7 +57441,7 @@ var require_axios = __commonJS({
57435
57441
  const silentJSONParsing = transitional && transitional.silentJSONParsing;
57436
57442
  const strictJSONParsing = !silentJSONParsing && JSONRequested;
57437
57443
  try {
57438
- return JSON.parse(data);
57444
+ return JSON.parse(data, this.parseReviver);
57439
57445
  } catch (e) {
57440
57446
  if (strictJSONParsing) {
57441
57447
  if (e.name === "SyntaxError") {
@@ -57792,7 +57798,7 @@ var require_axios = __commonJS({
57792
57798
  }
57793
57799
  return requestedURL;
57794
57800
  }
57795
- var VERSION4 = "1.11.0";
57801
+ var VERSION4 = "1.12.2";
57796
57802
  function parseProtocol(url2) {
57797
57803
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
57798
57804
  return match && match[1] || "";
@@ -58156,6 +58162,55 @@ var require_axios = __commonJS({
58156
58162
  }), throttled[1]];
58157
58163
  };
58158
58164
  var asyncDecorator = (fn2) => (...args) => utils$1.asap(() => fn2(...args));
58165
+ function estimateDataURLDecodedBytes(url2) {
58166
+ if (!url2 || typeof url2 !== "string") return 0;
58167
+ if (!url2.startsWith("data:")) return 0;
58168
+ const comma = url2.indexOf(",");
58169
+ if (comma < 0) return 0;
58170
+ const meta = url2.slice(5, comma);
58171
+ const body = url2.slice(comma + 1);
58172
+ const isBase64 = /;base64/i.test(meta);
58173
+ if (isBase64) {
58174
+ let effectiveLen = body.length;
58175
+ const len = body.length;
58176
+ for (let i = 0; i < len; i++) {
58177
+ if (body.charCodeAt(i) === 37 && i + 2 < len) {
58178
+ const a = body.charCodeAt(i + 1);
58179
+ const b = body.charCodeAt(i + 2);
58180
+ const isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102);
58181
+ if (isHex) {
58182
+ effectiveLen -= 2;
58183
+ i += 2;
58184
+ }
58185
+ }
58186
+ }
58187
+ let pad2 = 0;
58188
+ let idx = len - 1;
58189
+ const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && // '%'
58190
+ body.charCodeAt(j - 1) === 51 && // '3'
58191
+ (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
58192
+ if (idx >= 0) {
58193
+ if (body.charCodeAt(idx) === 61) {
58194
+ pad2++;
58195
+ idx--;
58196
+ } else if (tailIsPct3D(idx)) {
58197
+ pad2++;
58198
+ idx -= 3;
58199
+ }
58200
+ }
58201
+ if (pad2 === 1 && idx >= 0) {
58202
+ if (body.charCodeAt(idx) === 61) {
58203
+ pad2++;
58204
+ } else if (tailIsPct3D(idx)) {
58205
+ pad2++;
58206
+ }
58207
+ }
58208
+ const groups = Math.floor(effectiveLen / 4);
58209
+ const bytes = groups * 3 - (pad2 || 0);
58210
+ return bytes > 0 ? bytes : 0;
58211
+ }
58212
+ return Buffer.byteLength(body, "utf8");
58213
+ }
58159
58214
  var zlibOptions = {
58160
58215
  flush: zlib__default["default"].constants.Z_SYNC_FLUSH,
58161
58216
  finishFlush: zlib__default["default"].constants.Z_SYNC_FLUSH
@@ -58297,6 +58352,17 @@ var require_axios = __commonJS({
58297
58352
  const parsed = new URL(fullPath, platform3.hasBrowserEnv ? platform3.origin : void 0);
58298
58353
  const protocol = parsed.protocol || supportedProtocols[0];
58299
58354
  if (protocol === "data:") {
58355
+ if (config.maxContentLength > -1) {
58356
+ const dataUrl = String(config.url || fullPath || "");
58357
+ const estimated = estimateDataURLDecodedBytes(dataUrl);
58358
+ if (estimated > config.maxContentLength) {
58359
+ return reject(new AxiosError(
58360
+ "maxContentLength size of " + config.maxContentLength + " exceeded",
58361
+ AxiosError.ERR_BAD_RESPONSE,
58362
+ config
58363
+ ));
58364
+ }
58365
+ }
58300
58366
  let convertedData;
58301
58367
  if (method !== "GET") {
58302
58368
  return settle(resolve, reject, {
@@ -58782,13 +58848,17 @@ var require_axios = __commonJS({
58782
58848
  "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
58783
58849
  );
58784
58850
  }
58785
- let contentType;
58786
58851
  if (utils$1.isFormData(data)) {
58787
58852
  if (platform3.hasStandardBrowserEnv || platform3.hasStandardBrowserWebWorkerEnv) {
58788
58853
  headers.setContentType(void 0);
58789
- } else if ((contentType = headers.getContentType()) !== false) {
58790
- const [type2, ...tokens] = contentType ? contentType.split(";").map((token2) => token2.trim()).filter(Boolean) : [];
58791
- headers.setContentType([type2 || "multipart/form-data", ...tokens].join("; "));
58854
+ } else if (utils$1.isFunction(data.getHeaders)) {
58855
+ const formHeaders = data.getHeaders();
58856
+ const allowedHeaders = ["content-type", "content-length"];
58857
+ Object.entries(formHeaders).forEach(([key, val2]) => {
58858
+ if (allowedHeaders.includes(key.toLowerCase())) {
58859
+ headers.set(key, val2);
58860
+ }
58861
+ });
58792
58862
  }
58793
58863
  }
58794
58864
  if (platform3.hasStandardBrowserEnv) {
@@ -58866,8 +58936,11 @@ var require_axios = __commonJS({
58866
58936
  reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request3));
58867
58937
  request3 = null;
58868
58938
  };
58869
- request3.onerror = function handleError() {
58870
- reject(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request3));
58939
+ request3.onerror = function handleError(event) {
58940
+ const msg = event && event.message ? event.message : "Network Error";
58941
+ const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request3);
58942
+ err.event = event || null;
58943
+ reject(err);
58871
58944
  request3 = null;
58872
58945
  };
58873
58946
  request3.ontimeout = function handleTimeout() {
@@ -59036,9 +59109,16 @@ var require_axios = __commonJS({
59036
59109
  highWaterMark: 2
59037
59110
  });
59038
59111
  };
59039
- var isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
59040
- var isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
59041
- var encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
59112
+ var DEFAULT_CHUNK_SIZE = 64 * 1024;
59113
+ var { isFunction: isFunction2 } = utils$1;
59114
+ var globalFetchAPI = (({ Request, Response }) => ({
59115
+ Request,
59116
+ Response
59117
+ }))(utils$1.global);
59118
+ var {
59119
+ ReadableStream: ReadableStream$1,
59120
+ TextEncoder: TextEncoder$1
59121
+ } = utils$1.global;
59042
59122
  var test = (fn2, ...args) => {
59043
59123
  try {
59044
59124
  return !!fn2(...args);
@@ -59046,162 +59126,202 @@ var require_axios = __commonJS({
59046
59126
  return false;
59047
59127
  }
59048
59128
  };
59049
- var supportsRequestStream = isReadableStreamSupported && test(() => {
59050
- let duplexAccessed = false;
59051
- const hasContentType = new Request(platform3.origin, {
59052
- body: new ReadableStream(),
59053
- method: "POST",
59054
- get duplex() {
59055
- duplexAccessed = true;
59056
- return "half";
59057
- }
59058
- }).headers.has("Content-Type");
59059
- return duplexAccessed && !hasContentType;
59060
- });
59061
- var DEFAULT_CHUNK_SIZE = 64 * 1024;
59062
- var supportsResponseStream = isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
59063
- var resolvers = {
59064
- stream: supportsResponseStream && ((res) => res.body)
59065
- };
59066
- isFetchSupported && ((res) => {
59067
- ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type2) => {
59068
- !resolvers[type2] && (resolvers[type2] = utils$1.isFunction(res[type2]) ? (res2) => res2[type2]() : (_, config) => {
59069
- throw new AxiosError(`Response type '${type2}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
59070
- });
59071
- });
59072
- })(new Response());
59073
- var getBodyLength2 = async (body) => {
59074
- if (body == null) {
59075
- return 0;
59076
- }
59077
- if (utils$1.isBlob(body)) {
59078
- return body.size;
59129
+ var factory = (env3) => {
59130
+ env3 = utils$1.merge.call({
59131
+ skipUndefined: true
59132
+ }, globalFetchAPI, env3);
59133
+ const { fetch: envFetch, Request, Response } = env3;
59134
+ const isFetchSupported = envFetch ? isFunction2(envFetch) : typeof fetch === "function";
59135
+ const isRequestSupported = isFunction2(Request);
59136
+ const isResponseSupported = isFunction2(Response);
59137
+ if (!isFetchSupported) {
59138
+ return false;
59079
59139
  }
59080
- if (utils$1.isSpecCompliantForm(body)) {
59081
- const _request = new Request(platform3.origin, {
59140
+ const isReadableStreamSupported = isFetchSupported && isFunction2(ReadableStream$1);
59141
+ const encodeText = isFetchSupported && (typeof TextEncoder$1 === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder$1()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
59142
+ const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
59143
+ let duplexAccessed = false;
59144
+ const hasContentType = new Request(platform3.origin, {
59145
+ body: new ReadableStream$1(),
59082
59146
  method: "POST",
59083
- body
59084
- });
59085
- return (await _request.arrayBuffer()).byteLength;
59086
- }
59087
- if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
59088
- return body.byteLength;
59089
- }
59090
- if (utils$1.isURLSearchParams(body)) {
59091
- body = body + "";
59092
- }
59093
- if (utils$1.isString(body)) {
59094
- return (await encodeText(body)).byteLength;
59095
- }
59096
- };
59097
- var resolveBodyLength = async (headers, body) => {
59098
- const length = utils$1.toFiniteNumber(headers.getContentLength());
59099
- return length == null ? getBodyLength2(body) : length;
59100
- };
59101
- var fetchAdapter = isFetchSupported && (async (config) => {
59102
- let {
59103
- url: url2,
59104
- method,
59105
- data,
59106
- signal,
59107
- cancelToken,
59108
- timeout,
59109
- onDownloadProgress,
59110
- onUploadProgress,
59111
- responseType,
59112
- headers,
59113
- withCredentials = "same-origin",
59114
- fetchOptions
59115
- } = resolveConfig(config);
59116
- responseType = responseType ? (responseType + "").toLowerCase() : "text";
59117
- let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
59118
- let request3;
59119
- const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
59120
- composedSignal.unsubscribe();
59147
+ get duplex() {
59148
+ duplexAccessed = true;
59149
+ return "half";
59150
+ }
59151
+ }).headers.has("Content-Type");
59152
+ return duplexAccessed && !hasContentType;
59121
59153
  });
59122
- let requestContentLength;
59123
- try {
59124
- if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
59125
- let _request = new Request(url2, {
59126
- method: "POST",
59127
- body: data,
59128
- duplex: "half"
59129
- });
59130
- let contentTypeHeader;
59131
- if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
59132
- headers.setContentType(contentTypeHeader);
59133
- }
59134
- if (_request.body) {
59135
- const [onProgress, flush] = progressEventDecorator(
59136
- requestContentLength,
59137
- progressEventReducer(asyncDecorator(onUploadProgress))
59138
- );
59139
- data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
59140
- }
59141
- }
59142
- if (!utils$1.isString(withCredentials)) {
59143
- withCredentials = withCredentials ? "include" : "omit";
59144
- }
59145
- const isCredentialsSupported = "credentials" in Request.prototype;
59146
- request3 = new Request(url2, {
59147
- ...fetchOptions,
59148
- signal: composedSignal,
59149
- method: method.toUpperCase(),
59150
- headers: headers.normalize().toJSON(),
59151
- body: data,
59152
- duplex: "half",
59153
- credentials: isCredentialsSupported ? withCredentials : void 0
59154
- });
59155
- let response = await fetch(request3, fetchOptions);
59156
- const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
59157
- if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
59158
- const options2 = {};
59159
- ["status", "statusText", "headers"].forEach((prop) => {
59160
- options2[prop] = response[prop];
59154
+ const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
59155
+ const resolvers = {
59156
+ stream: supportsResponseStream && ((res) => res.body)
59157
+ };
59158
+ isFetchSupported && (() => {
59159
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type2) => {
59160
+ !resolvers[type2] && (resolvers[type2] = (res, config) => {
59161
+ let method = res && res[type2];
59162
+ if (method) {
59163
+ return method.call(res);
59164
+ }
59165
+ throw new AxiosError(`Response type '${type2}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
59161
59166
  });
59162
- const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
59163
- const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
59164
- responseContentLength,
59165
- progressEventReducer(asyncDecorator(onDownloadProgress), true)
59166
- ) || [];
59167
- response = new Response(
59168
- trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
59169
- flush && flush();
59170
- unsubscribe && unsubscribe();
59171
- }),
59172
- options2
59173
- );
59167
+ });
59168
+ })();
59169
+ const getBodyLength2 = async (body) => {
59170
+ if (body == null) {
59171
+ return 0;
59174
59172
  }
59175
- responseType = responseType || "text";
59176
- let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](response, config);
59177
- !isStreamResponse && unsubscribe && unsubscribe();
59178
- return await new Promise((resolve, reject) => {
59179
- settle(resolve, reject, {
59180
- data: responseData,
59181
- headers: AxiosHeaders$1.from(response.headers),
59182
- status: response.status,
59183
- statusText: response.statusText,
59184
- config,
59185
- request: request3
59173
+ if (utils$1.isBlob(body)) {
59174
+ return body.size;
59175
+ }
59176
+ if (utils$1.isSpecCompliantForm(body)) {
59177
+ const _request = new Request(platform3.origin, {
59178
+ method: "POST",
59179
+ body
59186
59180
  });
59187
- });
59188
- } catch (err) {
59189
- unsubscribe && unsubscribe();
59190
- if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
59191
- throw Object.assign(
59192
- new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request3),
59193
- {
59194
- cause: err.cause || err
59181
+ return (await _request.arrayBuffer()).byteLength;
59182
+ }
59183
+ if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
59184
+ return body.byteLength;
59185
+ }
59186
+ if (utils$1.isURLSearchParams(body)) {
59187
+ body = body + "";
59188
+ }
59189
+ if (utils$1.isString(body)) {
59190
+ return (await encodeText(body)).byteLength;
59191
+ }
59192
+ };
59193
+ const resolveBodyLength = async (headers, body) => {
59194
+ const length = utils$1.toFiniteNumber(headers.getContentLength());
59195
+ return length == null ? getBodyLength2(body) : length;
59196
+ };
59197
+ return async (config) => {
59198
+ let {
59199
+ url: url2,
59200
+ method,
59201
+ data,
59202
+ signal,
59203
+ cancelToken,
59204
+ timeout,
59205
+ onDownloadProgress,
59206
+ onUploadProgress,
59207
+ responseType,
59208
+ headers,
59209
+ withCredentials = "same-origin",
59210
+ fetchOptions
59211
+ } = resolveConfig(config);
59212
+ let _fetch = envFetch || fetch;
59213
+ responseType = responseType ? (responseType + "").toLowerCase() : "text";
59214
+ let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
59215
+ let request3 = null;
59216
+ const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
59217
+ composedSignal.unsubscribe();
59218
+ });
59219
+ let requestContentLength;
59220
+ try {
59221
+ if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
59222
+ let _request = new Request(url2, {
59223
+ method: "POST",
59224
+ body: data,
59225
+ duplex: "half"
59226
+ });
59227
+ let contentTypeHeader;
59228
+ if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
59229
+ headers.setContentType(contentTypeHeader);
59230
+ }
59231
+ if (_request.body) {
59232
+ const [onProgress, flush] = progressEventDecorator(
59233
+ requestContentLength,
59234
+ progressEventReducer(asyncDecorator(onUploadProgress))
59235
+ );
59236
+ data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
59195
59237
  }
59196
- );
59238
+ }
59239
+ if (!utils$1.isString(withCredentials)) {
59240
+ withCredentials = withCredentials ? "include" : "omit";
59241
+ }
59242
+ const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
59243
+ const resolvedOptions = {
59244
+ ...fetchOptions,
59245
+ signal: composedSignal,
59246
+ method: method.toUpperCase(),
59247
+ headers: headers.normalize().toJSON(),
59248
+ body: data,
59249
+ duplex: "half",
59250
+ credentials: isCredentialsSupported ? withCredentials : void 0
59251
+ };
59252
+ request3 = isRequestSupported && new Request(url2, resolvedOptions);
59253
+ let response = await (isRequestSupported ? _fetch(request3, fetchOptions) : _fetch(url2, resolvedOptions));
59254
+ const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
59255
+ if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
59256
+ const options2 = {};
59257
+ ["status", "statusText", "headers"].forEach((prop) => {
59258
+ options2[prop] = response[prop];
59259
+ });
59260
+ const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
59261
+ const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
59262
+ responseContentLength,
59263
+ progressEventReducer(asyncDecorator(onDownloadProgress), true)
59264
+ ) || [];
59265
+ response = new Response(
59266
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
59267
+ flush && flush();
59268
+ unsubscribe && unsubscribe();
59269
+ }),
59270
+ options2
59271
+ );
59272
+ }
59273
+ responseType = responseType || "text";
59274
+ let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](response, config);
59275
+ !isStreamResponse && unsubscribe && unsubscribe();
59276
+ return await new Promise((resolve, reject) => {
59277
+ settle(resolve, reject, {
59278
+ data: responseData,
59279
+ headers: AxiosHeaders$1.from(response.headers),
59280
+ status: response.status,
59281
+ statusText: response.statusText,
59282
+ config,
59283
+ request: request3
59284
+ });
59285
+ });
59286
+ } catch (err) {
59287
+ unsubscribe && unsubscribe();
59288
+ if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
59289
+ throw Object.assign(
59290
+ new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request3),
59291
+ {
59292
+ cause: err.cause || err
59293
+ }
59294
+ );
59295
+ }
59296
+ throw AxiosError.from(err, err && err.code, config, request3);
59197
59297
  }
59198
- throw AxiosError.from(err, err && err.code, config, request3);
59298
+ };
59299
+ };
59300
+ var seedCache = /* @__PURE__ */ new Map();
59301
+ var getFetch = (config) => {
59302
+ let env3 = config ? config.env : {};
59303
+ const { fetch: fetch2, Request, Response } = env3;
59304
+ const seeds = [
59305
+ Request,
59306
+ Response,
59307
+ fetch2
59308
+ ];
59309
+ let len = seeds.length, i = len, seed, target, map = seedCache;
59310
+ while (i--) {
59311
+ seed = seeds[i];
59312
+ target = map.get(seed);
59313
+ target === void 0 && map.set(seed, target = i ? /* @__PURE__ */ new Map() : factory(env3));
59314
+ map = target;
59199
59315
  }
59200
- });
59316
+ return target;
59317
+ };
59318
+ getFetch();
59201
59319
  var knownAdapters = {
59202
59320
  http: httpAdapter,
59203
59321
  xhr: xhrAdapter,
59204
- fetch: fetchAdapter
59322
+ fetch: {
59323
+ get: getFetch
59324
+ }
59205
59325
  };
59206
59326
  utils$1.forEach(knownAdapters, (fn2, value) => {
59207
59327
  if (fn2) {
@@ -59215,7 +59335,7 @@ var require_axios = __commonJS({
59215
59335
  var renderReason = (reason) => `- ${reason}`;
59216
59336
  var isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
59217
59337
  var adapters = {
59218
- getAdapter: (adapters2) => {
59338
+ getAdapter: (adapters2, config) => {
59219
59339
  adapters2 = utils$1.isArray(adapters2) ? adapters2 : [adapters2];
59220
59340
  const { length } = adapters2;
59221
59341
  let nameOrAdapter;
@@ -59231,7 +59351,7 @@ var require_axios = __commonJS({
59231
59351
  throw new AxiosError(`Unknown adapter '${id}'`);
59232
59352
  }
59233
59353
  }
59234
- if (adapter) {
59354
+ if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
59235
59355
  break;
59236
59356
  }
59237
59357
  rejectedReasons[id || "#" + i] = adapter;
@@ -59268,7 +59388,7 @@ var require_axios = __commonJS({
59268
59388
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
59269
59389
  config.headers.setContentType("application/x-www-form-urlencoded", false);
59270
59390
  }
59271
- const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
59391
+ const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter, config);
59272
59392
  return adapter(config).then(function onAdapterResolution(response) {
59273
59393
  throwIfCancellationRequested(config);
59274
59394
  response.data = transformData.call(
@@ -59471,7 +59591,6 @@ var require_axios = __commonJS({
59471
59591
  }
59472
59592
  len = requestInterceptorChain.length;
59473
59593
  let newConfig = config;
59474
- i = 0;
59475
59594
  while (i < len) {
59476
59595
  const onFulfilled = requestInterceptorChain[i++];
59477
59596
  const onRejected = requestInterceptorChain[i++];
@@ -60482,16 +60601,16 @@ var require_types5 = __commonJS({
60482
60601
  }
60483
60602
  });
60484
60603
 
60485
- // ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/stream.js
60604
+ // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/stream.js
60486
60605
  var require_stream6 = __commonJS({
60487
- "../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/stream.js"(exports2, module2) {
60606
+ "../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/stream.js"(exports2, module2) {
60488
60607
  module2.exports = require("stream");
60489
60608
  }
60490
60609
  });
60491
60610
 
60492
- // ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/destroy.js
60611
+ // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/destroy.js
60493
60612
  var require_destroy2 = __commonJS({
60494
- "../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports2, module2) {
60613
+ "../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports2, module2) {
60495
60614
  "use strict";
60496
60615
  function destroy2(err, cb) {
60497
60616
  var _this = this;
@@ -60578,9 +60697,9 @@ var require_destroy2 = __commonJS({
60578
60697
  }
60579
60698
  });
60580
60699
 
60581
- // ../../node_modules/winston-transport/node_modules/readable-stream/errors.js
60700
+ // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/errors.js
60582
60701
  var require_errors4 = __commonJS({
60583
- "../../node_modules/winston-transport/node_modules/readable-stream/errors.js"(exports2, module2) {
60702
+ "../../node_modules/@sap-ux/logger/node_modules/readable-stream/errors.js"(exports2, module2) {
60584
60703
  "use strict";
60585
60704
  var codes = {};
60586
60705
  function createErrorType(code, message, Base) {
@@ -60678,9 +60797,9 @@ var require_errors4 = __commonJS({
60678
60797
  }
60679
60798
  });
60680
60799
 
60681
- // ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/state.js
60800
+ // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/state.js
60682
60801
  var require_state3 = __commonJS({
60683
- "../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/state.js"(exports2, module2) {
60802
+ "../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/state.js"(exports2, module2) {
60684
60803
  "use strict";
60685
60804
  var ERR_INVALID_OPT_VALUE = require_errors4().codes.ERR_INVALID_OPT_VALUE;
60686
60805
  function highWaterMarkFrom(options2, isDuplex, duplexKey) {
@@ -60703,9 +60822,9 @@ var require_state3 = __commonJS({
60703
60822
  }
60704
60823
  });
60705
60824
 
60706
- // ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/buffer_list.js
60825
+ // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/buffer_list.js
60707
60826
  var require_buffer_list = __commonJS({
60708
- "../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/buffer_list.js"(exports2, module2) {
60827
+ "../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/buffer_list.js"(exports2, module2) {
60709
60828
  "use strict";
60710
60829
  function ownKeys(object, enumerableOnly) {
60711
60830
  var keys = Object.keys(object);
@@ -61234,9 +61353,9 @@ var require_string_decoder2 = __commonJS({
61234
61353
  }
61235
61354
  });
61236
61355
 
61237
- // ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/end-of-stream.js
61356
+ // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/end-of-stream.js
61238
61357
  var require_end_of_stream = __commonJS({
61239
- "../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports2, module2) {
61358
+ "../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports2, module2) {
61240
61359
  "use strict";
61241
61360
  var ERR_STREAM_PREMATURE_CLOSE = require_errors4().codes.ERR_STREAM_PREMATURE_CLOSE;
61242
61361
  function once(callback) {
@@ -61323,9 +61442,9 @@ var require_end_of_stream = __commonJS({
61323
61442
  }
61324
61443
  });
61325
61444
 
61326
- // ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/async_iterator.js
61445
+ // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/async_iterator.js
61327
61446
  var require_async_iterator = __commonJS({
61328
- "../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/async_iterator.js"(exports2, module2) {
61447
+ "../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/async_iterator.js"(exports2, module2) {
61329
61448
  "use strict";
61330
61449
  var _Object$setPrototypeO;
61331
61450
  function _defineProperty(obj, key, value) {
@@ -61491,9 +61610,9 @@ var require_async_iterator = __commonJS({
61491
61610
  }
61492
61611
  });
61493
61612
 
61494
- // ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/from.js
61613
+ // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/from.js
61495
61614
  var require_from = __commonJS({
61496
- "../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/from.js"(exports2, module2) {
61615
+ "../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/from.js"(exports2, module2) {
61497
61616
  "use strict";
61498
61617
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
61499
61618
  try {
@@ -61604,9 +61723,9 @@ var require_from = __commonJS({
61604
61723
  }
61605
61724
  });
61606
61725
 
61607
- // ../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_readable.js
61726
+ // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/_stream_readable.js
61608
61727
  var require_stream_readable2 = __commonJS({
61609
- "../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_readable.js"(exports2, module2) {
61728
+ "../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/_stream_readable.js"(exports2, module2) {
61610
61729
  "use strict";
61611
61730
  module2.exports = Readable;
61612
61731
  var Duplex;
@@ -62341,9 +62460,9 @@ var require_stream_readable2 = __commonJS({
62341
62460
  }
62342
62461
  });
62343
62462
 
62344
- // ../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_duplex.js
62463
+ // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/_stream_duplex.js
62345
62464
  var require_stream_duplex2 = __commonJS({
62346
- "../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_duplex.js"(exports2, module2) {
62465
+ "../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/_stream_duplex.js"(exports2, module2) {
62347
62466
  "use strict";
62348
62467
  var objectKeys = Object.keys || function(obj) {
62349
62468
  var keys2 = [];
@@ -62436,9 +62555,9 @@ var require_stream_duplex2 = __commonJS({
62436
62555
  }
62437
62556
  });
62438
62557
 
62439
- // ../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js
62558
+ // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/_stream_writable.js
62440
62559
  var require_stream_writable2 = __commonJS({
62441
- "../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js"(exports2, module2) {
62560
+ "../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/_stream_writable.js"(exports2, module2) {
62442
62561
  "use strict";
62443
62562
  module2.exports = Writable;
62444
62563
  function CorkedRequest(state) {
@@ -63025,9 +63144,9 @@ var require_triple_beam = __commonJS({
63025
63144
  }
63026
63145
  });
63027
63146
 
63028
- // ../../node_modules/winston-transport/modern.js
63147
+ // ../../node_modules/@sap-ux/logger/node_modules/winston-transport/modern.js
63029
63148
  var require_modern = __commonJS({
63030
- "../../node_modules/winston-transport/modern.js"(exports2, module2) {
63149
+ "../../node_modules/@sap-ux/logger/node_modules/winston-transport/modern.js"(exports2, module2) {
63031
63150
  "use strict";
63032
63151
  var util3 = require("util");
63033
63152
  var Writable = require_stream_writable2();
@@ -63137,9 +63256,9 @@ var require_modern = __commonJS({
63137
63256
  }
63138
63257
  });
63139
63258
 
63140
- // ../../node_modules/winston-transport/legacy.js
63259
+ // ../../node_modules/@sap-ux/logger/node_modules/winston-transport/legacy.js
63141
63260
  var require_legacy = __commonJS({
63142
- "../../node_modules/winston-transport/legacy.js"(exports2, module2) {
63261
+ "../../node_modules/@sap-ux/logger/node_modules/winston-transport/legacy.js"(exports2, module2) {
63143
63262
  "use strict";
63144
63263
  var util3 = require("util");
63145
63264
  var { LEVEL } = require_triple_beam();
@@ -63203,9 +63322,9 @@ var require_legacy = __commonJS({
63203
63322
  }
63204
63323
  });
63205
63324
 
63206
- // ../../node_modules/winston-transport/index.js
63325
+ // ../../node_modules/@sap-ux/logger/node_modules/winston-transport/index.js
63207
63326
  var require_winston_transport = __commonJS({
63208
- "../../node_modules/winston-transport/index.js"(exports2, module2) {
63327
+ "../../node_modules/@sap-ux/logger/node_modules/winston-transport/index.js"(exports2, module2) {
63209
63328
  "use strict";
63210
63329
  module2.exports = require_modern();
63211
63330
  module2.exports.LegacyTransportStream = require_legacy();
@@ -102273,21 +102392,22 @@ var require_devspace_utils = __commonJS({
102273
102392
  try {
102274
102393
  vscode = await Promise.resolve().then(() => __importStar(require("vscode")));
102275
102394
  } catch (error) {
102276
- throw new Error(`This functionanlity can only be used from within the vscode extension context: ${error}`);
102395
+ throw new Error(`This functionality can only be used from within the vscode extension context: ${error}`);
102277
102396
  }
102278
102397
  }
102279
102398
  let defaultLandscape = await vscode.commands.executeCommand("app-studio-toolkit.devspace-manager.get-default-landscape");
102280
102399
  if (!defaultLandscape) {
102281
102400
  await vscode.commands.executeCommand("app-studio-toolkit.devspace-manager.landscape.default-on");
102282
102401
  defaultLandscape = await vscode.commands.executeCommand("app-studio-toolkit.devspace-manager.get-default-landscape");
102283
- }
102284
- if (!defaultLandscape) {
102285
- throw new Error("There is no default landscape set");
102402
+ if (!defaultLandscape) {
102403
+ throw new Error("There is no default landscape set");
102404
+ }
102286
102405
  }
102287
102406
  let session = await vscode.authentication.getSession("BASLandscapePAT", [
102288
102407
  defaultLandscape
102289
102408
  ]);
102290
- if (!session || isJwtExpired(session.accessToken)) {
102409
+ const needsRefresh = !session || isJwtExpired(session.accessToken) || !session.iasToken || isJwtExpired(session.iasToken);
102410
+ if (needsRefresh) {
102291
102411
  session = await vscode.authentication.getSession(
102292
102412
  "BASLandscapePAT",
102293
102413
  // BAS Authentication Provider ID
@@ -102295,7 +102415,14 @@ var require_devspace_utils = __commonJS({
102295
102415
  { forceNewSession: true }
102296
102416
  );
102297
102417
  }
102298
- return { jwt: session.accessToken, landscape: defaultLandscape };
102418
+ if (!session) {
102419
+ throw new Error("Authentication failed for the default landscape");
102420
+ }
102421
+ return {
102422
+ jwt: session.accessToken,
102423
+ iasjwt: session.iasToken,
102424
+ landscape: defaultLandscape
102425
+ };
102299
102426
  }
102300
102427
  exports2.verifyDefaultLandscape = verifyDefaultLandscape;
102301
102428
  }
@@ -102543,25 +102670,30 @@ var require_ai = __commonJS({
102543
102670
  var is_app_studio_1 = require_is_app_studio();
102544
102671
  var lodash_1 = require_lodash();
102545
102672
  async function sendAiRequest(request3) {
102546
- var _a3, _b2, _c2, _d2, _e;
102547
- const opts = {
102548
- url: { domain: "", path: "" }
102549
- };
102550
- let domain, proxy = "";
102673
+ var _a3, _b2, _c2, _d2, _e, _f;
102674
+ let domain;
102675
+ let proxy = "";
102676
+ let jwt;
102551
102677
  if (!await (0, is_app_studio_1.isAppStudio)()) {
102552
- const { jwt, landscape } = await (0, devspace_utils_1.verifyDefaultLandscape)();
102553
- const { host } = await (0, get_devspace_1.getTenantMetadata)({ landscape, jwt });
102678
+ const { jwt: token2, landscape, iasjwt: iasToken } = await (0, devspace_utils_1.verifyDefaultLandscape)();
102679
+ const { host } = await (0, get_devspace_1.getTenantMetadata)({ landscape, jwt: token2 });
102554
102680
  domain = `https://${host}`;
102555
- proxy = `secure-outbound-connectivity`;
102556
- opts.jwt = jwt;
102681
+ proxy = "secure-outbound-connectivity";
102682
+ jwt = token2;
102683
+ if (iasToken) {
102684
+ (_a3 = request3.config) !== null && _a3 !== void 0 ? _a3 : request3.config = {};
102685
+ request3.config.headers = Object.assign(Object.assign({}, request3.config.headers), { "ias-authorization": iasToken });
102686
+ }
102557
102687
  } else {
102558
- domain = (_a3 = process.env.H2O_URL) !== null && _a3 !== void 0 ? _a3 : "";
102559
- }
102560
- opts.url = {
102561
- domain,
102562
- path: (0, lodash_1.join)((0, lodash_1.compact)((0, lodash_1.split)(`${proxy}/llm/${request3.path}`, "/")), "/")
102563
- };
102564
- return (0, devspace_utils_1.sendRequest)(Object.assign(Object.assign({ config: Object.assign(Object.assign({}, request3.config), { headers: Object.assign(Object.assign({}, (_b2 = request3.config) === null || _b2 === void 0 ? void 0 : _b2.headers), { "AI-Resource-Group": (_e = (_d2 = (_c2 = request3.config) === null || _c2 === void 0 ? void 0 : _c2.headers) === null || _d2 === void 0 ? void 0 : _d2["AI-Resource-Group"]) !== null && _e !== void 0 ? _e : "default" }) }) }, opts), { method: request3.method }));
102688
+ domain = (_b2 = process.env.H2O_URL) !== null && _b2 !== void 0 ? _b2 : "";
102689
+ }
102690
+ const path3 = (0, lodash_1.join)((0, lodash_1.compact)((0, lodash_1.split)(`${proxy}/llm/${request3.path}`, "/")), "/");
102691
+ return (0, devspace_utils_1.sendRequest)({
102692
+ config: Object.assign(Object.assign({}, request3.config), { headers: Object.assign(Object.assign({}, (_c2 = request3.config) === null || _c2 === void 0 ? void 0 : _c2.headers), { "AI-Resource-Group": (_f = (_e = (_d2 = request3.config) === null || _d2 === void 0 ? void 0 : _d2.headers) === null || _e === void 0 ? void 0 : _e["AI-Resource-Group"]) !== null && _f !== void 0 ? _f : "default" }) }),
102693
+ url: { domain, path: path3 },
102694
+ jwt,
102695
+ method: request3.method
102696
+ });
102565
102697
  }
102566
102698
  exports2.sendAiRequest = sendAiRequest;
102567
102699
  }
@@ -141086,7 +141218,7 @@ var require_package8 = __commonJS({
141086
141218
  "../../node_modules/@sap-ux/telemetry/package.json"(exports2, module2) {
141087
141219
  module2.exports = {
141088
141220
  name: "@sap-ux/telemetry",
141089
- version: "0.6.20",
141221
+ version: "0.6.24",
141090
141222
  description: "Library for sending usage telemetry data",
141091
141223
  repository: {
141092
141224
  type: "git",
@@ -141101,15 +141233,15 @@ var require_package8 = __commonJS({
141101
141233
  main: "dist/index.js",
141102
141234
  dependencies: {
141103
141235
  applicationinsights: "2.9.2",
141104
- axios: "1.11.0",
141236
+ axios: "1.12.2",
141105
141237
  "performance-now": "2.1.0",
141106
141238
  yaml: "2.3.3",
141107
141239
  "@sap-ux/store": "1.1.4",
141108
- "@sap-ux/project-access": "1.30.14",
141109
- "@sap-ux/btp-utils": "1.1.1",
141110
- "@sap-ux/ui5-config": "0.29.4",
141240
+ "@sap-ux/project-access": "1.32.1",
141241
+ "@sap-ux/btp-utils": "1.1.3",
141242
+ "@sap-ux/ui5-config": "0.29.5",
141111
141243
  "@sap-ux/logger": "0.7.0",
141112
- "@sap-ux/nodejs-utils": "0.2.3"
141244
+ "@sap-ux/nodejs-utils": "0.2.5"
141113
141245
  },
141114
141246
  devDependencies: {
141115
141247
  "jest-extended": "6.0.0",
@@ -165055,6 +165187,9 @@ module.exports = async ({
165055
165187
  const files = await resources.rootProject.byGlob("/manifest.json");
165056
165188
  await flp.init(JSON.parse(await files[0].getString()));
165057
165189
  }
165190
+ if ((0, import_preview_middleware.isRemoteConnectionsEnabled)()) {
165191
+ await (0, import_preview_middleware.logRemoteUrl)(log2);
165192
+ }
165058
165193
  flp.router.getAppPages = () => (0, import_preview_middleware.getPreviewPaths)(config).map(({ path: path3 }) => path3);
165059
165194
  return flp.router;
165060
165195
  };
@@ -165164,7 +165299,7 @@ mime-types/index.js:
165164
165299
  *)
165165
165300
 
165166
165301
  axios/dist/node/axios.cjs:
165167
- (*! Axios v1.11.0 Copyright (c) 2025 Matt Zabriskie and contributors *)
165302
+ (*! Axios v1.12.2 Copyright (c) 2025 Matt Zabriskie and contributors *)
165168
165303
 
165169
165304
  safe-buffer/index.js:
165170
165305
  (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)