@sap/ux-ui5-tooling 1.6.6 → 1.7.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.
- package/CHANGELOG.md +15 -0
- package/README.md +3 -1
- package/dist/cli/index.js +6878 -6213
- package/dist/middlewares/fiori-tools-appreload.js +175 -271
- package/dist/middlewares/fiori-tools-preview.js +2720 -706
- package/dist/middlewares/fiori-tools-proxy.js +102001 -108052
- package/dist/middlewares/fiori-tools-servestatic.js +177 -275
- package/dist/tasks/cf-deploy/index.js +956 -467
- package/dist/tasks/deploy/index.js +1877 -1214
- package/dist/templates/control-property-editor/app.css +1 -1
- package/dist/templates/control-property-editor/app.js +49 -49
- package/dist/templates/control-property-editor/ui5-adaptation.js +1 -1
- package/dist/templates/variants-management/preview.html +1 -1
- package/package.json +15 -15
|
@@ -1,26 +1,9 @@
|
|
|
1
1
|
var __create = Object.create;
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
-
var __defProps = Object.defineProperties;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
9
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12
|
-
var __spreadValues = (a, b) => {
|
|
13
|
-
for (var prop in b || (b = {}))
|
|
14
|
-
if (__hasOwnProp.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
if (__getOwnPropSymbols)
|
|
17
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
18
|
-
if (__propIsEnum.call(b, prop))
|
|
19
|
-
__defNormalProp(a, prop, b[prop]);
|
|
20
|
-
}
|
|
21
|
-
return a;
|
|
22
|
-
};
|
|
23
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
7
|
var __esm = (fn, res) => function __init() {
|
|
25
8
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
26
9
|
};
|
|
@@ -210,6 +193,7 @@ var require_EventName = __commonJS({
|
|
|
210
193
|
EventName3["DISABLE_TELEMETRY"] = "DISABLE_TELEMETRY";
|
|
211
194
|
EventName3["GUIDE_ACTION"] = "GUIDE_ACTION";
|
|
212
195
|
EventName3["PANEL_LOAD"] = "PANEL_LOAD";
|
|
196
|
+
EventName3["LAUNCH_GD"] = "LAUNCH_GD";
|
|
213
197
|
EventName3["PAGEMAP"] = "PAGEMAP";
|
|
214
198
|
EventName3["APP_ACTIONS"] = "ACTIONS";
|
|
215
199
|
EventName3["PAGE_EDITOR"] = "PAGE_EDITOR";
|
|
@@ -240,6 +224,7 @@ var require_EventName = __commonJS({
|
|
|
240
224
|
EventName3["DEPLOY_FAIL"] = "DEPLOY_FAIL";
|
|
241
225
|
EventName3["DATA_EDITOR_EVENT"] = "DATA_EDITOR_EVENT";
|
|
242
226
|
EventName3["CPE_EVENT"] = "CONTROL_PROPERTY_EDITOR_EVENT";
|
|
227
|
+
EventName3["SYSTEM_DETAILS_VIEW_EVENT"] = "SYSTEM_DETAILS_VIEW_EVENT";
|
|
243
228
|
})(EventName2 = exports2.EventName || (exports2.EventName = {}));
|
|
244
229
|
}
|
|
245
230
|
});
|
|
@@ -4279,7 +4264,7 @@ var require_promise2 = __commonJS({
|
|
|
4279
4264
|
const oldThen = Promise2.prototype.then;
|
|
4280
4265
|
Promise2.prototype.then = wrappedThen;
|
|
4281
4266
|
function makeWrappedHandler(fn, handle3, uid, isOnFulfilled) {
|
|
4282
|
-
if (typeof fn
|
|
4267
|
+
if ("function" !== typeof fn) {
|
|
4283
4268
|
return isOnFulfilled ? makeUnhandledResolutionHandler(uid) : makeUnhandledRejectionHandler(uid);
|
|
4284
4269
|
}
|
|
4285
4270
|
return function wrappedHandler() {
|
|
@@ -11890,7 +11875,7 @@ var require_package4 = __commonJS({
|
|
|
11890
11875
|
"../lib/telemetry/dist/package.json"(exports2, module2) {
|
|
11891
11876
|
module2.exports = {
|
|
11892
11877
|
name: "@sap/ux-telemetry",
|
|
11893
|
-
version: "1.
|
|
11878
|
+
version: "1.7.1",
|
|
11894
11879
|
description: "SAP Fiori tools telemetry library",
|
|
11895
11880
|
main: "dist/src/index.js",
|
|
11896
11881
|
author: "SAP SE",
|
|
@@ -11914,11 +11899,11 @@ var require_package4 = __commonJS({
|
|
|
11914
11899
|
madge: "madge --warning --circular --extensions ts ./"
|
|
11915
11900
|
},
|
|
11916
11901
|
dependencies: {
|
|
11917
|
-
"@sap-ux/store": "0.
|
|
11918
|
-
"@sap/ux-cds": "1.
|
|
11919
|
-
"@sap/ux-common-utils": "1.
|
|
11920
|
-
"@sap/ux-feature-toggle": "1.
|
|
11921
|
-
"@sap/ux-project-access": "1.
|
|
11902
|
+
"@sap-ux/store": "0.3.0",
|
|
11903
|
+
"@sap/ux-cds": "1.7.1",
|
|
11904
|
+
"@sap/ux-common-utils": "1.7.1",
|
|
11905
|
+
"@sap/ux-feature-toggle": "1.7.1",
|
|
11906
|
+
"@sap/ux-project-access": "1.7.1",
|
|
11922
11907
|
applicationinsights: "1.4.1",
|
|
11923
11908
|
"performance-now": "2.1.0",
|
|
11924
11909
|
yaml: "2.0.0-10"
|
|
@@ -12052,9 +12037,10 @@ var require_reporting = __commonJS({
|
|
|
12052
12037
|
exports2.reportEnableTelemetryOnOff = (enableTelemetry, commonProperties) => {
|
|
12053
12038
|
const telemetryEvent = {
|
|
12054
12039
|
name: EventName_1.EventName.DISABLE_TELEMETRY,
|
|
12055
|
-
properties:
|
|
12056
|
-
disableTelemetry: `${!enableTelemetry}
|
|
12057
|
-
|
|
12040
|
+
properties: {
|
|
12041
|
+
disableTelemetry: `${!enableTelemetry}`,
|
|
12042
|
+
...commonProperties
|
|
12043
|
+
},
|
|
12058
12044
|
measurements: {}
|
|
12059
12045
|
};
|
|
12060
12046
|
if (process.env.SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY !== "true") {
|
|
@@ -12355,7 +12341,11 @@ var require_toolsSuiteTelemetryClient = __commonJS({
|
|
|
12355
12341
|
v: this.extensionVersion,
|
|
12356
12342
|
datetime: date_1.localDatetimeToUTC()
|
|
12357
12343
|
};
|
|
12358
|
-
const finalProperties =
|
|
12344
|
+
const finalProperties = {
|
|
12345
|
+
...properties,
|
|
12346
|
+
...fioriProjectCommonProperties,
|
|
12347
|
+
...commonProperties
|
|
12348
|
+
};
|
|
12359
12349
|
await super.report(eventName, finalProperties, measurements, sampleRate, telemetryHelperProperties, ignoreSettings);
|
|
12360
12350
|
}
|
|
12361
12351
|
async reportEvent(event, sampleRate, telemetryHelperProperties, ignoreSettings) {
|
|
@@ -12364,8 +12354,14 @@ var require_toolsSuiteTelemetryClient = __commonJS({
|
|
|
12364
12354
|
v: this.extensionVersion,
|
|
12365
12355
|
datetime: date_1.localDatetimeToUTC()
|
|
12366
12356
|
};
|
|
12367
|
-
const finalProperties =
|
|
12368
|
-
|
|
12357
|
+
const finalProperties = {
|
|
12358
|
+
...event.properties,
|
|
12359
|
+
...fioriProjectCommonProperties,
|
|
12360
|
+
...telemetryEventCommonProperties
|
|
12361
|
+
};
|
|
12362
|
+
const finalMeasurements = {
|
|
12363
|
+
...event.measurements
|
|
12364
|
+
};
|
|
12369
12365
|
await super.report(event.eventName, finalProperties, finalMeasurements, sampleRate, telemetryHelperProperties, ignoreSettings);
|
|
12370
12366
|
}
|
|
12371
12367
|
};
|
|
@@ -23022,6 +23018,7 @@ var require_constants = __commonJS({
|
|
|
23022
23018
|
DirName2["Csv"] = "csv";
|
|
23023
23019
|
DirName2["Data"] = "data";
|
|
23024
23020
|
DirName2["Mockdata"] = "mockdata";
|
|
23021
|
+
DirName2["Dist"] = "dist";
|
|
23025
23022
|
})(DirName = exports2.DirName || (exports2.DirName = {}));
|
|
23026
23023
|
var FileName;
|
|
23027
23024
|
(function(FileName2) {
|
|
@@ -23038,6 +23035,7 @@ var require_constants = __commonJS({
|
|
|
23038
23035
|
FileName2["Ui5Yaml"] = "ui5.yaml";
|
|
23039
23036
|
FileName2["Ui5LocalYaml"] = "ui5-local.yaml";
|
|
23040
23037
|
FileName2["Ui5MockYaml"] = "ui5-mock.yaml";
|
|
23038
|
+
FileName2["Ui5DeployYaml"] = "ui5-deploy.yaml";
|
|
23041
23039
|
FileName2["fioriSandboxConfig"] = "fioriSandboxConfig.json";
|
|
23042
23040
|
FileName2["View"] = "view.xml";
|
|
23043
23041
|
})(FileName = exports2.FileName || (exports2.FileName = {}));
|
|
@@ -23161,9 +23159,9 @@ var require_p_try = __commonJS({
|
|
|
23161
23159
|
}
|
|
23162
23160
|
});
|
|
23163
23161
|
|
|
23164
|
-
// ../../node_modules/p-
|
|
23162
|
+
// ../../node_modules/p-limit/index.js
|
|
23165
23163
|
var require_p_limit = __commonJS({
|
|
23166
|
-
"../../node_modules/p-
|
|
23164
|
+
"../../node_modules/p-limit/index.js"(exports2, module2) {
|
|
23167
23165
|
"use strict";
|
|
23168
23166
|
var pTry = require_p_try();
|
|
23169
23167
|
var pLimit = (concurrency) => {
|
|
@@ -23232,10 +23230,11 @@ var require_p_locate = __commonJS({
|
|
|
23232
23230
|
return false;
|
|
23233
23231
|
};
|
|
23234
23232
|
var pLocate = async (iterable, tester, options2) => {
|
|
23235
|
-
options2 =
|
|
23233
|
+
options2 = {
|
|
23236
23234
|
concurrency: Infinity,
|
|
23237
|
-
preserveOrder: true
|
|
23238
|
-
|
|
23235
|
+
preserveOrder: true,
|
|
23236
|
+
...options2
|
|
23237
|
+
};
|
|
23239
23238
|
const limit = pLimit(options2.concurrency);
|
|
23240
23239
|
const items = [...iterable].map((element) => [element, limit(testElement, element, tester)]);
|
|
23241
23240
|
const checkLimit = pLimit(options2.preserveOrder ? 1 : Infinity);
|
|
@@ -23275,11 +23274,12 @@ var require_locate_path = __commonJS({
|
|
|
23275
23274
|
}
|
|
23276
23275
|
var matchType = (type, stat) => type === void 0 || stat[typeMappings[type]]();
|
|
23277
23276
|
module2.exports = async (paths, options2) => {
|
|
23278
|
-
options2 =
|
|
23277
|
+
options2 = {
|
|
23279
23278
|
cwd: process.cwd(),
|
|
23280
23279
|
type: "file",
|
|
23281
|
-
allowSymlinks: true
|
|
23282
|
-
|
|
23280
|
+
allowSymlinks: true,
|
|
23281
|
+
...options2
|
|
23282
|
+
};
|
|
23283
23283
|
checkType(options2);
|
|
23284
23284
|
const statFn = options2.allowSymlinks ? fsStat : fsLStat;
|
|
23285
23285
|
return pLocate(paths, async (path_) => {
|
|
@@ -23292,11 +23292,12 @@ var require_locate_path = __commonJS({
|
|
|
23292
23292
|
}, options2);
|
|
23293
23293
|
};
|
|
23294
23294
|
module2.exports.sync = (paths, options2) => {
|
|
23295
|
-
options2 =
|
|
23295
|
+
options2 = {
|
|
23296
23296
|
cwd: process.cwd(),
|
|
23297
23297
|
allowSymlinks: true,
|
|
23298
|
-
type: "file"
|
|
23299
|
-
|
|
23298
|
+
type: "file",
|
|
23299
|
+
...options2
|
|
23300
|
+
};
|
|
23300
23301
|
checkType(options2);
|
|
23301
23302
|
const statFn = options2.allowSymlinks ? fs2.statSync : fs2.lstatSync;
|
|
23302
23303
|
for (const path_ of paths) {
|
|
@@ -23361,7 +23362,7 @@ var require_find_up = __commonJS({
|
|
|
23361
23362
|
return foundPath;
|
|
23362
23363
|
};
|
|
23363
23364
|
while (true) {
|
|
23364
|
-
const foundPath = await runMatcher(
|
|
23365
|
+
const foundPath = await runMatcher({ ...options2, cwd: directory });
|
|
23365
23366
|
if (foundPath === stop) {
|
|
23366
23367
|
return;
|
|
23367
23368
|
}
|
|
@@ -23389,7 +23390,7 @@ var require_find_up = __commonJS({
|
|
|
23389
23390
|
return foundPath;
|
|
23390
23391
|
};
|
|
23391
23392
|
while (true) {
|
|
23392
|
-
const foundPath = runMatcher(
|
|
23393
|
+
const foundPath = runMatcher({ ...options2, cwd: directory });
|
|
23393
23394
|
if (foundPath === stop) {
|
|
23394
23395
|
return;
|
|
23395
23396
|
}
|
|
@@ -23411,10 +23412,10 @@ var require_find_up = __commonJS({
|
|
|
23411
23412
|
// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
23412
23413
|
function _typeof2(obj) {
|
|
23413
23414
|
"@babel/helpers - typeof";
|
|
23414
|
-
return _typeof2 = typeof Symbol
|
|
23415
|
+
return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
23415
23416
|
return typeof obj2;
|
|
23416
23417
|
} : function(obj2) {
|
|
23417
|
-
return obj2 && typeof Symbol
|
|
23418
|
+
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
23418
23419
|
}, _typeof2(obj);
|
|
23419
23420
|
}
|
|
23420
23421
|
var init_typeof = __esm({
|
|
@@ -26583,7 +26584,7 @@ var require_Utils = __commonJS({
|
|
|
26583
26584
|
tz_minute = 0;
|
|
26584
26585
|
}
|
|
26585
26586
|
tz_offset = (tz_hour * 60 + tz_minute) * 6e4;
|
|
26586
|
-
if (info.tz_sign
|
|
26587
|
+
if ("-" === info.tz_sign) {
|
|
26587
26588
|
tz_offset *= -1;
|
|
26588
26589
|
}
|
|
26589
26590
|
}
|
|
@@ -26970,7 +26971,7 @@ var require_Inline = __commonJS({
|
|
|
26970
26971
|
return "";
|
|
26971
26972
|
}
|
|
26972
26973
|
value = Utils.trim(value);
|
|
26973
|
-
if (value.length
|
|
26974
|
+
if (0 === value.length) {
|
|
26974
26975
|
return "";
|
|
26975
26976
|
}
|
|
26976
26977
|
context = {
|
|
@@ -27036,7 +27037,7 @@ var require_Inline = __commonJS({
|
|
|
27036
27037
|
if (Escaper.requiresSingleQuoting(value)) {
|
|
27037
27038
|
return Escaper.escapeWithSingleQuotes(value);
|
|
27038
27039
|
}
|
|
27039
|
-
if (
|
|
27040
|
+
if ("" === value) {
|
|
27040
27041
|
return '""';
|
|
27041
27042
|
}
|
|
27042
27043
|
if (Utils.PATTERN_DATE.test(value)) {
|
|
@@ -27135,7 +27136,7 @@ var require_Inline = __commonJS({
|
|
|
27135
27136
|
throw new ParseMore("Malformed inline YAML string (" + scalar.slice(i) + ").");
|
|
27136
27137
|
}
|
|
27137
27138
|
output3 = match[0].substr(1, match[0].length - 2);
|
|
27138
|
-
if (scalar.charAt(i)
|
|
27139
|
+
if ('"' === scalar.charAt(i)) {
|
|
27139
27140
|
output3 = Unescaper.unescapeDoubleQuotedString(output3);
|
|
27140
27141
|
} else {
|
|
27141
27142
|
output3 = Unescaper.unescapeSingleQuotedString(output3);
|
|
@@ -27328,7 +27329,7 @@ var require_Inline = __commonJS({
|
|
|
27328
27329
|
}
|
|
27329
27330
|
break;
|
|
27330
27331
|
case "0":
|
|
27331
|
-
if (scalar.slice(0, 2)
|
|
27332
|
+
if ("0x" === scalar.slice(0, 2)) {
|
|
27332
27333
|
return Utils.hexDec(scalar);
|
|
27333
27334
|
} else if (Utils.isDigits(scalar)) {
|
|
27334
27335
|
return Utils.octDec(scalar);
|
|
@@ -27355,7 +27356,7 @@ var require_Inline = __commonJS({
|
|
|
27355
27356
|
return scalar;
|
|
27356
27357
|
case "-":
|
|
27357
27358
|
if (Utils.isDigits(scalar.slice(1))) {
|
|
27358
|
-
if (scalar.charAt(1)
|
|
27359
|
+
if ("0" === scalar.charAt(1)) {
|
|
27359
27360
|
return -Utils.octDec(scalar.slice(1));
|
|
27360
27361
|
} else {
|
|
27361
27362
|
raw = scalar.slice(1);
|
|
@@ -27447,7 +27448,7 @@ var require_Parser = __commonJS({
|
|
|
27447
27448
|
if (this.isCurrentLineEmpty()) {
|
|
27448
27449
|
continue;
|
|
27449
27450
|
}
|
|
27450
|
-
if (this.currentLine[0]
|
|
27451
|
+
if (" " === this.currentLine[0]) {
|
|
27451
27452
|
throw new ParseException("A YAML file cannot contain tabs as indentation.", this.getRealCurrentLineNb() + 1, this.currentLine);
|
|
27452
27453
|
}
|
|
27453
27454
|
isRef = mergeNode = false;
|
|
@@ -27463,7 +27464,7 @@ var require_Parser = __commonJS({
|
|
|
27463
27464
|
isRef = matches.ref;
|
|
27464
27465
|
values.value = matches.value;
|
|
27465
27466
|
}
|
|
27466
|
-
if (!(values.value != null) || Utils.trim(values.value, " ")
|
|
27467
|
+
if (!(values.value != null) || "" === Utils.trim(values.value, " ") || Utils.ltrim(values.value, " ").indexOf("#") === 0) {
|
|
27467
27468
|
if (this.currentLineNb < this.lines.length - 1 && !this.isNextLineUnIndentedCollection()) {
|
|
27468
27469
|
c = this.getRealCurrentLineNb() + 1;
|
|
27469
27470
|
parser = new Parser2(c);
|
|
@@ -27504,7 +27505,7 @@ var require_Parser = __commonJS({
|
|
|
27504
27505
|
e.snippet = this.currentLine;
|
|
27505
27506
|
throw e;
|
|
27506
27507
|
}
|
|
27507
|
-
if (
|
|
27508
|
+
if ("<<" === key) {
|
|
27508
27509
|
mergeNode = true;
|
|
27509
27510
|
allowOverwrite = true;
|
|
27510
27511
|
if (((ref1 = values.value) != null ? ref1.indexOf("*") : void 0) === 0) {
|
|
@@ -27581,7 +27582,7 @@ var require_Parser = __commonJS({
|
|
|
27581
27582
|
values.value = matches.value;
|
|
27582
27583
|
}
|
|
27583
27584
|
if (mergeNode) {
|
|
27584
|
-
} else if (!(values.value != null) || Utils.trim(values.value, " ")
|
|
27585
|
+
} else if (!(values.value != null) || "" === Utils.trim(values.value, " ") || Utils.ltrim(values.value, " ").indexOf("#") === 0) {
|
|
27585
27586
|
if (!this.isNextLineIndented() && !this.isNextLineUnIndentedCollection()) {
|
|
27586
27587
|
if (allowOverwrite || data2[key] === void 0) {
|
|
27587
27588
|
data2[key] = null;
|
|
@@ -27603,7 +27604,7 @@ var require_Parser = __commonJS({
|
|
|
27603
27604
|
}
|
|
27604
27605
|
} else {
|
|
27605
27606
|
lineCount = this.lines.length;
|
|
27606
|
-
if (
|
|
27607
|
+
if (1 === lineCount || 2 === lineCount && Utils.isEmpty(this.lines[1])) {
|
|
27607
27608
|
try {
|
|
27608
27609
|
value = Inline.parse(this.lines[0], exceptionOnInvalidType, objectDecoder);
|
|
27609
27610
|
} catch (error3) {
|
|
@@ -27679,7 +27680,7 @@ var require_Parser = __commonJS({
|
|
|
27679
27680
|
if (indentation == null) {
|
|
27680
27681
|
newIndent = this.getCurrentLineIndentation();
|
|
27681
27682
|
unindentedEmbedBlock = this.isStringUnIndentedCollectionItem(this.currentLine);
|
|
27682
|
-
if (!this.isCurrentLineEmpty() &&
|
|
27683
|
+
if (!this.isCurrentLineEmpty() && 0 === newIndent && !unindentedEmbedBlock) {
|
|
27683
27684
|
throw new ParseException("Indentation problem.", this.getRealCurrentLineNb() + 1, this.currentLine);
|
|
27684
27685
|
}
|
|
27685
27686
|
} else {
|
|
@@ -27710,7 +27711,7 @@ var require_Parser = __commonJS({
|
|
|
27710
27711
|
if (indent >= newIndent) {
|
|
27711
27712
|
data2.push(this.currentLine.slice(newIndent));
|
|
27712
27713
|
} else if (Utils.ltrim(this.currentLine).charAt(0) === "#") {
|
|
27713
|
-
} else if (
|
|
27714
|
+
} else if (0 === indent) {
|
|
27714
27715
|
this.moveToPreviousLine();
|
|
27715
27716
|
break;
|
|
27716
27717
|
} else {
|
|
@@ -27731,7 +27732,7 @@ var require_Parser = __commonJS({
|
|
|
27731
27732
|
};
|
|
27732
27733
|
Parser2.prototype.parseValue = function(value, exceptionOnInvalidType, objectDecoder) {
|
|
27733
27734
|
var e, foldedIndent, matches, modifiers, pos, ref, ref1, val;
|
|
27734
|
-
if (value.indexOf("*")
|
|
27735
|
+
if (0 === value.indexOf("*")) {
|
|
27735
27736
|
pos = value.indexOf("#");
|
|
27736
27737
|
if (pos !== -1) {
|
|
27737
27738
|
value = value.substr(1, pos - 2);
|
|
@@ -27799,7 +27800,7 @@ var require_Parser = __commonJS({
|
|
|
27799
27800
|
isCurrentLineBlank = this.isCurrentLineBlank();
|
|
27800
27801
|
}
|
|
27801
27802
|
}
|
|
27802
|
-
if (
|
|
27803
|
+
if (0 === indentation) {
|
|
27803
27804
|
if (matches = this.PATTERN_INDENT_SPACES.exec(this.currentLine)) {
|
|
27804
27805
|
indentation = matches[0].length;
|
|
27805
27806
|
}
|
|
@@ -27827,7 +27828,7 @@ var require_Parser = __commonJS({
|
|
|
27827
27828
|
if (notEOF) {
|
|
27828
27829
|
this.moveToPreviousLine();
|
|
27829
27830
|
}
|
|
27830
|
-
if (
|
|
27831
|
+
if (">" === separator) {
|
|
27831
27832
|
newText = "";
|
|
27832
27833
|
ref = text.split("\n");
|
|
27833
27834
|
for (j = 0, len = ref.length; j < len; j++) {
|
|
@@ -27840,12 +27841,12 @@ var require_Parser = __commonJS({
|
|
|
27840
27841
|
}
|
|
27841
27842
|
text = newText;
|
|
27842
27843
|
}
|
|
27843
|
-
if (
|
|
27844
|
+
if ("+" !== indicator) {
|
|
27844
27845
|
text = Utils.rtrim(text);
|
|
27845
27846
|
}
|
|
27846
|
-
if (
|
|
27847
|
+
if ("" === indicator) {
|
|
27847
27848
|
text = this.PATTERN_TRAILING_LINES.replace(text, "\n");
|
|
27848
|
-
} else if (
|
|
27849
|
+
} else if ("-" === indicator) {
|
|
27849
27850
|
text = this.PATTERN_TRAILING_LINES.replace(text, "");
|
|
27850
27851
|
}
|
|
27851
27852
|
return text;
|
|
@@ -27882,7 +27883,7 @@ var require_Parser = __commonJS({
|
|
|
27882
27883
|
return trimmedLine.length === 0 || trimmedLine.charAt(0) === "#";
|
|
27883
27884
|
};
|
|
27884
27885
|
Parser2.prototype.isCurrentLineBlank = function() {
|
|
27885
|
-
return Utils.trim(this.currentLine, " ")
|
|
27886
|
+
return "" === Utils.trim(this.currentLine, " ");
|
|
27886
27887
|
};
|
|
27887
27888
|
Parser2.prototype.isCurrentLineComment = function() {
|
|
27888
27889
|
var ltrimmedLine;
|
|
@@ -27941,7 +27942,7 @@ var require_Parser = __commonJS({
|
|
|
27941
27942
|
while (notEOF && this.isCurrentLineEmpty()) {
|
|
27942
27943
|
notEOF = this.moveToNextLine();
|
|
27943
27944
|
}
|
|
27944
|
-
if (
|
|
27945
|
+
if (false === notEOF) {
|
|
27945
27946
|
return false;
|
|
27946
27947
|
}
|
|
27947
27948
|
ret = false;
|
|
@@ -35834,9 +35835,10 @@ var require_utils3 = __commonJS({
|
|
|
35834
35835
|
}, {}) || void 0;
|
|
35835
35836
|
};
|
|
35836
35837
|
function getExtendedLogger(l) {
|
|
35837
|
-
return
|
|
35838
|
+
return {
|
|
35839
|
+
...l,
|
|
35838
35840
|
debug: exports2.newDebugLogger()
|
|
35839
|
-
}
|
|
35841
|
+
};
|
|
35840
35842
|
}
|
|
35841
35843
|
exports2.getExtendedLogger = getExtendedLogger;
|
|
35842
35844
|
}
|
|
@@ -37281,7 +37283,7 @@ var require_hybrid = __commonJS({
|
|
|
37281
37283
|
this.logger.debug(`hybrid/read - id: [${id}]. Found sensitive data in secure store`);
|
|
37282
37284
|
}
|
|
37283
37285
|
if (serialized || sensitiveData) {
|
|
37284
|
-
return
|
|
37286
|
+
return { ...serialized, ...sensitiveData };
|
|
37285
37287
|
} else {
|
|
37286
37288
|
return void 0;
|
|
37287
37289
|
}
|
|
@@ -37294,7 +37296,7 @@ var require_hybrid = __commonJS({
|
|
|
37294
37296
|
const entitiesFs = await this.filesystem.readAll({ entityName }) || {};
|
|
37295
37297
|
const entitiesInSecureStore = await this.secureStore.getAll(getFullyQualifiedServiceName(entityName)) || {};
|
|
37296
37298
|
for (const key of /* @__PURE__ */ new Set([...Object.keys(entitiesFs), ...Object.keys(entitiesInSecureStore)])) {
|
|
37297
|
-
const entity =
|
|
37299
|
+
const entity = { ...entitiesFs[key], ...entitiesInSecureStore[key] };
|
|
37298
37300
|
result2[key] = entity;
|
|
37299
37301
|
}
|
|
37300
37302
|
return result2;
|
|
@@ -37450,7 +37452,7 @@ var require_backend_system2 = __commonJS({
|
|
|
37450
37452
|
async write(entity) {
|
|
37451
37453
|
let e;
|
|
37452
37454
|
if (!(entity instanceof backend_system_1.BackendSystem)) {
|
|
37453
|
-
e = new backend_system_1.BackendSystem(
|
|
37455
|
+
e = new backend_system_1.BackendSystem({ ...entity });
|
|
37454
37456
|
} else {
|
|
37455
37457
|
e = entity;
|
|
37456
37458
|
}
|
|
@@ -37596,7 +37598,7 @@ var require_system_migration2 = __commonJS({
|
|
|
37596
37598
|
authTypeMigrated = dirty = true;
|
|
37597
37599
|
}
|
|
37598
37600
|
return {
|
|
37599
|
-
migrationStatus:
|
|
37601
|
+
migrationStatus: { ...this.systemMigrationStatus, migrationDone, authTypeMigrated },
|
|
37600
37602
|
dirty
|
|
37601
37603
|
};
|
|
37602
37604
|
}
|
|
@@ -37611,7 +37613,7 @@ var require_system_migration2 = __commonJS({
|
|
|
37611
37613
|
if (refreshToken) {
|
|
37612
37614
|
this.logger.info(i18n_1.text("info.foundRefreshToken", { systemId }));
|
|
37613
37615
|
}
|
|
37614
|
-
await this.saveBackendSystem(new backend_system_1.BackendSystem(
|
|
37616
|
+
await this.saveBackendSystem(new backend_system_1.BackendSystem({ ...oldSystem, refreshToken }));
|
|
37615
37617
|
await this.secureStore.delete(contants_1.ServiceName.OldSystemService, systemId);
|
|
37616
37618
|
if (refreshToken) {
|
|
37617
37619
|
await this.deleteOldRefreshToken(oldSystem, systemId);
|
|
@@ -37643,7 +37645,7 @@ var require_system_migration2 = __commonJS({
|
|
|
37643
37645
|
const authenticationType = this.guessAuthType(existingSystem);
|
|
37644
37646
|
if (authenticationType) {
|
|
37645
37647
|
this.logger.info(i18n_1.text("info.authTypeDetermined", { authenticationType, systemId }));
|
|
37646
|
-
await this.saveBackendSystem(new backend_system_1.BackendSystem(
|
|
37648
|
+
await this.saveBackendSystem(new backend_system_1.BackendSystem({ ...existingSystem, authenticationType }));
|
|
37647
37649
|
} else {
|
|
37648
37650
|
this.logger.info(i18n_1.text("info.authTypeNotDetermined", { systemId }));
|
|
37649
37651
|
}
|
|
@@ -37682,7 +37684,7 @@ var require_system_migration2 = __commonJS({
|
|
|
37682
37684
|
async updateRefreshTokenInStoredSystem(system, refreshToken, systemId) {
|
|
37683
37685
|
if (system.refreshToken !== refreshToken) {
|
|
37684
37686
|
this.logger.info(i18n_1.text("info.updatingRefreshTokenInNewStore", { systemId }));
|
|
37685
|
-
await this.saveBackendSystem(new backend_system_1.BackendSystem(
|
|
37687
|
+
await this.saveBackendSystem(new backend_system_1.BackendSystem({ ...system, refreshToken }));
|
|
37686
37688
|
}
|
|
37687
37689
|
}
|
|
37688
37690
|
async saveBackendSystem(backendSystem) {
|
|
@@ -37713,9 +37715,10 @@ var require_system_migration2 = __commonJS({
|
|
|
37713
37715
|
});
|
|
37714
37716
|
const { migrationStatus: updatedStatus, dirty } = await migration.run();
|
|
37715
37717
|
if (dirty) {
|
|
37716
|
-
await systemMigrationStatusDataProvider.write(new system_migration_status_1.SystemMigrationStatus(
|
|
37718
|
+
await systemMigrationStatusDataProvider.write(new system_migration_status_1.SystemMigrationStatus({
|
|
37719
|
+
...updatedStatus,
|
|
37717
37720
|
migrationLogs: updatedStatus.migrationLogs.slice(-200)
|
|
37718
|
-
}))
|
|
37721
|
+
}));
|
|
37719
37722
|
}
|
|
37720
37723
|
} catch (e) {
|
|
37721
37724
|
logger.warn(i18n_1.text("error.systemMigrationFailed"));
|
|
@@ -37772,11 +37775,11 @@ var require_backend_system3 = __commonJS({
|
|
|
37772
37775
|
return this.write(updatedEntity);
|
|
37773
37776
|
}
|
|
37774
37777
|
mergeProperties(update, existingSystem) {
|
|
37775
|
-
const patch =
|
|
37778
|
+
const patch = { ...update };
|
|
37776
37779
|
delete patch.url;
|
|
37777
37780
|
delete patch.client;
|
|
37778
|
-
const updatedEntity =
|
|
37779
|
-
return new backend_system_2.BackendSystem(
|
|
37781
|
+
const updatedEntity = { ...existingSystem, ...patch };
|
|
37782
|
+
return new backend_system_2.BackendSystem({ ...updatedEntity });
|
|
37780
37783
|
}
|
|
37781
37784
|
async readOrThrow(key) {
|
|
37782
37785
|
const existingSystem = await this.read(key);
|
|
@@ -37921,6 +37924,11 @@ var require_config = __commonJS({
|
|
|
37921
37924
|
return (_b = destinationAttribs && ((_a2 = destinationAttribs["WebIDEAdditionalData"]) == null ? void 0 : _a2.includes(exports2.DestinationAttributeProperty.FULL_URL))) != null ? _b : false;
|
|
37922
37925
|
}
|
|
37923
37926
|
exports2.hasFullUrlDestAttribute = hasFullUrlDestAttribute;
|
|
37927
|
+
function hasHTML5DynamicDestinationAttrib(destinationAttribs) {
|
|
37928
|
+
var _a2;
|
|
37929
|
+
return (_a2 = destinationAttribs && destinationAttribs["HTML5.DynamicDestination"] === "true") != null ? _a2 : false;
|
|
37930
|
+
}
|
|
37931
|
+
exports2.hasHTML5DynamicDestinationAttrib = hasHTML5DynamicDestinationAttrib;
|
|
37924
37932
|
}
|
|
37925
37933
|
});
|
|
37926
37934
|
|
|
@@ -38036,34 +38044,53 @@ var require_open = __commonJS({
|
|
|
38036
38044
|
var isWsl = require_is_wsl();
|
|
38037
38045
|
var isDocker = require_is_docker();
|
|
38038
38046
|
var pAccess = promisify(fs2.access);
|
|
38039
|
-
var
|
|
38047
|
+
var pReadFile = promisify(fs2.readFile);
|
|
38040
38048
|
var localXdgOpenPath = path.join(__dirname, "xdg-open");
|
|
38041
|
-
var
|
|
38042
|
-
const
|
|
38043
|
-
|
|
38044
|
-
|
|
38049
|
+
var getWslDrivesMountPoint = (() => {
|
|
38050
|
+
const defaultMountPoint = "/mnt/";
|
|
38051
|
+
let mountPoint;
|
|
38052
|
+
return async function() {
|
|
38053
|
+
if (mountPoint) {
|
|
38054
|
+
return mountPoint;
|
|
38055
|
+
}
|
|
38056
|
+
const configFilePath = "/etc/wsl.conf";
|
|
38057
|
+
let isConfigFileExists = false;
|
|
38058
|
+
try {
|
|
38059
|
+
await pAccess(configFilePath, fs2.constants.F_OK);
|
|
38060
|
+
isConfigFileExists = true;
|
|
38061
|
+
} catch (_45) {
|
|
38062
|
+
}
|
|
38063
|
+
if (!isConfigFileExists) {
|
|
38064
|
+
return defaultMountPoint;
|
|
38065
|
+
}
|
|
38066
|
+
const configContent = await pReadFile(configFilePath, { encoding: "utf8" });
|
|
38067
|
+
const configMountPoint = /root\s*=\s*(.*)/g.exec(configContent);
|
|
38068
|
+
if (!configMountPoint) {
|
|
38069
|
+
return defaultMountPoint;
|
|
38070
|
+
}
|
|
38071
|
+
mountPoint = configMountPoint[1].trim();
|
|
38072
|
+
mountPoint = mountPoint.endsWith("/") ? mountPoint : mountPoint + "/";
|
|
38073
|
+
return mountPoint;
|
|
38074
|
+
};
|
|
38075
|
+
})();
|
|
38045
38076
|
module2.exports = async (target, options2) => {
|
|
38046
38077
|
if (typeof target !== "string") {
|
|
38047
38078
|
throw new TypeError("Expected a `target`");
|
|
38048
38079
|
}
|
|
38049
|
-
options2 =
|
|
38080
|
+
options2 = {
|
|
38050
38081
|
wait: false,
|
|
38051
38082
|
background: false,
|
|
38052
|
-
|
|
38053
|
-
|
|
38083
|
+
allowNonzeroExitCode: false,
|
|
38084
|
+
...options2
|
|
38085
|
+
};
|
|
38054
38086
|
let command;
|
|
38087
|
+
let { app } = options2;
|
|
38055
38088
|
let appArguments = [];
|
|
38056
38089
|
const cliArguments = [];
|
|
38057
38090
|
const childProcessOptions = {};
|
|
38058
|
-
if (Array.isArray(
|
|
38059
|
-
appArguments =
|
|
38060
|
-
|
|
38061
|
-
}
|
|
38062
|
-
if (options2.url) {
|
|
38063
|
-
target = encodeURI(target);
|
|
38064
|
-
if (isWsl) {
|
|
38065
|
-
target = target.replace(/&/g, "^&");
|
|
38066
|
-
}
|
|
38091
|
+
if (Array.isArray(app)) {
|
|
38092
|
+
appArguments = app.slice(1);
|
|
38093
|
+
app = app[0];
|
|
38067
38094
|
}
|
|
38068
38095
|
if (process.platform === "darwin") {
|
|
38069
38096
|
command = "open";
|
|
@@ -38073,35 +38100,34 @@ var require_open = __commonJS({
|
|
|
38073
38100
|
if (options2.background) {
|
|
38074
38101
|
cliArguments.push("--background");
|
|
38075
38102
|
}
|
|
38076
|
-
if (
|
|
38077
|
-
cliArguments.push("-a",
|
|
38103
|
+
if (app) {
|
|
38104
|
+
cliArguments.push("-a", app);
|
|
38078
38105
|
}
|
|
38079
38106
|
} else if (process.platform === "win32" || isWsl && !isDocker()) {
|
|
38080
|
-
|
|
38081
|
-
|
|
38107
|
+
const mountPoint = await getWslDrivesMountPoint();
|
|
38108
|
+
command = isWsl ? `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe` : `${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`;
|
|
38109
|
+
cliArguments.push("-NoProfile", "-NonInteractive", "\u2013ExecutionPolicy", "Bypass", "-EncodedCommand");
|
|
38082
38110
|
if (!isWsl) {
|
|
38083
|
-
target = `"${target}"`;
|
|
38084
38111
|
childProcessOptions.windowsVerbatimArguments = true;
|
|
38085
|
-
if (options2.app) {
|
|
38086
|
-
options2.app = `"${options2.app}"`;
|
|
38087
|
-
}
|
|
38088
38112
|
}
|
|
38113
|
+
const encodedArguments = ["Start"];
|
|
38089
38114
|
if (options2.wait) {
|
|
38090
|
-
|
|
38115
|
+
encodedArguments.push("-Wait");
|
|
38091
38116
|
}
|
|
38092
|
-
if (
|
|
38093
|
-
|
|
38094
|
-
|
|
38095
|
-
|
|
38096
|
-
}
|
|
38097
|
-
cliArguments.push(options2.app);
|
|
38117
|
+
if (app) {
|
|
38118
|
+
encodedArguments.push(`"\`"${app}\`""`, "-ArgumentList");
|
|
38119
|
+
appArguments.unshift(target);
|
|
38120
|
+
} else {
|
|
38121
|
+
encodedArguments.push(`"${target}"`);
|
|
38098
38122
|
}
|
|
38099
38123
|
if (appArguments.length > 0) {
|
|
38100
|
-
|
|
38124
|
+
appArguments = appArguments.map((arg) => `"\`"${arg}\`""`);
|
|
38125
|
+
encodedArguments.push(appArguments.join(","));
|
|
38101
38126
|
}
|
|
38127
|
+
target = Buffer.from(encodedArguments.join(" "), "utf16le").toString("base64");
|
|
38102
38128
|
} else {
|
|
38103
|
-
if (
|
|
38104
|
-
command =
|
|
38129
|
+
if (app) {
|
|
38130
|
+
command = app;
|
|
38105
38131
|
} else {
|
|
38106
38132
|
const isBundled = !__dirname || __dirname === "/";
|
|
38107
38133
|
let exeLocalXdgOpen = false;
|
|
@@ -38130,7 +38156,7 @@ var require_open = __commonJS({
|
|
|
38130
38156
|
return new Promise((resolve, reject) => {
|
|
38131
38157
|
subprocess.once("error", reject);
|
|
38132
38158
|
subprocess.once("close", (exitCode) => {
|
|
38133
|
-
if (exitCode > 0) {
|
|
38159
|
+
if (options2.allowNonzeroExitCode && exitCode > 0) {
|
|
38134
38160
|
reject(new Error(`Exited with code ${exitCode}`));
|
|
38135
38161
|
return;
|
|
38136
38162
|
}
|
|
@@ -46944,9 +46970,10 @@ var require_parse3 = __commonJS({
|
|
|
46944
46970
|
var parse_comments = (prefix) => {
|
|
46945
46971
|
const comments = [];
|
|
46946
46972
|
while (current && (is("LineComment") || is("BlockComment"))) {
|
|
46947
|
-
const comment =
|
|
46973
|
+
const comment = {
|
|
46974
|
+
...current,
|
|
46948
46975
|
inline
|
|
46949
|
-
}
|
|
46976
|
+
};
|
|
46950
46977
|
comments.push(comment);
|
|
46951
46978
|
next();
|
|
46952
46979
|
}
|
|
@@ -55413,7 +55440,8 @@ var require_source = __commonJS({
|
|
|
55413
55440
|
};
|
|
55414
55441
|
}
|
|
55415
55442
|
var proto = Object.defineProperties(() => {
|
|
55416
|
-
},
|
|
55443
|
+
}, {
|
|
55444
|
+
...styles,
|
|
55417
55445
|
level: {
|
|
55418
55446
|
enumerable: true,
|
|
55419
55447
|
get() {
|
|
@@ -55423,7 +55451,7 @@ var require_source = __commonJS({
|
|
|
55423
55451
|
this._generator.level = level;
|
|
55424
55452
|
}
|
|
55425
55453
|
}
|
|
55426
|
-
})
|
|
55454
|
+
});
|
|
55427
55455
|
var createStyler = (open, close, parent) => {
|
|
55428
55456
|
let openAll;
|
|
55429
55457
|
let closeAll;
|
|
@@ -55700,27 +55728,27 @@ var require_utils7 = __commonJS({
|
|
|
55700
55728
|
return isValid;
|
|
55701
55729
|
}
|
|
55702
55730
|
exports2.isSystemNameValid = isSystemNameValid;
|
|
55703
|
-
async function
|
|
55731
|
+
async function hasServices(sapSystem) {
|
|
55704
55732
|
const versions = [__1.ODataVersion.v2, __1.ODataVersion.v4];
|
|
55705
55733
|
const result2 = {};
|
|
55706
55734
|
let error3;
|
|
55707
55735
|
for (const version of versions) {
|
|
55708
55736
|
try {
|
|
55709
55737
|
const catalog = await sapSystem.getCatalog(version);
|
|
55710
|
-
const services = await catalog.listServices(
|
|
55711
|
-
result2[version] = services.length
|
|
55738
|
+
const services = await catalog.listServices();
|
|
55739
|
+
result2[version] = services.length;
|
|
55712
55740
|
} catch (e) {
|
|
55713
|
-
result2[version] =
|
|
55741
|
+
result2[version] = 0;
|
|
55714
55742
|
error3 = e.message;
|
|
55715
55743
|
}
|
|
55716
55744
|
}
|
|
55717
55745
|
return {
|
|
55718
|
-
|
|
55719
|
-
|
|
55746
|
+
v2Count: result2[__1.ODataVersion.v2],
|
|
55747
|
+
v4Count: result2[__1.ODataVersion.v4],
|
|
55720
55748
|
error: error3
|
|
55721
55749
|
};
|
|
55722
55750
|
}
|
|
55723
|
-
exports2.
|
|
55751
|
+
exports2.hasServices = hasServices;
|
|
55724
55752
|
}
|
|
55725
55753
|
});
|
|
55726
55754
|
|
|
@@ -56029,7 +56057,7 @@ var require_atoCatalog = __commonJS({
|
|
|
56029
56057
|
let systemConfig;
|
|
56030
56058
|
let creds;
|
|
56031
56059
|
if (systemInstance) {
|
|
56032
|
-
systemConfig =
|
|
56060
|
+
systemConfig = { ...systemInstance.config, service: common_1.ATO_CATALOG_URL_PATH };
|
|
56033
56061
|
const sys = systemInstance.serialize();
|
|
56034
56062
|
creds = {
|
|
56035
56063
|
username: sys.username,
|
|
@@ -56037,7 +56065,7 @@ var require_atoCatalog = __commonJS({
|
|
|
56037
56065
|
serviceKeysContents: sys.serviceKeys
|
|
56038
56066
|
};
|
|
56039
56067
|
} else {
|
|
56040
|
-
systemConfig =
|
|
56068
|
+
systemConfig = { ...system, service: common_1.ATO_CATALOG_URL_PATH };
|
|
56041
56069
|
if (credentials) {
|
|
56042
56070
|
creds = credentials;
|
|
56043
56071
|
}
|
|
@@ -56466,6 +56494,9 @@ var require_sapSystem = __commonJS({
|
|
|
56466
56494
|
isAbapCatalogDest() {
|
|
56467
56495
|
return this.config.destination ? config_1.hasDestinationAttrib("WebIDEUsage", config_1.DestinationAttributeProperty.ODATA_ABAP, this.config.destinationAttributes) && !this.isFullUrlDest() : false;
|
|
56468
56496
|
}
|
|
56497
|
+
isHTML5DynamicDestination() {
|
|
56498
|
+
return this.config.destination ? config_1.hasHTML5DynamicDestinationAttrib(this.config.destinationAttributes) : false;
|
|
56499
|
+
}
|
|
56469
56500
|
toString() {
|
|
56470
56501
|
var _a2;
|
|
56471
56502
|
const urlString = () => {
|
|
@@ -56826,136 +56857,6 @@ var require_dist5 = __commonJS({
|
|
|
56826
56857
|
}
|
|
56827
56858
|
});
|
|
56828
56859
|
|
|
56829
|
-
// ../lib/feature-toggle/dist/featureToggle.js
|
|
56830
|
-
var require_featureToggle = __commonJS({
|
|
56831
|
-
"../lib/feature-toggle/dist/featureToggle.js"(exports2) {
|
|
56832
|
-
"use strict";
|
|
56833
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
56834
|
-
var vscode = void 0;
|
|
56835
|
-
try {
|
|
56836
|
-
vscode = require("vscode");
|
|
56837
|
-
} catch (e) {
|
|
56838
|
-
}
|
|
56839
|
-
var extensionConfigKeys = {
|
|
56840
|
-
AnnotationModeler: "sap.ux.annotationModeler",
|
|
56841
|
-
AppGenerator: "sap.ux.appGenerator",
|
|
56842
|
-
ApplicationModeler: "sap.ux.applicationModeler",
|
|
56843
|
-
Help: "sap.ux.help",
|
|
56844
|
-
RequirementsGathering: "sap.ux.requirementsGathering",
|
|
56845
|
-
ServiceModeler: "sap.ux.serviceModeler",
|
|
56846
|
-
Internal: "sap.ux.internal"
|
|
56847
|
-
};
|
|
56848
|
-
var tokenToggleGuid = {
|
|
56849
|
-
"dummy.test.testBetaFeatures.someTokenFeature": "77e0469d-1448-42bf-8d47-0944896dd9ed",
|
|
56850
|
-
"sap.ux.applicationModeler.testBetaFeatures.enableFPMFeatures": "438b6071-479e-49b4-81bf-c8a016b71c75",
|
|
56851
|
-
"sap.ux.help.testBetaFeatures.enableAppStudioGDContribution": "c8c52f0b-0d7d-4697-997a-d6f29814f42e",
|
|
56852
|
-
"sap.ux.help.testBetaFeatures.enableAbapCdsSupport": "794cae98-3456-491a-ae20-3215a98b56df",
|
|
56853
|
-
"sap.ux.help.testBetaFeatures.showTestGuides": "fbb03f42-0a86-4fd5-9fc4-8c9b38a4d1a3"
|
|
56854
|
-
};
|
|
56855
|
-
exports2.FeatureToggleKey = "testBetaFeatures";
|
|
56856
|
-
exports2.ExperimentalFeatures = "sap.ux.applicationModeler.enableExperimentalFeatures";
|
|
56857
|
-
var FeatureToggleAccess = class {
|
|
56858
|
-
static getFeatureToggle(feature) {
|
|
56859
|
-
var _a2;
|
|
56860
|
-
let toggleConfigValue;
|
|
56861
|
-
if ((feature.includes(exports2.FeatureToggleKey) || feature === exports2.ExperimentalFeatures) && FeatureToggleAccess.vscode) {
|
|
56862
|
-
const toggleKey = feature.slice(0, feature.lastIndexOf("."));
|
|
56863
|
-
const toggleId = feature.slice(feature.lastIndexOf(".") + 1, feature.length);
|
|
56864
|
-
toggleConfigValue = (_a2 = FeatureToggleAccess.vscode.workspace.getConfiguration(toggleKey)) == null ? void 0 : _a2.get(toggleId);
|
|
56865
|
-
} else {
|
|
56866
|
-
toggleConfigValue = false;
|
|
56867
|
-
}
|
|
56868
|
-
if (process.env.TOOLSUITE_FEATURES) {
|
|
56869
|
-
const envFeatures = process.env.TOOLSUITE_FEATURES.split(",");
|
|
56870
|
-
toggleConfigValue = envFeatures.includes(feature) ? true : toggleConfigValue;
|
|
56871
|
-
}
|
|
56872
|
-
if (tokenToggleGuid[feature]) {
|
|
56873
|
-
if (tokenToggleGuid[feature] === toggleConfigValue) {
|
|
56874
|
-
toggleConfigValue = true;
|
|
56875
|
-
} else {
|
|
56876
|
-
toggleConfigValue = false;
|
|
56877
|
-
}
|
|
56878
|
-
}
|
|
56879
|
-
const featureToggle = {
|
|
56880
|
-
feature,
|
|
56881
|
-
isEnabled: toggleConfigValue === true ? toggleConfigValue : false
|
|
56882
|
-
};
|
|
56883
|
-
return featureToggle;
|
|
56884
|
-
}
|
|
56885
|
-
static getAllFeatureToggles() {
|
|
56886
|
-
const definedToggles = [];
|
|
56887
|
-
if (FeatureToggleAccess.vscode) {
|
|
56888
|
-
Object.keys(extensionConfigKeys).forEach((toggleConfigKey) => {
|
|
56889
|
-
const toggleKey = `${extensionConfigKeys[toggleConfigKey]}.${exports2.FeatureToggleKey}`;
|
|
56890
|
-
let toggles = {};
|
|
56891
|
-
try {
|
|
56892
|
-
toggles = JSON.parse(JSON.stringify(FeatureToggleAccess.vscode.workspace.getConfiguration(toggleKey)));
|
|
56893
|
-
} catch (e) {
|
|
56894
|
-
}
|
|
56895
|
-
Object.keys(toggles).forEach((toggleId) => {
|
|
56896
|
-
const toggleConfigValue = FeatureToggleAccess.vscode.workspace.getConfiguration(`${toggleKey}`).get(`${toggleId}`);
|
|
56897
|
-
const toggle = {
|
|
56898
|
-
feature: `${toggleKey}.${toggleId}`,
|
|
56899
|
-
isEnabled: toggleConfigValue ? toggleConfigValue : false
|
|
56900
|
-
};
|
|
56901
|
-
definedToggles.push(toggle);
|
|
56902
|
-
});
|
|
56903
|
-
});
|
|
56904
|
-
}
|
|
56905
|
-
return definedToggles;
|
|
56906
|
-
}
|
|
56907
|
-
};
|
|
56908
|
-
exports2.FeatureToggleAccess = FeatureToggleAccess;
|
|
56909
|
-
FeatureToggleAccess.vscode = vscode;
|
|
56910
|
-
function enableFeature(feature) {
|
|
56911
|
-
let envFeatures = [];
|
|
56912
|
-
if (process.env.TOOLSUITE_FEATURES) {
|
|
56913
|
-
envFeatures = process.env.TOOLSUITE_FEATURES.split(",");
|
|
56914
|
-
if (!envFeatures.includes(feature)) {
|
|
56915
|
-
envFeatures.push(feature);
|
|
56916
|
-
}
|
|
56917
|
-
} else {
|
|
56918
|
-
envFeatures.push(feature);
|
|
56919
|
-
}
|
|
56920
|
-
process.env.TOOLSUITE_FEATURES = envFeatures.join();
|
|
56921
|
-
}
|
|
56922
|
-
exports2.enableFeature = enableFeature;
|
|
56923
|
-
function isFeatureEnabled(feature) {
|
|
56924
|
-
return FeatureToggleAccess.getFeatureToggle(feature).isEnabled;
|
|
56925
|
-
}
|
|
56926
|
-
exports2.isFeatureEnabled = isFeatureEnabled;
|
|
56927
|
-
function isInternalFeaturesSettingEnabled() {
|
|
56928
|
-
var _a2;
|
|
56929
|
-
const enableInternalFeaturesSetting = "sap.ux.internal.enableInternalFeatures";
|
|
56930
|
-
let internalEnabled = false;
|
|
56931
|
-
if (FeatureToggleAccess.vscode) {
|
|
56932
|
-
const internalSetting = FeatureToggleAccess.vscode.workspace ? (_a2 = FeatureToggleAccess.vscode.workspace.getConfiguration()) == null ? void 0 : _a2.get(enableInternalFeaturesSetting) : false;
|
|
56933
|
-
internalEnabled = internalSetting === true ? true : false;
|
|
56934
|
-
}
|
|
56935
|
-
if (process.env.TOOLSUITE_INTERNAL && process.env.TOOLSUITE_INTERNAL === "true") {
|
|
56936
|
-
internalEnabled = true;
|
|
56937
|
-
}
|
|
56938
|
-
return internalEnabled;
|
|
56939
|
-
}
|
|
56940
|
-
exports2.isInternalFeaturesSettingEnabled = isInternalFeaturesSettingEnabled;
|
|
56941
|
-
}
|
|
56942
|
-
});
|
|
56943
|
-
|
|
56944
|
-
// ../lib/feature-toggle/dist/index.js
|
|
56945
|
-
var require_dist6 = __commonJS({
|
|
56946
|
-
"../lib/feature-toggle/dist/index.js"(exports2) {
|
|
56947
|
-
"use strict";
|
|
56948
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
56949
|
-
var featureToggle_1 = require_featureToggle();
|
|
56950
|
-
exports2.FeatureToggleAccess = featureToggle_1.FeatureToggleAccess;
|
|
56951
|
-
exports2.FeatureToggleKey = featureToggle_1.FeatureToggleKey;
|
|
56952
|
-
exports2.isFeatureEnabled = featureToggle_1.isFeatureEnabled;
|
|
56953
|
-
exports2.isInternalFeaturesSettingEnabled = featureToggle_1.isInternalFeaturesSettingEnabled;
|
|
56954
|
-
exports2.enableFeature = featureToggle_1.enableFeature;
|
|
56955
|
-
exports2.ExperimentalFeatures = featureToggle_1.ExperimentalFeatures;
|
|
56956
|
-
}
|
|
56957
|
-
});
|
|
56958
|
-
|
|
56959
56860
|
// ../lib/ui5-info/core/dist/types.js
|
|
56960
56861
|
var require_types3 = __commonJS({
|
|
56961
56862
|
"../lib/ui5-info/core/dist/types.js"(exports2) {
|
|
@@ -56967,7 +56868,6 @@ var require_types3 = __commonJS({
|
|
|
56967
56868
|
UI5Info2["SnapshotUrl"] = "https://sapui5preview-sapui5.dispatcher.int.sap.eu2.hana.ondemand.com";
|
|
56968
56869
|
UI5Info2["VersionsFile"] = "neo-app.json";
|
|
56969
56870
|
UI5Info2["DefaultVersion"] = "Latest";
|
|
56970
|
-
UI5Info2["DefaultTheme"] = "sap_fiori_3";
|
|
56971
56871
|
UI5Info2["LatestVersionString"] = "Latest";
|
|
56972
56872
|
UI5Info2["VersionsOverview"] = "versionoverview.json";
|
|
56973
56873
|
UI5Info2["VersionExternalFile"] = "version.json";
|
|
@@ -56993,7 +56893,6 @@ var require_ui5_info = __commonJS({
|
|
|
56993
56893
|
var semver_compare_1 = __importDefault(require_semver_compare());
|
|
56994
56894
|
var semver_1 = require_semver5();
|
|
56995
56895
|
var ux_odata_client_1 = require_dist5();
|
|
56996
|
-
var ux_feature_toggle_1 = require_dist6();
|
|
56997
56896
|
var types_1 = require_types3();
|
|
56998
56897
|
var commandRunner_1 = require_commandRunner();
|
|
56999
56898
|
var axios_1 = __importDefault(require_axios2());
|
|
@@ -57006,11 +56905,30 @@ var require_ui5_info = __commonJS({
|
|
|
57006
56905
|
exports2.MIN_UI5_VERSION_OVERVIEW_V4_TEMPLATE = "1.96.8";
|
|
57007
56906
|
var MIN_UI5_VERSION_V2_TEMPLATE = "1.76.0";
|
|
57008
56907
|
var MIN_UI5_DARK_THEME = "1.72.0";
|
|
57009
|
-
var
|
|
57010
|
-
var MIN_UI5_HORIZON_THEME = "1.96.0";
|
|
56908
|
+
var MIN_UI5_VERSION_HORIZON_THEME = "1.102.0";
|
|
57011
56909
|
var MIN_UI5_VERSION_CODE_ASSIST = "1.76.0";
|
|
57012
56910
|
var DEFAULT_UI5_VERSIONS = [
|
|
57013
56911
|
"Latest",
|
|
56912
|
+
"1.104.0",
|
|
56913
|
+
"1.103.0",
|
|
56914
|
+
"1.102.0",
|
|
56915
|
+
"1.101.0",
|
|
56916
|
+
"1.100.0",
|
|
56917
|
+
"1.99.0",
|
|
56918
|
+
"1.98.0",
|
|
56919
|
+
"1.97.0",
|
|
56920
|
+
"1.96.0",
|
|
56921
|
+
"1.95.0",
|
|
56922
|
+
"1.94.0",
|
|
56923
|
+
"1.93.0",
|
|
56924
|
+
"1.92.0",
|
|
56925
|
+
"1.91.0",
|
|
56926
|
+
"1.90.0",
|
|
56927
|
+
"1.89.0",
|
|
56928
|
+
"1.88.0",
|
|
56929
|
+
"1.87.0",
|
|
56930
|
+
"1.86.0",
|
|
56931
|
+
"1.85.0",
|
|
57014
56932
|
"1.84.0",
|
|
57015
56933
|
"1.82.0",
|
|
57016
56934
|
"1.81.0",
|
|
@@ -57031,22 +56949,103 @@ var require_ui5_info = __commonJS({
|
|
|
57031
56949
|
"1.66.0",
|
|
57032
56950
|
exports2.MIN_UI5_VERSION
|
|
57033
56951
|
];
|
|
56952
|
+
var VERSION_OVERVIEW_FALLBACK = [
|
|
56953
|
+
{ version: "1.104.*", support: "Maintenance" },
|
|
56954
|
+
{ version: "1.103.*", support: "Out of maintenance" },
|
|
56955
|
+
{ version: "1.102.*", support: "Maintenance" },
|
|
56956
|
+
{ version: "1.101.*", support: "Out of maintenance" },
|
|
56957
|
+
{ version: "1.100.*", support: "Out of maintenance" },
|
|
56958
|
+
{ version: "1.99.*", support: "Out of maintenance" },
|
|
56959
|
+
{ version: "1.98.*", support: "Out of maintenance" },
|
|
56960
|
+
{ version: "1.97.*", support: "Out of maintenance" },
|
|
56961
|
+
{ version: "1.96.*", support: "Maintenance" },
|
|
56962
|
+
{ version: "1.95.*", support: "Out of maintenance" },
|
|
56963
|
+
{ version: "1.94.*", support: "Out of maintenance" },
|
|
56964
|
+
{ version: "1.93.*", support: "Out of maintenance" },
|
|
56965
|
+
{ version: "1.92.*", support: "Out of maintenance" },
|
|
56966
|
+
{ version: "1.91.*", support: "Out of maintenance" },
|
|
56967
|
+
{ version: "1.90.*", support: "Out of maintenance" },
|
|
56968
|
+
{ version: "1.89.*", support: "Out of maintenance" },
|
|
56969
|
+
{ version: "1.88.*", support: "Out of maintenance" },
|
|
56970
|
+
{ version: "1.87.*", support: "Out of maintenance" },
|
|
56971
|
+
{ version: "1.86.*", support: "Out of maintenance" },
|
|
56972
|
+
{ version: "1.85.*", support: "Out of maintenance" },
|
|
56973
|
+
{ version: "1.84.*", support: "Maintenance" },
|
|
56974
|
+
{ version: "1.83.*", support: "Skipped" },
|
|
56975
|
+
{ version: "1.82.*", support: "Out of maintenance" },
|
|
56976
|
+
{ version: "1.81.*", support: "Out of maintenance" },
|
|
56977
|
+
{ version: "1.80.*", support: "Out of maintenance" },
|
|
56978
|
+
{ version: "1.79.*", support: "Out of maintenance" },
|
|
56979
|
+
{ version: "1.78.*", support: "Out of maintenance" },
|
|
56980
|
+
{ version: "1.77.*", support: "Out of maintenance" },
|
|
56981
|
+
{ version: "1.76.*", support: "Out of maintenance" },
|
|
56982
|
+
{ version: "1.75.*", support: "Out of maintenance" },
|
|
56983
|
+
{ version: "1.74.*", support: "Out of maintenance" },
|
|
56984
|
+
{ version: "1.73.*", support: "Out of maintenance" },
|
|
56985
|
+
{ version: "1.72.*", support: "Out of maintenance" },
|
|
56986
|
+
{ version: "1.71.*", support: "Maintenance" },
|
|
56987
|
+
{ version: "1.70.*", support: "Out of maintenance" },
|
|
56988
|
+
{ version: "1.69.*", support: "Out of maintenance" },
|
|
56989
|
+
{ version: "1.68.*", support: "Out of maintenance" },
|
|
56990
|
+
{ version: "1.67.*", support: "Out of maintenance" },
|
|
56991
|
+
{ version: "1.66.*", support: "Out of maintenance" },
|
|
56992
|
+
{ version: "1.65.*", support: "Out of maintenance" },
|
|
56993
|
+
{ version: "1.64.*", support: "Out of maintenance" },
|
|
56994
|
+
{ version: "1.63.*", support: "Out of maintenance" },
|
|
56995
|
+
{ version: "1.62.*", support: "Out of maintenance" },
|
|
56996
|
+
{ version: "1.61.*", support: "Out of maintenance" },
|
|
56997
|
+
{ version: "1.60.*", support: "Out of maintenance" },
|
|
56998
|
+
{ version: "1.58.*", support: "Out of maintenance" },
|
|
56999
|
+
{ version: "1.56.*", support: "Out of maintenance" },
|
|
57000
|
+
{ version: "1.54.*", support: "Out of maintenance" },
|
|
57001
|
+
{ version: "1.52.*", support: "Out of maintenance" },
|
|
57002
|
+
{ version: "1.50.*", support: "Out of maintenance" },
|
|
57003
|
+
{ version: "1.48.*", support: "Out of maintenance" },
|
|
57004
|
+
{ version: "1.46.*", support: "Out of maintenance" },
|
|
57005
|
+
{ version: "1.44.*", support: "Out of maintenance" },
|
|
57006
|
+
{ version: "1.42.*", support: "Out of maintenance" },
|
|
57007
|
+
{ version: "1.40.*", support: "Out of maintenance" },
|
|
57008
|
+
{ version: "1.38.*", support: "Maintenance" },
|
|
57009
|
+
{ version: "1.36.*", support: "Out of maintenance" },
|
|
57010
|
+
{ version: "1.34.*", support: "Out of maintenance" },
|
|
57011
|
+
{ version: "1.32.*", support: "Out of maintenance" },
|
|
57012
|
+
{ version: "1.30.*", support: "Out of maintenance" },
|
|
57013
|
+
{ version: "1.28.*", support: "Out of maintenance" },
|
|
57014
|
+
{ version: "1.26.*", support: "Out of maintenance" },
|
|
57015
|
+
{ version: "1.24.*", support: "Out of maintenance" },
|
|
57016
|
+
{ version: "1.22.*", support: "Out of maintenance" },
|
|
57017
|
+
{ version: "*", support: "Out of maintenance" }
|
|
57018
|
+
];
|
|
57019
|
+
var ThemeIds;
|
|
57020
|
+
(function(ThemeIds2) {
|
|
57021
|
+
ThemeIds2["SAP_BELIZE"] = "sap_belize";
|
|
57022
|
+
ThemeIds2["SAP_FIORI_3"] = "sap_fiori_3";
|
|
57023
|
+
ThemeIds2["SAP_FIORI_3_DARK"] = "sap_fiori_3_dark";
|
|
57024
|
+
ThemeIds2["SAP_HORIZON"] = "sap_horizon";
|
|
57025
|
+
ThemeIds2["SAP_HORIZON_DARK"] = "sap_horizon_dark";
|
|
57026
|
+
ThemeIds2["SAP_HORIZON_CONTRAST"] = "sap_horizon_hcw";
|
|
57027
|
+
ThemeIds2["SAP_HORIZON_CONTRAST_DARK"] = "sap_horizon_hcb";
|
|
57028
|
+
})(ThemeIds = exports2.ThemeIds || (exports2.ThemeIds = {}));
|
|
57034
57029
|
var THEMES = [
|
|
57035
57030
|
{
|
|
57036
57031
|
themeid: "sap_belize",
|
|
57037
|
-
label: "
|
|
57032
|
+
label: "Belize"
|
|
57038
57033
|
},
|
|
57039
57034
|
{
|
|
57040
57035
|
themeid: "sap_fiori_3",
|
|
57041
|
-
label: "
|
|
57036
|
+
label: "Quartz Light"
|
|
57042
57037
|
},
|
|
57043
57038
|
{
|
|
57044
57039
|
themeid: "sap_fiori_3_dark",
|
|
57045
|
-
label: "
|
|
57040
|
+
label: "Quartz Dark"
|
|
57046
57041
|
},
|
|
57047
57042
|
{
|
|
57048
57043
|
themeid: "sap_horizon",
|
|
57049
|
-
label: "
|
|
57044
|
+
label: "Morning Horizon"
|
|
57045
|
+
},
|
|
57046
|
+
{
|
|
57047
|
+
themeid: "sap_horizon_dark",
|
|
57048
|
+
label: "Evening Horizon"
|
|
57050
57049
|
}
|
|
57051
57050
|
];
|
|
57052
57051
|
var LATEST_MANIFEST_VERSION = "1.32.0";
|
|
@@ -57173,8 +57172,16 @@ var require_ui5_info = __commonJS({
|
|
|
57173
57172
|
}
|
|
57174
57173
|
exports2.parseUI5Versions = parseUI5Versions;
|
|
57175
57174
|
async function parseUI5VersionsOverview() {
|
|
57176
|
-
|
|
57177
|
-
|
|
57175
|
+
let result2 = [];
|
|
57176
|
+
let versions = [];
|
|
57177
|
+
try {
|
|
57178
|
+
const response = await requestUI5Versions("https://ui5.sap.com", `/${"versionoverview.json"}`);
|
|
57179
|
+
versions = JSON.parse(JSON.stringify(response)).versions;
|
|
57180
|
+
} catch (error3) {
|
|
57181
|
+
console.warn(`Request to '${"https://ui5.sap.com"}' failed. Error was: '${error3.message}'. Fallback to default UI5 versions`);
|
|
57182
|
+
versions = VERSION_OVERVIEW_FALLBACK;
|
|
57183
|
+
}
|
|
57184
|
+
result2 = versions.map((ver) => {
|
|
57178
57185
|
var _a2;
|
|
57179
57186
|
const parsedVersion = (_a2 = semver_1.coerce(ver.version)) == null ? void 0 : _a2.version;
|
|
57180
57187
|
if (parsedVersion !== void 0) {
|
|
@@ -57247,7 +57254,13 @@ var require_ui5_info = __commonJS({
|
|
|
57247
57254
|
}
|
|
57248
57255
|
exports2.retrieveUI5Versions = retrieveUI5Versions;
|
|
57249
57256
|
async function getUI5VersionsEnhanced(filterOptions) {
|
|
57250
|
-
let filteredUI5Versions
|
|
57257
|
+
let filteredUI5Versions;
|
|
57258
|
+
try {
|
|
57259
|
+
filteredUI5Versions = await retrieveUI5Versions(filterOptions, void 0, true);
|
|
57260
|
+
} catch (error3) {
|
|
57261
|
+
console.warn(`Request to '${"https://ui5.sap.com"}' failed. Error was: '${error3.message}'. Fallback to default UI5 versions`);
|
|
57262
|
+
filteredUI5Versions = DEFAULT_UI5_VERSIONS.slice();
|
|
57263
|
+
}
|
|
57251
57264
|
const defaultUI5Version = filteredUI5Versions[0];
|
|
57252
57265
|
if (!(filterOptions == null ? void 0 : filterOptions.includeSnapshots)) {
|
|
57253
57266
|
filteredUI5Versions = sortUI5Versions(filteredUI5Versions);
|
|
@@ -57290,13 +57303,25 @@ var require_ui5_info = __commonJS({
|
|
|
57290
57303
|
(ui5VersionCheck(filteredUi5Version) || semver_compare_1.default(filteredUi5Version, MIN_UI5_DARK_THEME) >= 0) && filteredThemes.push(theme);
|
|
57291
57304
|
break;
|
|
57292
57305
|
case "sap_horizon":
|
|
57293
|
-
|
|
57306
|
+
case "sap_horizon_dark":
|
|
57307
|
+
case "sap_horizon_hcw":
|
|
57308
|
+
case "sap_horizon_hcb":
|
|
57309
|
+
(ui5VersionCheck(filteredUi5Version) || semver_compare_1.default(filteredUi5Version, MIN_UI5_VERSION_HORIZON_THEME) >= 0) && filteredThemes.push(theme);
|
|
57294
57310
|
break;
|
|
57295
57311
|
}
|
|
57296
57312
|
}
|
|
57297
57313
|
return filteredThemes;
|
|
57298
57314
|
}
|
|
57299
57315
|
exports2.getUi5Themes = getUi5Themes;
|
|
57316
|
+
function getDefaultTheme(ui5Version) {
|
|
57317
|
+
if (ui5Version) {
|
|
57318
|
+
if (semver_1.coerce(ui5Version) && semver_1.lt(ui5Version, MIN_UI5_VERSION_HORIZON_THEME)) {
|
|
57319
|
+
return "sap_fiori_3";
|
|
57320
|
+
}
|
|
57321
|
+
}
|
|
57322
|
+
return "sap_horizon";
|
|
57323
|
+
}
|
|
57324
|
+
exports2.getDefaultTheme = getDefaultTheme;
|
|
57300
57325
|
function zeroExtendUI5Version(ui5Version) {
|
|
57301
57326
|
const versionParts = ui5Version.split(".");
|
|
57302
57327
|
if (versionParts.length < 3 && !ui5VersionCheck(ui5Version)) {
|
|
@@ -57395,7 +57420,7 @@ var require_ui5_info = __commonJS({
|
|
|
57395
57420
|
});
|
|
57396
57421
|
|
|
57397
57422
|
// ../lib/ui5-info/core/dist/index.js
|
|
57398
|
-
var
|
|
57423
|
+
var require_dist6 = __commonJS({
|
|
57399
57424
|
"../lib/ui5-info/core/dist/index.js"(exports2) {
|
|
57400
57425
|
"use strict";
|
|
57401
57426
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -57410,6 +57435,7 @@ var require_dist7 = __commonJS({
|
|
|
57410
57435
|
exports2.MIN_UI5_VERSION_OVERVIEW_V4_TEMPLATE = ui5_info_1.MIN_UI5_VERSION_OVERVIEW_V4_TEMPLATE;
|
|
57411
57436
|
exports2.retrieveUI5Versions = ui5_info_1.retrieveUI5Versions;
|
|
57412
57437
|
exports2.getUi5Themes = ui5_info_1.getUi5Themes;
|
|
57438
|
+
exports2.getDefaultTheme = ui5_info_1.getDefaultTheme;
|
|
57413
57439
|
exports2.getManifestVersion = ui5_info_1.getManifestVersion;
|
|
57414
57440
|
exports2.uI5VersionsWithCodeAssist = ui5_info_1.uI5VersionsWithCodeAssist;
|
|
57415
57441
|
exports2.parseUI5Versions = ui5_info_1.parseUI5Versions;
|
|
@@ -57616,7 +57642,7 @@ var require_utils9 = __commonJS({
|
|
|
57616
57642
|
var os_1 = __importDefault(require("os"));
|
|
57617
57643
|
var capProject_1 = require_capProject();
|
|
57618
57644
|
var webapp_1 = require_webapp2();
|
|
57619
|
-
var ux_ui5_info_1 =
|
|
57645
|
+
var ux_ui5_info_1 = require_dist6();
|
|
57620
57646
|
var ui5Config_1 = require_ui5Config();
|
|
57621
57647
|
exports2.scriptsRegEx = /fiori run|cds watch|cds run|ui5 serve|mvn spring-boot:run/;
|
|
57622
57648
|
async function findProjectRoot(path, sapuxRequired = true) {
|
|
@@ -58379,6 +58405,136 @@ var require_types4 = __commonJS({
|
|
|
58379
58405
|
}
|
|
58380
58406
|
});
|
|
58381
58407
|
|
|
58408
|
+
// ../lib/feature-toggle/dist/featureToggle.js
|
|
58409
|
+
var require_featureToggle = __commonJS({
|
|
58410
|
+
"../lib/feature-toggle/dist/featureToggle.js"(exports2) {
|
|
58411
|
+
"use strict";
|
|
58412
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
58413
|
+
var vscode = void 0;
|
|
58414
|
+
try {
|
|
58415
|
+
vscode = require("vscode");
|
|
58416
|
+
} catch (e) {
|
|
58417
|
+
}
|
|
58418
|
+
var extensionConfigKeys = {
|
|
58419
|
+
AnnotationModeler: "sap.ux.annotationModeler",
|
|
58420
|
+
AppGenerator: "sap.ux.appGenerator",
|
|
58421
|
+
ApplicationModeler: "sap.ux.applicationModeler",
|
|
58422
|
+
Help: "sap.ux.help",
|
|
58423
|
+
RequirementsGathering: "sap.ux.requirementsGathering",
|
|
58424
|
+
ServiceModeler: "sap.ux.serviceModeler",
|
|
58425
|
+
Internal: "sap.ux.internal"
|
|
58426
|
+
};
|
|
58427
|
+
var tokenToggleGuid = {
|
|
58428
|
+
"dummy.test.testBetaFeatures.someTokenFeature": "77e0469d-1448-42bf-8d47-0944896dd9ed",
|
|
58429
|
+
"sap.ux.applicationModeler.testBetaFeatures.enableFPMFeatures": "438b6071-479e-49b4-81bf-c8a016b71c75",
|
|
58430
|
+
"sap.ux.help.testBetaFeatures.enableAppStudioGDContribution": "c8c52f0b-0d7d-4697-997a-d6f29814f42e",
|
|
58431
|
+
"sap.ux.help.testBetaFeatures.enableAbapCdsSupport": "794cae98-3456-491a-ae20-3215a98b56df",
|
|
58432
|
+
"sap.ux.help.testBetaFeatures.showTestGuides": "fbb03f42-0a86-4fd5-9fc4-8c9b38a4d1a3"
|
|
58433
|
+
};
|
|
58434
|
+
exports2.FeatureToggleKey = "testBetaFeatures";
|
|
58435
|
+
exports2.ExperimentalFeatures = "sap.ux.applicationModeler.enableExperimentalFeatures";
|
|
58436
|
+
var FeatureToggleAccess = class {
|
|
58437
|
+
static getFeatureToggle(feature) {
|
|
58438
|
+
var _a2;
|
|
58439
|
+
let toggleConfigValue;
|
|
58440
|
+
if ((feature.includes(exports2.FeatureToggleKey) || feature === exports2.ExperimentalFeatures) && FeatureToggleAccess.vscode) {
|
|
58441
|
+
const toggleKey = feature.slice(0, feature.lastIndexOf("."));
|
|
58442
|
+
const toggleId = feature.slice(feature.lastIndexOf(".") + 1, feature.length);
|
|
58443
|
+
toggleConfigValue = (_a2 = FeatureToggleAccess.vscode.workspace.getConfiguration(toggleKey)) == null ? void 0 : _a2.get(toggleId);
|
|
58444
|
+
} else {
|
|
58445
|
+
toggleConfigValue = false;
|
|
58446
|
+
}
|
|
58447
|
+
if (process.env.TOOLSUITE_FEATURES) {
|
|
58448
|
+
const envFeatures = process.env.TOOLSUITE_FEATURES.split(",");
|
|
58449
|
+
toggleConfigValue = envFeatures.includes(feature) ? true : toggleConfigValue;
|
|
58450
|
+
}
|
|
58451
|
+
if (tokenToggleGuid[feature]) {
|
|
58452
|
+
if (tokenToggleGuid[feature] === toggleConfigValue) {
|
|
58453
|
+
toggleConfigValue = true;
|
|
58454
|
+
} else {
|
|
58455
|
+
toggleConfigValue = false;
|
|
58456
|
+
}
|
|
58457
|
+
}
|
|
58458
|
+
const featureToggle = {
|
|
58459
|
+
feature,
|
|
58460
|
+
isEnabled: toggleConfigValue === true ? toggleConfigValue : false
|
|
58461
|
+
};
|
|
58462
|
+
return featureToggle;
|
|
58463
|
+
}
|
|
58464
|
+
static getAllFeatureToggles() {
|
|
58465
|
+
const definedToggles = [];
|
|
58466
|
+
if (FeatureToggleAccess.vscode) {
|
|
58467
|
+
Object.keys(extensionConfigKeys).forEach((toggleConfigKey) => {
|
|
58468
|
+
const toggleKey = `${extensionConfigKeys[toggleConfigKey]}.${exports2.FeatureToggleKey}`;
|
|
58469
|
+
let toggles = {};
|
|
58470
|
+
try {
|
|
58471
|
+
toggles = JSON.parse(JSON.stringify(FeatureToggleAccess.vscode.workspace.getConfiguration(toggleKey)));
|
|
58472
|
+
} catch (e) {
|
|
58473
|
+
}
|
|
58474
|
+
Object.keys(toggles).forEach((toggleId) => {
|
|
58475
|
+
const toggleConfigValue = FeatureToggleAccess.vscode.workspace.getConfiguration(`${toggleKey}`).get(`${toggleId}`);
|
|
58476
|
+
const toggle = {
|
|
58477
|
+
feature: `${toggleKey}.${toggleId}`,
|
|
58478
|
+
isEnabled: toggleConfigValue ? toggleConfigValue : false
|
|
58479
|
+
};
|
|
58480
|
+
definedToggles.push(toggle);
|
|
58481
|
+
});
|
|
58482
|
+
});
|
|
58483
|
+
}
|
|
58484
|
+
return definedToggles;
|
|
58485
|
+
}
|
|
58486
|
+
};
|
|
58487
|
+
exports2.FeatureToggleAccess = FeatureToggleAccess;
|
|
58488
|
+
FeatureToggleAccess.vscode = vscode;
|
|
58489
|
+
function enableFeature(feature) {
|
|
58490
|
+
let envFeatures = [];
|
|
58491
|
+
if (process.env.TOOLSUITE_FEATURES) {
|
|
58492
|
+
envFeatures = process.env.TOOLSUITE_FEATURES.split(",");
|
|
58493
|
+
if (!envFeatures.includes(feature)) {
|
|
58494
|
+
envFeatures.push(feature);
|
|
58495
|
+
}
|
|
58496
|
+
} else {
|
|
58497
|
+
envFeatures.push(feature);
|
|
58498
|
+
}
|
|
58499
|
+
process.env.TOOLSUITE_FEATURES = envFeatures.join();
|
|
58500
|
+
}
|
|
58501
|
+
exports2.enableFeature = enableFeature;
|
|
58502
|
+
function isFeatureEnabled(feature) {
|
|
58503
|
+
return FeatureToggleAccess.getFeatureToggle(feature).isEnabled;
|
|
58504
|
+
}
|
|
58505
|
+
exports2.isFeatureEnabled = isFeatureEnabled;
|
|
58506
|
+
function isInternalFeaturesSettingEnabled() {
|
|
58507
|
+
var _a2;
|
|
58508
|
+
const enableInternalFeaturesSetting = "sap.ux.internal.enableInternalFeatures";
|
|
58509
|
+
let internalEnabled = false;
|
|
58510
|
+
if (FeatureToggleAccess.vscode) {
|
|
58511
|
+
const internalSetting = FeatureToggleAccess.vscode.workspace ? (_a2 = FeatureToggleAccess.vscode.workspace.getConfiguration()) == null ? void 0 : _a2.get(enableInternalFeaturesSetting) : false;
|
|
58512
|
+
internalEnabled = internalSetting === true ? true : false;
|
|
58513
|
+
}
|
|
58514
|
+
if (process.env.TOOLSUITE_INTERNAL && process.env.TOOLSUITE_INTERNAL === "true") {
|
|
58515
|
+
internalEnabled = true;
|
|
58516
|
+
}
|
|
58517
|
+
return internalEnabled;
|
|
58518
|
+
}
|
|
58519
|
+
exports2.isInternalFeaturesSettingEnabled = isInternalFeaturesSettingEnabled;
|
|
58520
|
+
}
|
|
58521
|
+
});
|
|
58522
|
+
|
|
58523
|
+
// ../lib/feature-toggle/dist/index.js
|
|
58524
|
+
var require_dist7 = __commonJS({
|
|
58525
|
+
"../lib/feature-toggle/dist/index.js"(exports2) {
|
|
58526
|
+
"use strict";
|
|
58527
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
58528
|
+
var featureToggle_1 = require_featureToggle();
|
|
58529
|
+
exports2.FeatureToggleAccess = featureToggle_1.FeatureToggleAccess;
|
|
58530
|
+
exports2.FeatureToggleKey = featureToggle_1.FeatureToggleKey;
|
|
58531
|
+
exports2.isFeatureEnabled = featureToggle_1.isFeatureEnabled;
|
|
58532
|
+
exports2.isInternalFeaturesSettingEnabled = featureToggle_1.isInternalFeaturesSettingEnabled;
|
|
58533
|
+
exports2.enableFeature = featureToggle_1.enableFeature;
|
|
58534
|
+
exports2.ExperimentalFeatures = featureToggle_1.ExperimentalFeatures;
|
|
58535
|
+
}
|
|
58536
|
+
});
|
|
58537
|
+
|
|
58382
58538
|
// ../lib/telemetry/dist/src/toolsSuiteTelemetry/toolsSuiteTelemetryDataProcessor.js
|
|
58383
58539
|
var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
58384
58540
|
"../lib/telemetry/dist/src/toolsSuiteTelemetry/toolsSuiteTelemetryDataProcessor.js"(exports2) {
|
|
@@ -58395,14 +58551,14 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
58395
58551
|
var utils_1 = require_utils9();
|
|
58396
58552
|
var capProject_1 = require_capProject();
|
|
58397
58553
|
var types_1 = require_types4();
|
|
58398
|
-
var ux_feature_toggle_1 =
|
|
58554
|
+
var ux_feature_toggle_1 = require_dist7();
|
|
58399
58555
|
async function processToolsSuiteTelemetry(telemetryHelperProperties) {
|
|
58400
58556
|
const commonProperties = await getCommonProperties();
|
|
58401
58557
|
let appProperties = {};
|
|
58402
58558
|
if (telemetryHelperProperties) {
|
|
58403
58559
|
appProperties = await getAppProperties(telemetryHelperProperties["appPath"]);
|
|
58404
58560
|
}
|
|
58405
|
-
return
|
|
58561
|
+
return { ...commonProperties, ...appProperties };
|
|
58406
58562
|
}
|
|
58407
58563
|
exports2.processToolsSuiteTelemetry = processToolsSuiteTelemetry;
|
|
58408
58564
|
async function getCommonProperties() {
|
|
@@ -58421,7 +58577,7 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
58421
58577
|
try {
|
|
58422
58578
|
const h20Url = process.env.H2O_URL;
|
|
58423
58579
|
const workspaceId = process.env.WORKSPACE_ID.replace("workspaces-", "");
|
|
58424
|
-
const url = `${h20Url}/
|
|
58580
|
+
const url = `${h20Url}/ws-manager/api/v1/workspace/${workspaceId}`;
|
|
58425
58581
|
const response = await axios_1.default.get(url);
|
|
58426
58582
|
if (response.data) {
|
|
58427
58583
|
const workspaceConfig = response.data;
|
|
@@ -58531,9 +58687,9 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
58531
58687
|
}
|
|
58532
58688
|
});
|
|
58533
58689
|
|
|
58534
|
-
// ../../node_modules/@sap-ux/store/dist/
|
|
58535
|
-
var
|
|
58536
|
-
"../../node_modules/@sap-ux/store/dist/
|
|
58690
|
+
// ../../node_modules/@sap-ux/store/dist/constants.js
|
|
58691
|
+
var require_constants5 = __commonJS({
|
|
58692
|
+
"../../node_modules/@sap-ux/store/dist/constants.js"(exports2) {
|
|
58537
58693
|
"use strict";
|
|
58538
58694
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
58539
58695
|
exports2.Entity = void 0;
|
|
@@ -59457,7 +59613,7 @@ var init_i18next2 = __esm({
|
|
|
59457
59613
|
value: function hasDefaultValue(options2) {
|
|
59458
59614
|
var prefix = "defaultValue";
|
|
59459
59615
|
for (var option in options2) {
|
|
59460
|
-
if (Object.prototype.hasOwnProperty.call(options2, option) && prefix === option.substring(0, prefix.length) && options2[option]
|
|
59616
|
+
if (Object.prototype.hasOwnProperty.call(options2, option) && prefix === option.substring(0, prefix.length) && void 0 !== options2[option]) {
|
|
59461
59617
|
return true;
|
|
59462
59618
|
}
|
|
59463
59619
|
}
|
|
@@ -60850,13 +61006,12 @@ var require_utils10 = __commonJS({
|
|
|
60850
61006
|
exports2.getFioriToolsDirectory = exports2.FioriToolsSettings = exports2.errorString = exports2.errorInstance = exports2.pick = void 0;
|
|
60851
61007
|
var os_1 = require("os");
|
|
60852
61008
|
var path_1 = __importDefault(require("path"));
|
|
60853
|
-
|
|
61009
|
+
exports2.pick = (target, ...props) => {
|
|
60854
61010
|
return target && (props === null || props === void 0 ? void 0 : props.length) > 0 && props.reduce((o, k) => {
|
|
60855
61011
|
o[k] = target[k];
|
|
60856
61012
|
return o;
|
|
60857
61013
|
}, {}) || void 0;
|
|
60858
61014
|
};
|
|
60859
|
-
exports2.pick = pick;
|
|
60860
61015
|
function errorInstance(e) {
|
|
60861
61016
|
if (e instanceof Error) {
|
|
60862
61017
|
return e;
|
|
@@ -60873,10 +61028,9 @@ var require_utils10 = __commonJS({
|
|
|
60873
61028
|
(function(FioriToolsSettings2) {
|
|
60874
61029
|
FioriToolsSettings2["dir"] = ".fioritools";
|
|
60875
61030
|
})(FioriToolsSettings = exports2.FioriToolsSettings || (exports2.FioriToolsSettings = {}));
|
|
60876
|
-
|
|
60877
|
-
return path_1.default.join(
|
|
61031
|
+
exports2.getFioriToolsDirectory = () => {
|
|
61032
|
+
return path_1.default.join(os_1.homedir(), FioriToolsSettings.dir);
|
|
60878
61033
|
};
|
|
60879
|
-
exports2.getFioriToolsDirectory = getFioriToolsDirectory;
|
|
60880
61034
|
__exportStar(require_app_studio(), exports2);
|
|
60881
61035
|
}
|
|
60882
61036
|
});
|
|
@@ -60944,26 +61098,25 @@ var require_filesystem2 = __commonJS({
|
|
|
60944
61098
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
60945
61099
|
};
|
|
60946
61100
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
60947
|
-
exports2.
|
|
61101
|
+
exports2.getFilesystemStore = exports2.getFilesystemWatcherFor = exports2.basedir = void 0;
|
|
60948
61102
|
var path_1 = __importDefault(require("path"));
|
|
60949
61103
|
var fs_1 = __importStar(require("fs"));
|
|
60950
61104
|
var pluralize_1 = require_pluralize();
|
|
60951
61105
|
var utils_1 = require_utils10();
|
|
60952
61106
|
var os_1 = __importDefault(require("os"));
|
|
60953
|
-
|
|
61107
|
+
exports2.basedir = ({ baseDirectory } = {}) => {
|
|
60954
61108
|
if (!baseDirectory) {
|
|
60955
|
-
return
|
|
61109
|
+
return utils_1.getFioriToolsDirectory();
|
|
60956
61110
|
} else if (path_1.default.isAbsolute(baseDirectory)) {
|
|
60957
61111
|
return baseDirectory;
|
|
60958
61112
|
} else {
|
|
60959
61113
|
return path_1.default.join(os_1.default.homedir(), baseDirectory);
|
|
60960
61114
|
}
|
|
60961
61115
|
};
|
|
60962
|
-
exports2.basedir = basedir;
|
|
60963
61116
|
var FilesystemStore = class {
|
|
60964
61117
|
constructor(logger, options2 = {}) {
|
|
60965
61118
|
this.logger = logger;
|
|
60966
|
-
this.storeDirectory =
|
|
61119
|
+
this.storeDirectory = exports2.basedir(options2);
|
|
60967
61120
|
}
|
|
60968
61121
|
read({ entityName, id }) {
|
|
60969
61122
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -61073,12 +61226,17 @@ var require_filesystem2 = __commonJS({
|
|
|
61073
61226
|
});
|
|
61074
61227
|
}
|
|
61075
61228
|
_readAll(entityName) {
|
|
61076
|
-
var _a2
|
|
61229
|
+
var _a2;
|
|
61077
61230
|
let rawContents;
|
|
61078
61231
|
try {
|
|
61079
|
-
|
|
61232
|
+
const configPath = path_1.default.join(this.storeDirectory, `${entityName}.json`);
|
|
61233
|
+
if (fs_1.existsSync(configPath)) {
|
|
61234
|
+
rawContents = fs_1.readFileSync(configPath).toString().trim();
|
|
61235
|
+
} else {
|
|
61236
|
+
rawContents = "";
|
|
61237
|
+
}
|
|
61080
61238
|
} catch (e) {
|
|
61081
|
-
const err =
|
|
61239
|
+
const err = utils_1.errorInstance(e);
|
|
61082
61240
|
this.logger.debug(err.message);
|
|
61083
61241
|
return { error: err };
|
|
61084
61242
|
}
|
|
@@ -61087,9 +61245,9 @@ var require_filesystem2 = __commonJS({
|
|
|
61087
61245
|
}
|
|
61088
61246
|
let entities;
|
|
61089
61247
|
try {
|
|
61090
|
-
entities = (
|
|
61248
|
+
entities = (_a2 = JSON.parse(rawContents)) === null || _a2 === void 0 ? void 0 : _a2[entityName];
|
|
61091
61249
|
} catch (e) {
|
|
61092
|
-
return { error:
|
|
61250
|
+
return { error: utils_1.errorInstance(e) };
|
|
61093
61251
|
}
|
|
61094
61252
|
return { entities };
|
|
61095
61253
|
}
|
|
@@ -61097,30 +61255,29 @@ var require_filesystem2 = __commonJS({
|
|
|
61097
61255
|
const data2 = JSON.stringify({ [entityName]: entities }, null, 2);
|
|
61098
61256
|
const filename = getEntityFileName(entityName);
|
|
61099
61257
|
try {
|
|
61100
|
-
|
|
61258
|
+
fs_1.writeFileSync(path_1.default.join(this.storeDirectory, filename), data2);
|
|
61101
61259
|
} catch (e) {
|
|
61102
|
-
const err =
|
|
61260
|
+
const err = utils_1.errorInstance(e);
|
|
61103
61261
|
if ((err === null || err === void 0 ? void 0 : err.code) === "ENOENT") {
|
|
61104
61262
|
this.logger.debug(`Base directory [${this.storeDirectory}] does not exist, trying to create it`);
|
|
61105
|
-
|
|
61106
|
-
|
|
61263
|
+
fs_1.mkdirSync(this.storeDirectory, { recursive: true });
|
|
61264
|
+
fs_1.writeFileSync(path_1.default.join(this.storeDirectory, filename), data2);
|
|
61107
61265
|
} else {
|
|
61108
61266
|
throw e;
|
|
61109
61267
|
}
|
|
61110
61268
|
}
|
|
61111
61269
|
}
|
|
61112
61270
|
};
|
|
61113
|
-
exports2.FilesystemStore = FilesystemStore;
|
|
61114
61271
|
function toPersistenceName(s) {
|
|
61115
61272
|
const t = s === null || s === void 0 ? void 0 : s.trim().toLowerCase();
|
|
61116
|
-
return t &&
|
|
61273
|
+
return t && pluralize_1.plural(t);
|
|
61117
61274
|
}
|
|
61118
61275
|
function getEntityFileName(entityName) {
|
|
61119
61276
|
return toPersistenceName(entityName) + ".json";
|
|
61120
61277
|
}
|
|
61121
61278
|
function getFilesystemWatcherFor(entityName, callback, options2 = {}) {
|
|
61122
|
-
const watchPath = path_1.default.join(
|
|
61123
|
-
if (
|
|
61279
|
+
const watchPath = path_1.default.join(exports2.basedir(options2), getEntityFileName(entityName));
|
|
61280
|
+
if (fs_1.existsSync(watchPath)) {
|
|
61124
61281
|
return fs_1.default.watch(watchPath, void 0, () => {
|
|
61125
61282
|
callback(entityName);
|
|
61126
61283
|
});
|
|
@@ -61130,6 +61287,10 @@ var require_filesystem2 = __commonJS({
|
|
|
61130
61287
|
}
|
|
61131
61288
|
}
|
|
61132
61289
|
exports2.getFilesystemWatcherFor = getFilesystemWatcherFor;
|
|
61290
|
+
function getFilesystemStore(logger, options2) {
|
|
61291
|
+
return new FilesystemStore(logger, options2);
|
|
61292
|
+
}
|
|
61293
|
+
exports2.getFilesystemStore = getFilesystemStore;
|
|
61133
61294
|
}
|
|
61134
61295
|
});
|
|
61135
61296
|
|
|
@@ -61246,7 +61407,7 @@ var require_keytar_store2 = __commonJS({
|
|
|
61246
61407
|
return true;
|
|
61247
61408
|
} catch (e) {
|
|
61248
61409
|
this.log.error(`Error saving to secure store. Service: [${service}], key: [${key}]`);
|
|
61249
|
-
this.log.error(
|
|
61410
|
+
this.log.error(utils_1.errorString(e));
|
|
61250
61411
|
return false;
|
|
61251
61412
|
}
|
|
61252
61413
|
});
|
|
@@ -61258,7 +61419,7 @@ var require_keytar_store2 = __commonJS({
|
|
|
61258
61419
|
return serializedValue && JSON.parse(serializedValue);
|
|
61259
61420
|
} catch (e) {
|
|
61260
61421
|
this.log.error(`Error retrieving from secure store. Service: [${service}], key: [${key}]`);
|
|
61261
|
-
this.log.error(
|
|
61422
|
+
this.log.error(utils_1.errorString(e));
|
|
61262
61423
|
return void 0;
|
|
61263
61424
|
}
|
|
61264
61425
|
});
|
|
@@ -61269,7 +61430,7 @@ var require_keytar_store2 = __commonJS({
|
|
|
61269
61430
|
return yield this.keytar.deletePassword(service, key);
|
|
61270
61431
|
} catch (e) {
|
|
61271
61432
|
this.log.error(`Error deleting from secure store. Service: [${service}], key: [${key}]`);
|
|
61272
|
-
this.log.error(
|
|
61433
|
+
this.log.error(utils_1.errorString(e));
|
|
61273
61434
|
return false;
|
|
61274
61435
|
}
|
|
61275
61436
|
});
|
|
@@ -61287,7 +61448,7 @@ var require_keytar_store2 = __commonJS({
|
|
|
61287
61448
|
}, {});
|
|
61288
61449
|
} catch (e) {
|
|
61289
61450
|
this.log.error(`Error getting values for service: [${service}]`);
|
|
61290
|
-
this.log.error(
|
|
61451
|
+
this.log.error(utils_1.errorString(e));
|
|
61291
61452
|
return {};
|
|
61292
61453
|
}
|
|
61293
61454
|
});
|
|
@@ -61335,40 +61496,39 @@ var require_secure_store2 = __commonJS({
|
|
|
61335
61496
|
try {
|
|
61336
61497
|
return require("keytar");
|
|
61337
61498
|
} catch (err) {
|
|
61338
|
-
log4.warn(
|
|
61499
|
+
log4.warn(utils_1.errorString(err));
|
|
61339
61500
|
log4.warn(`Could not "require('keytar')". Trying VSCode's copy`);
|
|
61340
61501
|
let vscode;
|
|
61341
61502
|
try {
|
|
61342
61503
|
vscode = require("vscode");
|
|
61343
61504
|
} catch (e) {
|
|
61344
|
-
log4.warn(
|
|
61505
|
+
log4.warn(utils_1.errorString(e));
|
|
61345
61506
|
log4.warn("Could not get hold of vscode");
|
|
61346
61507
|
return void 0;
|
|
61347
61508
|
}
|
|
61348
61509
|
try {
|
|
61349
61510
|
return require(`${(_a2 = vscode === null || vscode === void 0 ? void 0 : vscode.env) === null || _a2 === void 0 ? void 0 : _a2.appRoot}/node_modules.asar/keytar`);
|
|
61350
61511
|
} catch (e) {
|
|
61351
|
-
log4.warn(
|
|
61512
|
+
log4.warn(utils_1.errorString(e));
|
|
61352
61513
|
log4.warn("Could not get keytar from vscode node_modules.asar");
|
|
61353
61514
|
}
|
|
61354
61515
|
try {
|
|
61355
61516
|
return require(`${(_b = vscode === null || vscode === void 0 ? void 0 : vscode.env) === null || _b === void 0 ? void 0 : _b.appRoot}/node_modules/keytar`);
|
|
61356
61517
|
} catch (e) {
|
|
61357
|
-
log4.warn(
|
|
61518
|
+
log4.warn(utils_1.errorString(e));
|
|
61358
61519
|
log4.warn("Could not get keytar from vscode node_modules");
|
|
61359
61520
|
}
|
|
61360
61521
|
return void 0;
|
|
61361
61522
|
}
|
|
61362
61523
|
}
|
|
61363
|
-
|
|
61364
|
-
if (
|
|
61524
|
+
exports2.getSecureStore = (log4) => {
|
|
61525
|
+
if (utils_1.isAppStudio()) {
|
|
61365
61526
|
return new dummy_store_1.DummyStore(log4);
|
|
61366
61527
|
} else {
|
|
61367
61528
|
const keytar = getKeytar(log4);
|
|
61368
61529
|
return keytar ? new keytar_store_1.KeytarStore(log4, keytar) : new dummy_store_1.DummyStore(log4);
|
|
61369
61530
|
}
|
|
61370
61531
|
};
|
|
61371
|
-
exports2.getSecureStore = getSecureStore;
|
|
61372
61532
|
__exportStar(require_types5(), exports2);
|
|
61373
61533
|
}
|
|
61374
61534
|
});
|
|
@@ -61437,7 +61597,7 @@ var require_hybrid2 = __commonJS({
|
|
|
61437
61597
|
});
|
|
61438
61598
|
};
|
|
61439
61599
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
61440
|
-
exports2.
|
|
61600
|
+
exports2.getHybridStore = void 0;
|
|
61441
61601
|
var filesystem_1 = require_filesystem2();
|
|
61442
61602
|
var utils_1 = require_utils10();
|
|
61443
61603
|
var secure_store_1 = require_secure_store2();
|
|
@@ -61449,8 +61609,8 @@ var require_hybrid2 = __commonJS({
|
|
|
61449
61609
|
var HybridStore = class {
|
|
61450
61610
|
constructor(logger, options2 = {}) {
|
|
61451
61611
|
this.logger = logger;
|
|
61452
|
-
this.filesystem =
|
|
61453
|
-
this.secureStore =
|
|
61612
|
+
this.filesystem = filesystem_1.getFilesystemStore(this.logger, options2);
|
|
61613
|
+
this.secureStore = secure_store_1.getSecureStore(this.logger);
|
|
61454
61614
|
}
|
|
61455
61615
|
read({ entityName, id }) {
|
|
61456
61616
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -61458,7 +61618,7 @@ var require_hybrid2 = __commonJS({
|
|
|
61458
61618
|
if (!serialized) {
|
|
61459
61619
|
this.logger.debug(`hybrid/read - id: [${id}], nothing on the filesystem`);
|
|
61460
61620
|
} else {
|
|
61461
|
-
this.logger.debug(`hybrid/read - id: [${id}], filesystem: ${
|
|
61621
|
+
this.logger.debug(`hybrid/read - id: [${id}], filesystem: ${util_1.inspect(serialized)}`);
|
|
61462
61622
|
}
|
|
61463
61623
|
const sensitiveData = yield this.secureStore.retrieve(getFullyQualifiedServiceName(entityName), id);
|
|
61464
61624
|
if (!sensitiveData) {
|
|
@@ -61492,8 +61652,8 @@ var require_hybrid2 = __commonJS({
|
|
|
61492
61652
|
}
|
|
61493
61653
|
write({ entityName, id, entity }) {
|
|
61494
61654
|
return __awaiter(this, void 0, void 0, function* () {
|
|
61495
|
-
const serializableProps =
|
|
61496
|
-
const sensitiveProps =
|
|
61655
|
+
const serializableProps = decorators_1.getSerializableProperties(entity);
|
|
61656
|
+
const sensitiveProps = decorators_1.getSensitiveDataProperties(entity);
|
|
61497
61657
|
if (serializableProps.length > 0 && sensitiveProps.length > 0) {
|
|
61498
61658
|
for (let i = 0; i < serializableProps.length; i = i + 1) {
|
|
61499
61659
|
if (sensitiveProps.indexOf(serializableProps[i]) !== -1) {
|
|
@@ -61502,19 +61662,19 @@ var require_hybrid2 = __commonJS({
|
|
|
61502
61662
|
}
|
|
61503
61663
|
}
|
|
61504
61664
|
}
|
|
61505
|
-
const serializable =
|
|
61665
|
+
const serializable = utils_1.pick(entity, ...serializableProps);
|
|
61506
61666
|
if (serializable) {
|
|
61507
|
-
this.logger.debug(`hybrid/write - writing serializable properties: ${
|
|
61667
|
+
this.logger.debug(`hybrid/write - writing serializable properties: ${util_1.inspect(serializable)}`);
|
|
61508
61668
|
yield this.filesystem.write({ entityName, id, entity: serializable });
|
|
61509
61669
|
} else {
|
|
61510
|
-
this.logger.debug(`hybrid/write - no serializable properties found in ${
|
|
61670
|
+
this.logger.debug(`hybrid/write - no serializable properties found in ${util_1.inspect(serializable)}`);
|
|
61511
61671
|
}
|
|
61512
|
-
const sensitiveData =
|
|
61672
|
+
const sensitiveData = utils_1.pick(entity, ...sensitiveProps);
|
|
61513
61673
|
if (sensitiveData) {
|
|
61514
61674
|
this.logger.debug(`hybrid/write - writing sensitive properties to secure store. ID: [${id}]`);
|
|
61515
61675
|
yield this.secureStore.save(getFullyQualifiedServiceName(entityName), id, sensitiveData);
|
|
61516
61676
|
} else {
|
|
61517
|
-
this.logger.debug(`hybrid/write - no sensitive properties found in ${
|
|
61677
|
+
this.logger.debug(`hybrid/write - no sensitive properties found in ${util_1.inspect(entity)}`);
|
|
61518
61678
|
}
|
|
61519
61679
|
return entity;
|
|
61520
61680
|
});
|
|
@@ -61529,7 +61689,10 @@ var require_hybrid2 = __commonJS({
|
|
|
61529
61689
|
});
|
|
61530
61690
|
}
|
|
61531
61691
|
};
|
|
61532
|
-
|
|
61692
|
+
function getHybridStore(logger, options2) {
|
|
61693
|
+
return new HybridStore(logger, options2);
|
|
61694
|
+
}
|
|
61695
|
+
exports2.getHybridStore = getHybridStore;
|
|
61533
61696
|
}
|
|
61534
61697
|
});
|
|
61535
61698
|
|
|
@@ -61628,7 +61791,7 @@ var require_backend_system4 = __commonJS({
|
|
|
61628
61791
|
});
|
|
61629
61792
|
|
|
61630
61793
|
// ../../node_modules/@sap-ux/store/dist/data-provider/constants.js
|
|
61631
|
-
var
|
|
61794
|
+
var require_constants6 = __commonJS({
|
|
61632
61795
|
"../../node_modules/@sap-ux/store/dist/data-provider/constants.js"(exports2) {
|
|
61633
61796
|
"use strict";
|
|
61634
61797
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -61638,6 +61801,7 @@ var require_constants5 = __commonJS({
|
|
|
61638
61801
|
Entities2["BackendSystem"] = "system";
|
|
61639
61802
|
Entities2["SystemMigrationStatus"] = "systemMigrationStatus";
|
|
61640
61803
|
Entities2["TelemetrySetting"] = "telemetrySetting";
|
|
61804
|
+
Entities2["ApiHub"] = "apiHub";
|
|
61641
61805
|
})(Entities = exports2.Entities || (exports2.Entities = {}));
|
|
61642
61806
|
}
|
|
61643
61807
|
});
|
|
@@ -61677,12 +61841,12 @@ var require_backend_system5 = __commonJS({
|
|
|
61677
61841
|
exports2.SystemDataProvider = void 0;
|
|
61678
61842
|
var hybrid_1 = require_hybrid2();
|
|
61679
61843
|
var backend_system_1 = require_backend_system4();
|
|
61680
|
-
var constants_1 =
|
|
61681
|
-
|
|
61844
|
+
var constants_1 = require_constants6();
|
|
61845
|
+
exports2.SystemDataProvider = class {
|
|
61682
61846
|
constructor(logger, options2 = {}) {
|
|
61683
61847
|
this.entityName = constants_1.Entities.BackendSystem;
|
|
61684
61848
|
this.logger = logger;
|
|
61685
|
-
this.dataAccessor =
|
|
61849
|
+
this.dataAccessor = hybrid_1.getHybridStore(this.logger, options2);
|
|
61686
61850
|
}
|
|
61687
61851
|
read(key) {
|
|
61688
61852
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -61727,7 +61891,6 @@ var require_backend_system5 = __commonJS({
|
|
|
61727
61891
|
});
|
|
61728
61892
|
}
|
|
61729
61893
|
};
|
|
61730
|
-
exports2.SystemDataProvider = SystemDataProvider;
|
|
61731
61894
|
}
|
|
61732
61895
|
});
|
|
61733
61896
|
|
|
@@ -61791,14 +61954,14 @@ var require_backend_system6 = __commonJS({
|
|
|
61791
61954
|
return __awaiter(this, void 0, void 0, function* () {
|
|
61792
61955
|
const existingSystem = yield this.read(key);
|
|
61793
61956
|
if (!existingSystem) {
|
|
61794
|
-
throw new Error(
|
|
61957
|
+
throw new Error(i18n_1.text("error.systemDoesNotExist", { system: key }));
|
|
61795
61958
|
}
|
|
61796
61959
|
return existingSystem;
|
|
61797
61960
|
});
|
|
61798
61961
|
}
|
|
61799
61962
|
validatePartialUpdateInput(entity) {
|
|
61800
61963
|
if (!entity || !Object.keys(entity).length) {
|
|
61801
|
-
throw new Error(
|
|
61964
|
+
throw new Error(i18n_1.text("error.noPropertiesSpecified"));
|
|
61802
61965
|
}
|
|
61803
61966
|
}
|
|
61804
61967
|
read(key) {
|
|
@@ -61878,12 +62041,12 @@ var require_telemetry_setting2 = __commonJS({
|
|
|
61878
62041
|
exports2.TelemetryDataProvider = void 0;
|
|
61879
62042
|
var filesystem_1 = require_filesystem2();
|
|
61880
62043
|
var telemetry_setting_1 = require_telemetry_setting();
|
|
61881
|
-
var constants_1 =
|
|
61882
|
-
|
|
62044
|
+
var constants_1 = require_constants6();
|
|
62045
|
+
exports2.TelemetryDataProvider = class {
|
|
61883
62046
|
constructor(logger) {
|
|
61884
62047
|
this.entityName = constants_1.Entities.TelemetrySetting;
|
|
61885
62048
|
this.logger = logger;
|
|
61886
|
-
this.dataAccessor =
|
|
62049
|
+
this.dataAccessor = filesystem_1.getFilesystemStore(this.logger);
|
|
61887
62050
|
}
|
|
61888
62051
|
read(key) {
|
|
61889
62052
|
return this.dataAccessor.read({ entityName: this.entityName, id: key.getId() });
|
|
@@ -61905,7 +62068,6 @@ var require_telemetry_setting2 = __commonJS({
|
|
|
61905
62068
|
return this.dataAccessor.getAll({ entityName: this.entityName });
|
|
61906
62069
|
}
|
|
61907
62070
|
};
|
|
61908
|
-
exports2.TelemetryDataProvider = TelemetryDataProvider;
|
|
61909
62071
|
}
|
|
61910
62072
|
});
|
|
61911
62073
|
|
|
@@ -61982,6 +62144,270 @@ var require_telemetry_setting3 = __commonJS({
|
|
|
61982
62144
|
}
|
|
61983
62145
|
});
|
|
61984
62146
|
|
|
62147
|
+
// ../../node_modules/@sap-ux/store/dist/entities/api-hub.js
|
|
62148
|
+
var require_api_hub2 = __commonJS({
|
|
62149
|
+
"../../node_modules/@sap-ux/store/dist/entities/api-hub.js"(exports2) {
|
|
62150
|
+
"use strict";
|
|
62151
|
+
var __decorate = exports2 && exports2.__decorate || function(decorators, target, key, desc) {
|
|
62152
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
62153
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
62154
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
62155
|
+
else
|
|
62156
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
62157
|
+
if (d = decorators[i])
|
|
62158
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
62159
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
62160
|
+
};
|
|
62161
|
+
var __metadata = exports2 && exports2.__metadata || function(k, v) {
|
|
62162
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
62163
|
+
return Reflect.metadata(k, v);
|
|
62164
|
+
};
|
|
62165
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
62166
|
+
exports2.ApiHubSettingsKey = exports2.ApiHubSettings = void 0;
|
|
62167
|
+
var decorators_1 = require_decorators2();
|
|
62168
|
+
var ApiHubSettings = class {
|
|
62169
|
+
constructor({ apiKey }) {
|
|
62170
|
+
this.apiKey = apiKey;
|
|
62171
|
+
}
|
|
62172
|
+
};
|
|
62173
|
+
__decorate([
|
|
62174
|
+
decorators_1.sensitiveData,
|
|
62175
|
+
__metadata("design:type", String)
|
|
62176
|
+
], ApiHubSettings.prototype, "apiKey", void 0);
|
|
62177
|
+
exports2.ApiHubSettings = ApiHubSettings;
|
|
62178
|
+
var ApiHubSettingsKey = class {
|
|
62179
|
+
getId() {
|
|
62180
|
+
return ApiHubSettingsKey.SINGLETON;
|
|
62181
|
+
}
|
|
62182
|
+
};
|
|
62183
|
+
exports2.ApiHubSettingsKey = ApiHubSettingsKey;
|
|
62184
|
+
ApiHubSettingsKey.SINGLETON = "API_HUB_API_KEY";
|
|
62185
|
+
}
|
|
62186
|
+
});
|
|
62187
|
+
|
|
62188
|
+
// ../../node_modules/@sap-ux/store/dist/data-provider/api-hub.js
|
|
62189
|
+
var require_api_hub3 = __commonJS({
|
|
62190
|
+
"../../node_modules/@sap-ux/store/dist/data-provider/api-hub.js"(exports2) {
|
|
62191
|
+
"use strict";
|
|
62192
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
62193
|
+
exports2.ApiHubSettingsProvider = void 0;
|
|
62194
|
+
var hybrid_1 = require_hybrid2();
|
|
62195
|
+
var constants_1 = require_constants6();
|
|
62196
|
+
var api_hub_1 = require_api_hub2();
|
|
62197
|
+
exports2.ApiHubSettingsProvider = class {
|
|
62198
|
+
constructor(logger, options2 = {}) {
|
|
62199
|
+
this.entityName = constants_1.Entities.ApiHub;
|
|
62200
|
+
this.logger = logger;
|
|
62201
|
+
this.dataAccessor = hybrid_1.getHybridStore(this.logger, options2);
|
|
62202
|
+
}
|
|
62203
|
+
read(key) {
|
|
62204
|
+
return this.dataAccessor.read({ entityName: this.entityName, id: key.getId() });
|
|
62205
|
+
}
|
|
62206
|
+
write(entity) {
|
|
62207
|
+
return this.dataAccessor.write({
|
|
62208
|
+
entityName: this.entityName,
|
|
62209
|
+
id: api_hub_1.ApiHubSettingsKey.SINGLETON,
|
|
62210
|
+
entity
|
|
62211
|
+
});
|
|
62212
|
+
}
|
|
62213
|
+
delete(_entity) {
|
|
62214
|
+
return this.dataAccessor.del({
|
|
62215
|
+
entityName: this.entityName,
|
|
62216
|
+
id: api_hub_1.ApiHubSettingsKey.SINGLETON
|
|
62217
|
+
});
|
|
62218
|
+
}
|
|
62219
|
+
getAll() {
|
|
62220
|
+
return this.dataAccessor.getAll({ entityName: this.entityName });
|
|
62221
|
+
}
|
|
62222
|
+
};
|
|
62223
|
+
}
|
|
62224
|
+
});
|
|
62225
|
+
|
|
62226
|
+
// ../../node_modules/@sap-ux/store/dist/services/api-hub/migration.js
|
|
62227
|
+
var require_migration = __commonJS({
|
|
62228
|
+
"../../node_modules/@sap-ux/store/dist/services/api-hub/migration.js"(exports2) {
|
|
62229
|
+
"use strict";
|
|
62230
|
+
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
62231
|
+
function adopt(value) {
|
|
62232
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
62233
|
+
resolve(value);
|
|
62234
|
+
});
|
|
62235
|
+
}
|
|
62236
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
62237
|
+
function fulfilled(value) {
|
|
62238
|
+
try {
|
|
62239
|
+
step(generator.next(value));
|
|
62240
|
+
} catch (e) {
|
|
62241
|
+
reject(e);
|
|
62242
|
+
}
|
|
62243
|
+
}
|
|
62244
|
+
function rejected(value) {
|
|
62245
|
+
try {
|
|
62246
|
+
step(generator["throw"](value));
|
|
62247
|
+
} catch (e) {
|
|
62248
|
+
reject(e);
|
|
62249
|
+
}
|
|
62250
|
+
}
|
|
62251
|
+
function step(result2) {
|
|
62252
|
+
result2.done ? resolve(result2.value) : adopt(result2.value).then(fulfilled, rejected);
|
|
62253
|
+
}
|
|
62254
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
62255
|
+
});
|
|
62256
|
+
};
|
|
62257
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
62258
|
+
exports2.migrateToLatestVersion = exports2.LEGACY_API_HUB_API_KEY = exports2.LEGACY_API_HUB_API_SERVICE = void 0;
|
|
62259
|
+
var i18n_1 = require_i18n4();
|
|
62260
|
+
var api_hub_1 = require_api_hub2();
|
|
62261
|
+
exports2.LEGACY_API_HUB_API_SERVICE = "fiori/system/apiHub";
|
|
62262
|
+
exports2.LEGACY_API_HUB_API_KEY = "API_HUB_API_KEY";
|
|
62263
|
+
function migrateToLatestVersion({ dataProvider, secureStore, logger }) {
|
|
62264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62265
|
+
const apiKey = yield secureStore.retrieve(exports2.LEGACY_API_HUB_API_SERVICE, exports2.LEGACY_API_HUB_API_KEY);
|
|
62266
|
+
if (!apiKey) {
|
|
62267
|
+
logger.debug(i18n_1.text("info.noLegacyApiHubKeyFound"));
|
|
62268
|
+
return;
|
|
62269
|
+
} else {
|
|
62270
|
+
logger.info(i18n_1.text("info.legacyApiHubKeyFound"));
|
|
62271
|
+
}
|
|
62272
|
+
const apiKeysNewFormat = yield dataProvider.read(new api_hub_1.ApiHubSettingsKey());
|
|
62273
|
+
if (!apiKeysNewFormat) {
|
|
62274
|
+
yield dataProvider.write(new api_hub_1.ApiHubSettings({ apiKey }));
|
|
62275
|
+
logger.info(i18n_1.text("info.legacyApiHubKeyMigrated"));
|
|
62276
|
+
} else {
|
|
62277
|
+
logger.info(i18n_1.text("info.legacyApiHubKeyNotMigrated"));
|
|
62278
|
+
}
|
|
62279
|
+
yield secureStore.delete(exports2.LEGACY_API_HUB_API_SERVICE, exports2.LEGACY_API_HUB_API_KEY);
|
|
62280
|
+
logger.info(i18n_1.text("info.legacyApiHubKeyDeleted"));
|
|
62281
|
+
});
|
|
62282
|
+
}
|
|
62283
|
+
exports2.migrateToLatestVersion = migrateToLatestVersion;
|
|
62284
|
+
}
|
|
62285
|
+
});
|
|
62286
|
+
|
|
62287
|
+
// ../../node_modules/@sap-ux/store/dist/services/api-hub/service.js
|
|
62288
|
+
var require_service = __commonJS({
|
|
62289
|
+
"../../node_modules/@sap-ux/store/dist/services/api-hub/service.js"(exports2) {
|
|
62290
|
+
"use strict";
|
|
62291
|
+
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
62292
|
+
function adopt(value) {
|
|
62293
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
62294
|
+
resolve(value);
|
|
62295
|
+
});
|
|
62296
|
+
}
|
|
62297
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
62298
|
+
function fulfilled(value) {
|
|
62299
|
+
try {
|
|
62300
|
+
step(generator.next(value));
|
|
62301
|
+
} catch (e) {
|
|
62302
|
+
reject(e);
|
|
62303
|
+
}
|
|
62304
|
+
}
|
|
62305
|
+
function rejected(value) {
|
|
62306
|
+
try {
|
|
62307
|
+
step(generator["throw"](value));
|
|
62308
|
+
} catch (e) {
|
|
62309
|
+
reject(e);
|
|
62310
|
+
}
|
|
62311
|
+
}
|
|
62312
|
+
function step(result2) {
|
|
62313
|
+
result2.done ? resolve(result2.value) : adopt(result2.value).then(fulfilled, rejected);
|
|
62314
|
+
}
|
|
62315
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
62316
|
+
});
|
|
62317
|
+
};
|
|
62318
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
62319
|
+
exports2.getInstance = exports2.ApiHubSettingsService = void 0;
|
|
62320
|
+
var secure_store_1 = require_secure_store2();
|
|
62321
|
+
var api_hub_1 = require_api_hub3();
|
|
62322
|
+
var api_hub_2 = require_api_hub2();
|
|
62323
|
+
var migration_1 = require_migration();
|
|
62324
|
+
var ApiHubSettingsService = class {
|
|
62325
|
+
constructor(logger) {
|
|
62326
|
+
this.migrationDone = false;
|
|
62327
|
+
this.key = new api_hub_2.ApiHubSettingsKey();
|
|
62328
|
+
this.logger = logger;
|
|
62329
|
+
this.dataProvider = new api_hub_1.ApiHubSettingsProvider(this.logger);
|
|
62330
|
+
}
|
|
62331
|
+
migrate() {
|
|
62332
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62333
|
+
if (this.migrationDone) {
|
|
62334
|
+
return;
|
|
62335
|
+
}
|
|
62336
|
+
if (!this.secureStore) {
|
|
62337
|
+
this.secureStore = secure_store_1.getSecureStore(this.logger);
|
|
62338
|
+
}
|
|
62339
|
+
yield migration_1.migrateToLatestVersion({
|
|
62340
|
+
logger: this.logger,
|
|
62341
|
+
secureStore: this.secureStore,
|
|
62342
|
+
dataProvider: this.dataProvider
|
|
62343
|
+
});
|
|
62344
|
+
this.migrationDone = true;
|
|
62345
|
+
});
|
|
62346
|
+
}
|
|
62347
|
+
partialUpdate() {
|
|
62348
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62349
|
+
yield this.migrate();
|
|
62350
|
+
throw new Error("NOT IMPLEMENTED");
|
|
62351
|
+
});
|
|
62352
|
+
}
|
|
62353
|
+
read() {
|
|
62354
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62355
|
+
yield this.migrate();
|
|
62356
|
+
return this.dataProvider.read(this.key);
|
|
62357
|
+
});
|
|
62358
|
+
}
|
|
62359
|
+
write(entity) {
|
|
62360
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62361
|
+
yield this.migrate();
|
|
62362
|
+
return this.dataProvider.write(entity);
|
|
62363
|
+
});
|
|
62364
|
+
}
|
|
62365
|
+
delete(entity) {
|
|
62366
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62367
|
+
yield this.migrate();
|
|
62368
|
+
return this.dataProvider.delete(entity);
|
|
62369
|
+
});
|
|
62370
|
+
}
|
|
62371
|
+
getAll() {
|
|
62372
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62373
|
+
yield this.migrate();
|
|
62374
|
+
return this.dataProvider.getAll();
|
|
62375
|
+
});
|
|
62376
|
+
}
|
|
62377
|
+
};
|
|
62378
|
+
exports2.ApiHubSettingsService = ApiHubSettingsService;
|
|
62379
|
+
function getInstance(logger) {
|
|
62380
|
+
return new ApiHubSettingsService(logger);
|
|
62381
|
+
}
|
|
62382
|
+
exports2.getInstance = getInstance;
|
|
62383
|
+
}
|
|
62384
|
+
});
|
|
62385
|
+
|
|
62386
|
+
// ../../node_modules/@sap-ux/store/dist/services/api-hub/index.js
|
|
62387
|
+
var require_api_hub4 = __commonJS({
|
|
62388
|
+
"../../node_modules/@sap-ux/store/dist/services/api-hub/index.js"(exports2) {
|
|
62389
|
+
"use strict";
|
|
62390
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
62391
|
+
if (k2 === void 0)
|
|
62392
|
+
k2 = k;
|
|
62393
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
62394
|
+
return m[k];
|
|
62395
|
+
} });
|
|
62396
|
+
} : function(o, m, k, k2) {
|
|
62397
|
+
if (k2 === void 0)
|
|
62398
|
+
k2 = k;
|
|
62399
|
+
o[k2] = m[k];
|
|
62400
|
+
});
|
|
62401
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
62402
|
+
for (var p in m)
|
|
62403
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
62404
|
+
__createBinding(exports3, m, p);
|
|
62405
|
+
};
|
|
62406
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
62407
|
+
__exportStar(require_service(), exports2);
|
|
62408
|
+
}
|
|
62409
|
+
});
|
|
62410
|
+
|
|
61985
62411
|
// ../../node_modules/lodash/_listCacheClear.js
|
|
61986
62412
|
var require_listCacheClear = __commonJS({
|
|
61987
62413
|
"../../node_modules/lodash/_listCacheClear.js"(exports2, module2) {
|
|
@@ -63772,9 +64198,9 @@ var require_cloneDeep = __commonJS({
|
|
|
63772
64198
|
}
|
|
63773
64199
|
});
|
|
63774
64200
|
|
|
63775
|
-
// ../../node_modules/@sap-ux/logger/dist/types.js
|
|
64201
|
+
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/types.js
|
|
63776
64202
|
var require_types6 = __commonJS({
|
|
63777
|
-
"../../node_modules/@sap-ux/logger/dist/types.js"(exports2) {
|
|
64203
|
+
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/types.js"(exports2) {
|
|
63778
64204
|
"use strict";
|
|
63779
64205
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
63780
64206
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -63793,16 +64219,16 @@ var require_types6 = __commonJS({
|
|
|
63793
64219
|
})(LogLevel = exports2.LogLevel || (exports2.LogLevel = {}));
|
|
63794
64220
|
var Transport = class {
|
|
63795
64221
|
copy(obj) {
|
|
63796
|
-
return Object.freeze(
|
|
64222
|
+
return Object.freeze(cloneDeep_1.default(obj));
|
|
63797
64223
|
}
|
|
63798
64224
|
};
|
|
63799
64225
|
exports2.Transport = Transport;
|
|
63800
64226
|
}
|
|
63801
64227
|
});
|
|
63802
64228
|
|
|
63803
|
-
// ../../node_modules/@sap-ux/logger/dist/transports/transport.js
|
|
64229
|
+
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/transports/transport.js
|
|
63804
64230
|
var require_transport = __commonJS({
|
|
63805
|
-
"../../node_modules/@sap-ux/logger/dist/transports/transport.js"(exports2) {
|
|
64231
|
+
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/transports/transport.js"(exports2) {
|
|
63806
64232
|
"use strict";
|
|
63807
64233
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
63808
64234
|
exports2.VSCodeTransport = exports2.StringArrayTransport = exports2.FileTransport = exports2.NullTransport = exports2.UI5ToolingTransport = exports2.ConsoleTransport = void 0;
|
|
@@ -63871,9 +64297,9 @@ var require_transport = __commonJS({
|
|
|
63871
64297
|
}
|
|
63872
64298
|
});
|
|
63873
64299
|
|
|
63874
|
-
// ../../node_modules/@sap-ux/logger/dist/transports/index.js
|
|
64300
|
+
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/transports/index.js
|
|
63875
64301
|
var require_transports = __commonJS({
|
|
63876
|
-
"../../node_modules/@sap-ux/logger/dist/transports/index.js"(exports2) {
|
|
64302
|
+
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/transports/index.js"(exports2) {
|
|
63877
64303
|
"use strict";
|
|
63878
64304
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
63879
64305
|
if (k2 === void 0)
|
|
@@ -67485,7 +67911,7 @@ var require_stream_readable = __commonJS({
|
|
|
67485
67911
|
debug("ondata");
|
|
67486
67912
|
increasedAwaitDrain = false;
|
|
67487
67913
|
var ret = dest.write(chunk);
|
|
67488
|
-
if (
|
|
67914
|
+
if (false === ret && !increasedAwaitDrain) {
|
|
67489
67915
|
if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {
|
|
67490
67916
|
debug("false write response, pause", src._readableState.awaitDrain);
|
|
67491
67917
|
src._readableState.awaitDrain++;
|
|
@@ -67627,7 +68053,7 @@ var require_stream_readable = __commonJS({
|
|
|
67627
68053
|
}
|
|
67628
68054
|
Readable.prototype.pause = function() {
|
|
67629
68055
|
debug("call pause flowing=%j", this._readableState.flowing);
|
|
67630
|
-
if (this._readableState.flowing
|
|
68056
|
+
if (false !== this._readableState.flowing) {
|
|
67631
68057
|
debug("pause");
|
|
67632
68058
|
this._readableState.flowing = false;
|
|
67633
68059
|
this.emit("pause");
|
|
@@ -73756,7 +74182,7 @@ var require_enabled = __commonJS({
|
|
|
73756
74182
|
var variables = variable.split(/[\s,]+/), i = 0;
|
|
73757
74183
|
for (; i < variables.length; i++) {
|
|
73758
74184
|
variable = variables[i].replace("*", ".*?");
|
|
73759
|
-
if (variable.charAt(0)
|
|
74185
|
+
if ("-" === variable.charAt(0)) {
|
|
73760
74186
|
if (new RegExp("^" + variable.substr(1) + "$").test(name)) {
|
|
73761
74187
|
return false;
|
|
73762
74188
|
}
|
|
@@ -74475,7 +74901,8 @@ var require_http2 = __commonJS({
|
|
|
74475
74901
|
if (auth && auth.bearer) {
|
|
74476
74902
|
headers.Authorization = `Bearer ${auth.bearer}`;
|
|
74477
74903
|
}
|
|
74478
|
-
const req = (this.ssl ? https : http).request(
|
|
74904
|
+
const req = (this.ssl ? https : http).request({
|
|
74905
|
+
...this.options,
|
|
74479
74906
|
method: "POST",
|
|
74480
74907
|
host: this.host,
|
|
74481
74908
|
port: this.port,
|
|
@@ -74483,7 +74910,7 @@ var require_http2 = __commonJS({
|
|
|
74483
74910
|
headers,
|
|
74484
74911
|
auth: auth && auth.username && auth.password ? `${auth.username}:${auth.password}` : "",
|
|
74485
74912
|
agent: this.agent
|
|
74486
|
-
})
|
|
74913
|
+
});
|
|
74487
74914
|
req.on("error", callback);
|
|
74488
74915
|
req.on("response", (res) => res.on("end", () => callback(null, res)).resume());
|
|
74489
74916
|
req.end(Buffer.from(JSON.stringify(options2), "utf8"));
|
|
@@ -74696,15 +75123,15 @@ var require_fn = __commonJS({
|
|
|
74696
75123
|
"use strict";
|
|
74697
75124
|
var toString = Object.prototype.toString;
|
|
74698
75125
|
module2.exports = function name(fn) {
|
|
74699
|
-
if (typeof fn.displayName
|
|
75126
|
+
if ("string" === typeof fn.displayName && fn.constructor.name) {
|
|
74700
75127
|
return fn.displayName;
|
|
74701
|
-
} else if (typeof fn.name
|
|
75128
|
+
} else if ("string" === typeof fn.name && fn.name) {
|
|
74702
75129
|
return fn.name;
|
|
74703
75130
|
}
|
|
74704
|
-
if (typeof fn
|
|
75131
|
+
if ("object" === typeof fn && fn.constructor && "string" === typeof fn.constructor.name)
|
|
74705
75132
|
return fn.constructor.name;
|
|
74706
75133
|
var named = fn.toString(), type = toString.call(fn).slice(8, -1);
|
|
74707
|
-
if (
|
|
75134
|
+
if ("Function" === type) {
|
|
74708
75135
|
named = named.substring(named.indexOf("(") + 1, named.indexOf(")"));
|
|
74709
75136
|
} else {
|
|
74710
75137
|
named = type;
|
|
@@ -78446,9 +78873,9 @@ var require_winston_transport2 = __commonJS({
|
|
|
78446
78873
|
}
|
|
78447
78874
|
});
|
|
78448
78875
|
|
|
78449
|
-
// ../../node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js
|
|
78876
|
+
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js
|
|
78450
78877
|
var require_null_transport = __commonJS({
|
|
78451
|
-
"../../node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js"(exports2) {
|
|
78878
|
+
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js"(exports2) {
|
|
78452
78879
|
"use strict";
|
|
78453
78880
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
78454
78881
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -78465,9 +78892,9 @@ var require_null_transport = __commonJS({
|
|
|
78465
78892
|
}
|
|
78466
78893
|
});
|
|
78467
78894
|
|
|
78468
|
-
// ../../node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js
|
|
78895
|
+
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js
|
|
78469
78896
|
var require_vscode_output_channel_transport = __commonJS({
|
|
78470
|
-
"../../node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js"(exports2) {
|
|
78897
|
+
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js"(exports2) {
|
|
78471
78898
|
"use strict";
|
|
78472
78899
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
78473
78900
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -78494,9 +78921,9 @@ var require_vscode_output_channel_transport = __commonJS({
|
|
|
78494
78921
|
}
|
|
78495
78922
|
});
|
|
78496
78923
|
|
|
78497
|
-
// ../../node_modules/@sap-ux/
|
|
78924
|
+
// ../../node_modules/@sap-ux/store/node_modules/chalk/source/util.js
|
|
78498
78925
|
var require_util4 = __commonJS({
|
|
78499
|
-
"../../node_modules/@sap-ux/
|
|
78926
|
+
"../../node_modules/@sap-ux/store/node_modules/chalk/source/util.js"(exports2, module2) {
|
|
78500
78927
|
"use strict";
|
|
78501
78928
|
var stringReplaceAll = (string, substring, replacer) => {
|
|
78502
78929
|
let index = string.indexOf(substring);
|
|
@@ -78533,9 +78960,9 @@ var require_util4 = __commonJS({
|
|
|
78533
78960
|
}
|
|
78534
78961
|
});
|
|
78535
78962
|
|
|
78536
|
-
// ../../node_modules/@sap-ux/
|
|
78963
|
+
// ../../node_modules/@sap-ux/store/node_modules/chalk/source/templates.js
|
|
78537
78964
|
var require_templates2 = __commonJS({
|
|
78538
|
-
"../../node_modules/@sap-ux/
|
|
78965
|
+
"../../node_modules/@sap-ux/store/node_modules/chalk/source/templates.js"(exports2, module2) {
|
|
78539
78966
|
"use strict";
|
|
78540
78967
|
var TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
|
|
78541
78968
|
var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
|
|
@@ -78647,9 +79074,9 @@ var require_templates2 = __commonJS({
|
|
|
78647
79074
|
}
|
|
78648
79075
|
});
|
|
78649
79076
|
|
|
78650
|
-
// ../../node_modules/@sap-ux/
|
|
79077
|
+
// ../../node_modules/@sap-ux/store/node_modules/chalk/source/index.js
|
|
78651
79078
|
var require_source2 = __commonJS({
|
|
78652
|
-
"../../node_modules/@sap-ux/
|
|
79079
|
+
"../../node_modules/@sap-ux/store/node_modules/chalk/source/index.js"(exports2, module2) {
|
|
78653
79080
|
"use strict";
|
|
78654
79081
|
var ansiStyles = require_ansi_styles();
|
|
78655
79082
|
var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
|
|
@@ -78733,7 +79160,8 @@ var require_source2 = __commonJS({
|
|
|
78733
79160
|
};
|
|
78734
79161
|
}
|
|
78735
79162
|
var proto = Object.defineProperties(() => {
|
|
78736
|
-
},
|
|
79163
|
+
}, {
|
|
79164
|
+
...styles,
|
|
78737
79165
|
level: {
|
|
78738
79166
|
enumerable: true,
|
|
78739
79167
|
get() {
|
|
@@ -78743,7 +79171,7 @@ var require_source2 = __commonJS({
|
|
|
78743
79171
|
this._generator.level = level;
|
|
78744
79172
|
}
|
|
78745
79173
|
}
|
|
78746
|
-
})
|
|
79174
|
+
});
|
|
78747
79175
|
var createStyler = (open, close, parent) => {
|
|
78748
79176
|
let openAll;
|
|
78749
79177
|
let closeAll;
|
|
@@ -78821,10 +79249,38 @@ var require_source2 = __commonJS({
|
|
|
78821
79249
|
}
|
|
78822
79250
|
});
|
|
78823
79251
|
|
|
78824
|
-
// ../../node_modules/@sap-ux/logger/dist/winston-logger/adapter.js
|
|
79252
|
+
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/adapter.js
|
|
78825
79253
|
var require_adapter = __commonJS({
|
|
78826
|
-
"../../node_modules/@sap-ux/logger/dist/winston-logger/adapter.js"(exports2) {
|
|
79254
|
+
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/adapter.js"(exports2) {
|
|
78827
79255
|
"use strict";
|
|
79256
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
79257
|
+
if (k2 === void 0)
|
|
79258
|
+
k2 = k;
|
|
79259
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
79260
|
+
return m[k];
|
|
79261
|
+
} });
|
|
79262
|
+
} : function(o, m, k, k2) {
|
|
79263
|
+
if (k2 === void 0)
|
|
79264
|
+
k2 = k;
|
|
79265
|
+
o[k2] = m[k];
|
|
79266
|
+
});
|
|
79267
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
79268
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
79269
|
+
} : function(o, v) {
|
|
79270
|
+
o["default"] = v;
|
|
79271
|
+
});
|
|
79272
|
+
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
79273
|
+
if (mod && mod.__esModule)
|
|
79274
|
+
return mod;
|
|
79275
|
+
var result2 = {};
|
|
79276
|
+
if (mod != null) {
|
|
79277
|
+
for (var k in mod)
|
|
79278
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
79279
|
+
__createBinding(result2, mod, k);
|
|
79280
|
+
}
|
|
79281
|
+
__setModuleDefault(result2, mod);
|
|
79282
|
+
return result2;
|
|
79283
|
+
};
|
|
78828
79284
|
var __rest = exports2 && exports2.__rest || function(s, e) {
|
|
78829
79285
|
var t = {};
|
|
78830
79286
|
for (var p in s)
|
|
@@ -78843,11 +79299,10 @@ var require_adapter = __commonJS({
|
|
|
78843
79299
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
78844
79300
|
exports2.toWinstonTransport = exports2.toWinstonLogLevel = void 0;
|
|
78845
79301
|
var types_1 = require_types6();
|
|
78846
|
-
var winston_1 =
|
|
79302
|
+
var winston_1 = __importStar(require_winston());
|
|
78847
79303
|
var transports_1 = require_transports();
|
|
78848
79304
|
var null_transport_1 = require_null_transport();
|
|
78849
79305
|
var vscode_output_channel_transport_1 = require_vscode_output_channel_transport();
|
|
78850
|
-
var logform_1 = require_logform();
|
|
78851
79306
|
var util_1 = require("util");
|
|
78852
79307
|
var chalk_1 = __importDefault(require_source2());
|
|
78853
79308
|
function toWinstonLogLevel(logLevel) {
|
|
@@ -78874,8 +79329,8 @@ var require_adapter = __commonJS({
|
|
|
78874
79329
|
return void 0;
|
|
78875
79330
|
}
|
|
78876
79331
|
};
|
|
78877
|
-
var ui5ToolingFormat = (moduleName) =>
|
|
78878
|
-
let msg = typeof message === "string" ? message :
|
|
79332
|
+
var ui5ToolingFormat = (moduleName) => winston_1.format.combine(winston_1.format.colorize(), winston_1.format.label({ label: moduleName }), winston_1.format.printf(({ level, message, label }) => {
|
|
79333
|
+
let msg = typeof message === "string" ? message : util_1.inspect(message);
|
|
78879
79334
|
msg = msg.split(/\r?\n/).join(`
|
|
78880
79335
|
${level} ${chalk_1.default.magenta(label)} `);
|
|
78881
79336
|
return `${level} ${chalk_1.default.magenta(label)} ${msg}`;
|
|
@@ -78900,11 +79355,11 @@ ${level} ${chalk_1.default.magenta(label)} `);
|
|
|
78900
79355
|
}
|
|
78901
79356
|
return l;
|
|
78902
79357
|
};
|
|
78903
|
-
var consoleFormat =
|
|
79358
|
+
var consoleFormat = winston_1.format.combine(winston_1.format.timestamp({ format: "YYYY-MM-DD HH:mm:ss" }), winston_1.format.printf((_a2) => {
|
|
78904
79359
|
var { timestamp, level, message, label, labelColor } = _a2, meta = __rest(_a2, ["timestamp", "level", "message", "label", "labelColor"]);
|
|
78905
|
-
const msg = typeof message === "string" ? message :
|
|
79360
|
+
const msg = typeof message === "string" ? message : util_1.inspect(message);
|
|
78906
79361
|
const lvl = decorateLevel(level);
|
|
78907
|
-
return `${timestamp} ${lvl} ${decorateLabel(label, labelColor)}: ${msg} ${Object.keys(meta).length ?
|
|
79362
|
+
return `${timestamp} ${lvl} ${decorateLabel(label, labelColor)}: ${msg} ${Object.keys(meta).length ? util_1.inspect(meta) : ""}`;
|
|
78908
79363
|
}));
|
|
78909
79364
|
function toWinstonTransport(transport) {
|
|
78910
79365
|
if (transport instanceof transports_1.NullTransport) {
|
|
@@ -78925,9 +79380,9 @@ ${level} ${chalk_1.default.magenta(label)} `);
|
|
|
78925
79380
|
}
|
|
78926
79381
|
});
|
|
78927
79382
|
|
|
78928
|
-
// ../../node_modules/@sap-ux/logger/dist/winston-logger/utils.js
|
|
79383
|
+
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/utils.js
|
|
78929
79384
|
var require_utils11 = __commonJS({
|
|
78930
|
-
"../../node_modules/@sap-ux/logger/dist/winston-logger/utils.js"(exports2) {
|
|
79385
|
+
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/utils.js"(exports2) {
|
|
78931
79386
|
"use strict";
|
|
78932
79387
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
78933
79388
|
exports2.nextColor = void 0;
|
|
@@ -78942,25 +79397,48 @@ var require_utils11 = __commonJS({
|
|
|
78942
79397
|
}
|
|
78943
79398
|
}
|
|
78944
79399
|
var colorGenerator = color();
|
|
78945
|
-
|
|
78946
|
-
exports2.nextColor = nextColor;
|
|
79400
|
+
exports2.nextColor = () => colorGenerator.next().value;
|
|
78947
79401
|
}
|
|
78948
79402
|
});
|
|
78949
79403
|
|
|
78950
|
-
// ../../node_modules/@sap-ux/logger/dist/winston-logger/logger.js
|
|
79404
|
+
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/logger.js
|
|
78951
79405
|
var require_logger2 = __commonJS({
|
|
78952
|
-
"../../node_modules/@sap-ux/logger/dist/winston-logger/logger.js"(exports2) {
|
|
79406
|
+
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/logger.js"(exports2) {
|
|
78953
79407
|
"use strict";
|
|
78954
|
-
var
|
|
78955
|
-
|
|
79408
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
79409
|
+
if (k2 === void 0)
|
|
79410
|
+
k2 = k;
|
|
79411
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
79412
|
+
return m[k];
|
|
79413
|
+
} });
|
|
79414
|
+
} : function(o, m, k, k2) {
|
|
79415
|
+
if (k2 === void 0)
|
|
79416
|
+
k2 = k;
|
|
79417
|
+
o[k2] = m[k];
|
|
79418
|
+
});
|
|
79419
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
79420
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
79421
|
+
} : function(o, v) {
|
|
79422
|
+
o["default"] = v;
|
|
79423
|
+
});
|
|
79424
|
+
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
79425
|
+
if (mod && mod.__esModule)
|
|
79426
|
+
return mod;
|
|
79427
|
+
var result2 = {};
|
|
79428
|
+
if (mod != null) {
|
|
79429
|
+
for (var k in mod)
|
|
79430
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
79431
|
+
__createBinding(result2, mod, k);
|
|
79432
|
+
}
|
|
79433
|
+
__setModuleDefault(result2, mod);
|
|
79434
|
+
return result2;
|
|
78956
79435
|
};
|
|
78957
79436
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
78958
79437
|
exports2.WinstonLogger = void 0;
|
|
78959
79438
|
var transports_1 = require_transports();
|
|
78960
79439
|
var types_1 = require_types6();
|
|
78961
|
-
var winston_1 =
|
|
79440
|
+
var winston_1 = __importStar(require_winston());
|
|
78962
79441
|
var adapter_1 = require_adapter();
|
|
78963
|
-
var logform_1 = require_logform();
|
|
78964
79442
|
var utils_1 = require_utils11();
|
|
78965
79443
|
var util_1 = require("util");
|
|
78966
79444
|
var defaultLoggerOptions = {
|
|
@@ -78994,16 +79472,16 @@ var require_logger2 = __commonJS({
|
|
|
78994
79472
|
if (typeof data2 === "string") {
|
|
78995
79473
|
this.winstonLog({ level: this.winstonLevel, message: data2, metadata: this.metadataOverride });
|
|
78996
79474
|
} else {
|
|
78997
|
-
const level = (_a2 =
|
|
79475
|
+
const level = (_a2 = adapter_1.toWinstonLogLevel(data2.level)) !== null && _a2 !== void 0 ? _a2 : this._logger.level;
|
|
78998
79476
|
this.winstonLog({ level, message: data2.message, metadata: this.metadataOverride });
|
|
78999
79477
|
}
|
|
79000
79478
|
}
|
|
79001
79479
|
winstonLog({ level, message, metadata }) {
|
|
79002
|
-
const msg = typeof message === "string" ? message :
|
|
79480
|
+
const msg = typeof message === "string" ? message : util_1.inspect(message);
|
|
79003
79481
|
this._logger.log(level, msg, metadata);
|
|
79004
79482
|
}
|
|
79005
79483
|
addToMap(transportMap, transport) {
|
|
79006
|
-
const winstonTransport =
|
|
79484
|
+
const winstonTransport = adapter_1.toWinstonTransport(transport);
|
|
79007
79485
|
if (!transportMap.has(transport)) {
|
|
79008
79486
|
transportMap.set(transport, winstonTransport);
|
|
79009
79487
|
return winstonTransport;
|
|
@@ -79032,7 +79510,7 @@ var require_logger2 = __commonJS({
|
|
|
79032
79510
|
}
|
|
79033
79511
|
child({ logPrefix }) {
|
|
79034
79512
|
const childLogPrefix = `${this.logPrefix}.${logPrefix}`;
|
|
79035
|
-
const metadataOverride = { label: childLogPrefix, labelColor:
|
|
79513
|
+
const metadataOverride = { label: childLogPrefix, labelColor: utils_1.nextColor() };
|
|
79036
79514
|
const childWinstonLogger = this._logger.child(metadataOverride);
|
|
79037
79515
|
const childLogger = new BaseWinstonLogger();
|
|
79038
79516
|
childLogger.initialize({
|
|
@@ -79050,12 +79528,12 @@ var require_logger2 = __commonJS({
|
|
|
79050
79528
|
super();
|
|
79051
79529
|
const transportMap = /* @__PURE__ */ new Map();
|
|
79052
79530
|
transports.forEach((t) => this.addToMap(transportMap, t));
|
|
79053
|
-
const level =
|
|
79531
|
+
const level = adapter_1.toWinstonLogLevel(logLevel);
|
|
79054
79532
|
const logger = winston_1.default.createLogger({
|
|
79055
79533
|
level,
|
|
79056
79534
|
transports: Array.from(transportMap.values()),
|
|
79057
|
-
format:
|
|
79058
|
-
defaultMeta: { label: logPrefix, labelColor:
|
|
79535
|
+
format: winston_1.format.combine(winston_1.format.timestamp(), winston_1.format.json()),
|
|
79536
|
+
defaultMeta: { label: logPrefix, labelColor: utils_1.nextColor() }
|
|
79059
79537
|
});
|
|
79060
79538
|
const winstonLevel = level !== null && level !== void 0 ? level : logger.level;
|
|
79061
79539
|
this.initialize({ logger, transportMap, winstonLevel, logPrefix });
|
|
@@ -79065,9 +79543,9 @@ var require_logger2 = __commonJS({
|
|
|
79065
79543
|
}
|
|
79066
79544
|
});
|
|
79067
79545
|
|
|
79068
|
-
// ../../node_modules/@sap-ux/logger/dist/winston-logger/index.js
|
|
79546
|
+
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/index.js
|
|
79069
79547
|
var require_winston_logger = __commonJS({
|
|
79070
|
-
"../../node_modules/@sap-ux/logger/dist/winston-logger/index.js"(exports2) {
|
|
79548
|
+
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/winston-logger/index.js"(exports2) {
|
|
79071
79549
|
"use strict";
|
|
79072
79550
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
79073
79551
|
exports2.WinstonLogger = void 0;
|
|
@@ -79078,9 +79556,9 @@ var require_winston_logger = __commonJS({
|
|
|
79078
79556
|
}
|
|
79079
79557
|
});
|
|
79080
79558
|
|
|
79081
|
-
// ../../node_modules/@sap-ux/logger/dist/index.js
|
|
79559
|
+
// ../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/index.js
|
|
79082
79560
|
var require_dist8 = __commonJS({
|
|
79083
|
-
"../../node_modules/@sap-ux/logger/dist/index.js"(exports2) {
|
|
79561
|
+
"../../node_modules/@sap-ux/store/node_modules/@sap-ux/logger/dist/index.js"(exports2) {
|
|
79084
79562
|
"use strict";
|
|
79085
79563
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
79086
79564
|
if (k2 === void 0)
|
|
@@ -79116,8 +79594,7 @@ var require_defaults2 = __commonJS({
|
|
|
79116
79594
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
79117
79595
|
exports2.getDefaultLogger = void 0;
|
|
79118
79596
|
var logger_1 = require_dist8();
|
|
79119
|
-
|
|
79120
|
-
exports2.getDefaultLogger = getDefaultLogger;
|
|
79597
|
+
exports2.getDefaultLogger = () => new logger_1.ToolsLogger({ transports: [new logger_1.ConsoleTransport()] });
|
|
79121
79598
|
}
|
|
79122
79599
|
});
|
|
79123
79600
|
|
|
@@ -79126,11 +79603,15 @@ var require_services2 = __commonJS({
|
|
|
79126
79603
|
"../../node_modules/@sap-ux/store/dist/services/index.js"(exports2) {
|
|
79127
79604
|
"use strict";
|
|
79128
79605
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
79129
|
-
exports2.SystemService = void 0;
|
|
79606
|
+
exports2.ApiHubSettingsService = exports2.SystemService = void 0;
|
|
79130
79607
|
var backend_system_1 = require_backend_system6();
|
|
79131
79608
|
Object.defineProperty(exports2, "SystemService", { enumerable: true, get: function() {
|
|
79132
79609
|
return backend_system_1.SystemService;
|
|
79133
79610
|
} });
|
|
79611
|
+
var api_hub_1 = require_api_hub4();
|
|
79612
|
+
Object.defineProperty(exports2, "ApiHubSettingsService", { enumerable: true, get: function() {
|
|
79613
|
+
return api_hub_1.ApiHubSettingsService;
|
|
79614
|
+
} });
|
|
79134
79615
|
}
|
|
79135
79616
|
});
|
|
79136
79617
|
|
|
@@ -79196,34 +79677,36 @@ var require_dist9 = __commonJS({
|
|
|
79196
79677
|
};
|
|
79197
79678
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
79198
79679
|
exports2.Entity = exports2.getFilesystemWatcherFor = exports2.getService = void 0;
|
|
79199
|
-
var
|
|
79680
|
+
var constants_1 = require_constants5();
|
|
79200
79681
|
Object.defineProperty(exports2, "Entity", { enumerable: true, get: function() {
|
|
79201
|
-
return
|
|
79682
|
+
return constants_1.Entity;
|
|
79202
79683
|
} });
|
|
79203
79684
|
var i18n_1 = require_i18n4();
|
|
79204
79685
|
var backend_system_1 = require_backend_system6();
|
|
79205
79686
|
var telemetry_setting_1 = require_telemetry_setting3();
|
|
79687
|
+
var api_hub_1 = require_api_hub4();
|
|
79206
79688
|
var defaults_1 = require_defaults2();
|
|
79207
79689
|
var services = {
|
|
79208
79690
|
system: backend_system_1.getInstance,
|
|
79209
|
-
telemetrySetting: telemetry_setting_1.getInstance
|
|
79691
|
+
telemetrySetting: telemetry_setting_1.getInstance,
|
|
79692
|
+
"api-hub": api_hub_1.getInstance
|
|
79210
79693
|
};
|
|
79211
|
-
function getService({ logger =
|
|
79694
|
+
function getService({ logger = defaults_1.getDefaultLogger(), entityName, options: options2 = {} }) {
|
|
79212
79695
|
return __awaiter(this, void 0, void 0, function* () {
|
|
79213
|
-
yield
|
|
79696
|
+
yield i18n_1.initI18n();
|
|
79214
79697
|
const factory = services[entityName];
|
|
79215
79698
|
if (factory) {
|
|
79216
79699
|
return factory(logger, options2);
|
|
79217
79700
|
} else {
|
|
79218
|
-
throw new Error(
|
|
79701
|
+
throw new Error(i18n_1.text("error.unsupportedEntity", { entityName }));
|
|
79219
79702
|
}
|
|
79220
79703
|
});
|
|
79221
79704
|
}
|
|
79222
79705
|
exports2.getService = getService;
|
|
79223
79706
|
__exportStar(require_services2(), exports2);
|
|
79224
|
-
__exportStar(require_secure_store2(), exports2);
|
|
79225
79707
|
__exportStar(require_backend_system4(), exports2);
|
|
79226
79708
|
__exportStar(require_telemetry_setting(), exports2);
|
|
79709
|
+
__exportStar(require_api_hub2(), exports2);
|
|
79227
79710
|
var data_access_1 = require_data_access2();
|
|
79228
79711
|
Object.defineProperty(exports2, "getFilesystemWatcherFor", { enumerable: true, get: function() {
|
|
79229
79712
|
return data_access_1.getFilesystemWatcherFor;
|
|
@@ -79654,8 +80137,14 @@ var require_paramProcessing = __commonJS({
|
|
|
79654
80137
|
if (Array.isArray(instructions)) {
|
|
79655
80138
|
for (const instruction of instructions) {
|
|
79656
80139
|
[processedDimensions, processedMeasurements] = exports2.paramsProcessing(params, instruction);
|
|
79657
|
-
customDimensions =
|
|
79658
|
-
|
|
80140
|
+
customDimensions = {
|
|
80141
|
+
...customDimensions,
|
|
80142
|
+
...processedDimensions
|
|
80143
|
+
};
|
|
80144
|
+
customMeasurements = {
|
|
80145
|
+
...customMeasurements,
|
|
80146
|
+
...processedMeasurements
|
|
80147
|
+
};
|
|
79659
80148
|
}
|
|
79660
80149
|
} else {
|
|
79661
80150
|
[customDimensions, customMeasurements] = exports2.paramsProcessing(params, instructions);
|
|
@@ -79836,9 +80325,9 @@ var require_src7 = __commonJS({
|
|
|
79836
80325
|
}
|
|
79837
80326
|
});
|
|
79838
80327
|
|
|
79839
|
-
// ../../node_modules/
|
|
80328
|
+
// ../../node_modules/@ui5/logger/node_modules/are-we-there-yet/tracker-base.js
|
|
79840
80329
|
var require_tracker_base = __commonJS({
|
|
79841
|
-
"../../node_modules/
|
|
80330
|
+
"../../node_modules/@ui5/logger/node_modules/are-we-there-yet/tracker-base.js"(exports2, module2) {
|
|
79842
80331
|
"use strict";
|
|
79843
80332
|
var EventEmitter3 = require("events").EventEmitter;
|
|
79844
80333
|
var util = require("util");
|
|
@@ -79852,9 +80341,9 @@ var require_tracker_base = __commonJS({
|
|
|
79852
80341
|
}
|
|
79853
80342
|
});
|
|
79854
80343
|
|
|
79855
|
-
// ../../node_modules/
|
|
80344
|
+
// ../../node_modules/@ui5/logger/node_modules/are-we-there-yet/tracker.js
|
|
79856
80345
|
var require_tracker = __commonJS({
|
|
79857
|
-
"../../node_modules/
|
|
80346
|
+
"../../node_modules/@ui5/logger/node_modules/are-we-there-yet/tracker.js"(exports2, module2) {
|
|
79858
80347
|
"use strict";
|
|
79859
80348
|
var util = require("util");
|
|
79860
80349
|
var TrackerBase = require_tracker_base();
|
|
@@ -81343,7 +81832,7 @@ var require_stream_readable4 = __commonJS({
|
|
|
81343
81832
|
debug("ondata");
|
|
81344
81833
|
increasedAwaitDrain = false;
|
|
81345
81834
|
var ret = dest.write(chunk);
|
|
81346
|
-
if (
|
|
81835
|
+
if (false === ret && !increasedAwaitDrain) {
|
|
81347
81836
|
if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {
|
|
81348
81837
|
debug("false write response, pause", src._readableState.awaitDrain);
|
|
81349
81838
|
src._readableState.awaitDrain++;
|
|
@@ -81485,7 +81974,7 @@ var require_stream_readable4 = __commonJS({
|
|
|
81485
81974
|
}
|
|
81486
81975
|
Readable.prototype.pause = function() {
|
|
81487
81976
|
debug("call pause flowing=%j", this._readableState.flowing);
|
|
81488
|
-
if (this._readableState.flowing
|
|
81977
|
+
if (false !== this._readableState.flowing) {
|
|
81489
81978
|
debug("pause");
|
|
81490
81979
|
this._readableState.flowing = false;
|
|
81491
81980
|
this.emit("pause");
|
|
@@ -81871,7 +82360,7 @@ var require_delegates = __commonJS({
|
|
|
81871
82360
|
var target = this.target;
|
|
81872
82361
|
this.fluents.push(name);
|
|
81873
82362
|
proto[name] = function(val) {
|
|
81874
|
-
if (typeof val
|
|
82363
|
+
if ("undefined" != typeof val) {
|
|
81875
82364
|
this[target][name] = val;
|
|
81876
82365
|
return this;
|
|
81877
82366
|
} else {
|
|
@@ -81883,9 +82372,9 @@ var require_delegates = __commonJS({
|
|
|
81883
82372
|
}
|
|
81884
82373
|
});
|
|
81885
82374
|
|
|
81886
|
-
// ../../node_modules/
|
|
82375
|
+
// ../../node_modules/@ui5/logger/node_modules/are-we-there-yet/tracker-stream.js
|
|
81887
82376
|
var require_tracker_stream = __commonJS({
|
|
81888
|
-
"../../node_modules/
|
|
82377
|
+
"../../node_modules/@ui5/logger/node_modules/are-we-there-yet/tracker-stream.js"(exports2, module2) {
|
|
81889
82378
|
"use strict";
|
|
81890
82379
|
var util = require("util");
|
|
81891
82380
|
var stream = require_readable2();
|
|
@@ -81917,9 +82406,9 @@ var require_tracker_stream = __commonJS({
|
|
|
81917
82406
|
}
|
|
81918
82407
|
});
|
|
81919
82408
|
|
|
81920
|
-
// ../../node_modules/
|
|
82409
|
+
// ../../node_modules/@ui5/logger/node_modules/are-we-there-yet/tracker-group.js
|
|
81921
82410
|
var require_tracker_group = __commonJS({
|
|
81922
|
-
"../../node_modules/
|
|
82411
|
+
"../../node_modules/@ui5/logger/node_modules/are-we-there-yet/tracker-group.js"(exports2, module2) {
|
|
81923
82412
|
"use strict";
|
|
81924
82413
|
var util = require("util");
|
|
81925
82414
|
var TrackerBase = require_tracker_base();
|
|
@@ -82021,9 +82510,9 @@ var require_tracker_group = __commonJS({
|
|
|
82021
82510
|
}
|
|
82022
82511
|
});
|
|
82023
82512
|
|
|
82024
|
-
// ../../node_modules/
|
|
82513
|
+
// ../../node_modules/@ui5/logger/node_modules/are-we-there-yet/index.js
|
|
82025
82514
|
var require_are_we_there_yet = __commonJS({
|
|
82026
|
-
"../../node_modules/
|
|
82515
|
+
"../../node_modules/@ui5/logger/node_modules/are-we-there-yet/index.js"(exports2) {
|
|
82027
82516
|
"use strict";
|
|
82028
82517
|
exports2.TrackerGroup = require_tracker_group();
|
|
82029
82518
|
exports2.Tracker = require_tracker();
|
|
@@ -82153,18 +82642,18 @@ var require_ansi_regex = __commonJS({
|
|
|
82153
82642
|
}
|
|
82154
82643
|
});
|
|
82155
82644
|
|
|
82156
|
-
// ../../node_modules/
|
|
82645
|
+
// ../../node_modules/@ui5/logger/node_modules/wide-align/node_modules/strip-ansi/index.js
|
|
82157
82646
|
var require_strip_ansi = __commonJS({
|
|
82158
|
-
"../../node_modules/
|
|
82647
|
+
"../../node_modules/@ui5/logger/node_modules/wide-align/node_modules/strip-ansi/index.js"(exports2, module2) {
|
|
82159
82648
|
"use strict";
|
|
82160
82649
|
var ansiRegex = require_ansi_regex();
|
|
82161
82650
|
module2.exports = (input) => typeof input === "string" ? input.replace(ansiRegex(), "") : input;
|
|
82162
82651
|
}
|
|
82163
82652
|
});
|
|
82164
82653
|
|
|
82165
|
-
// ../../node_modules/
|
|
82654
|
+
// ../../node_modules/@ui5/logger/node_modules/wide-align/node_modules/is-fullwidth-code-point/index.js
|
|
82166
82655
|
var require_is_fullwidth_code_point = __commonJS({
|
|
82167
|
-
"../../node_modules/
|
|
82656
|
+
"../../node_modules/@ui5/logger/node_modules/wide-align/node_modules/is-fullwidth-code-point/index.js"(exports2, module2) {
|
|
82168
82657
|
"use strict";
|
|
82169
82658
|
module2.exports = (x) => {
|
|
82170
82659
|
if (Number.isNaN(x)) {
|
|
@@ -82178,9 +82667,9 @@ var require_is_fullwidth_code_point = __commonJS({
|
|
|
82178
82667
|
}
|
|
82179
82668
|
});
|
|
82180
82669
|
|
|
82181
|
-
// ../../node_modules/
|
|
82670
|
+
// ../../node_modules/@ui5/logger/node_modules/wide-align/node_modules/string-width/index.js
|
|
82182
82671
|
var require_string_width = __commonJS({
|
|
82183
|
-
"../../node_modules/
|
|
82672
|
+
"../../node_modules/@ui5/logger/node_modules/wide-align/node_modules/string-width/index.js"(exports2, module2) {
|
|
82184
82673
|
"use strict";
|
|
82185
82674
|
var stripAnsi = require_strip_ansi();
|
|
82186
82675
|
var isFullwidthCodePoint = require_is_fullwidth_code_point();
|
|
@@ -82208,9 +82697,9 @@ var require_string_width = __commonJS({
|
|
|
82208
82697
|
}
|
|
82209
82698
|
});
|
|
82210
82699
|
|
|
82211
|
-
// ../../node_modules/
|
|
82700
|
+
// ../../node_modules/@ui5/logger/node_modules/wide-align/align.js
|
|
82212
82701
|
var require_align2 = __commonJS({
|
|
82213
|
-
"../../node_modules/
|
|
82702
|
+
"../../node_modules/@ui5/logger/node_modules/wide-align/align.js"(exports2) {
|
|
82214
82703
|
"use strict";
|
|
82215
82704
|
var stringWidth = require_string_width();
|
|
82216
82705
|
exports2.center = alignCenter;
|
|
@@ -82466,9 +82955,9 @@ var require_object_assign = __commonJS({
|
|
|
82466
82955
|
}
|
|
82467
82956
|
});
|
|
82468
82957
|
|
|
82469
|
-
// ../../node_modules/
|
|
82958
|
+
// ../../node_modules/@ui5/logger/node_modules/strip-ansi/index.js
|
|
82470
82959
|
var require_strip_ansi2 = __commonJS({
|
|
82471
|
-
"../../node_modules/
|
|
82960
|
+
"../../node_modules/@ui5/logger/node_modules/strip-ansi/index.js"(exports2, module2) {
|
|
82472
82961
|
"use strict";
|
|
82473
82962
|
var ansiRegex = require_ansi_regex()();
|
|
82474
82963
|
module2.exports = function(str) {
|
|
@@ -82516,16 +83005,16 @@ var require_number_is_nan = __commonJS({
|
|
|
82516
83005
|
}
|
|
82517
83006
|
});
|
|
82518
83007
|
|
|
82519
|
-
// ../../node_modules/
|
|
83008
|
+
// ../../node_modules/@ui5/logger/node_modules/is-fullwidth-code-point/index.js
|
|
82520
83009
|
var require_is_fullwidth_code_point2 = __commonJS({
|
|
82521
|
-
"../../node_modules/
|
|
83010
|
+
"../../node_modules/@ui5/logger/node_modules/is-fullwidth-code-point/index.js"(exports2, module2) {
|
|
82522
83011
|
"use strict";
|
|
82523
83012
|
var numberIsNan = require_number_is_nan();
|
|
82524
83013
|
module2.exports = function(x) {
|
|
82525
83014
|
if (numberIsNan(x)) {
|
|
82526
83015
|
return false;
|
|
82527
83016
|
}
|
|
82528
|
-
if (x >= 4352 && (x <= 4447 ||
|
|
83017
|
+
if (x >= 4352 && (x <= 4447 || 9001 === x || 9002 === x || 11904 <= x && x <= 12871 && x !== 12351 || 12880 <= x && x <= 19903 || 19968 <= x && x <= 42182 || 43360 <= x && x <= 43388 || 44032 <= x && x <= 55203 || 63744 <= x && x <= 64255 || 65040 <= x && x <= 65049 || 65072 <= x && x <= 65131 || 65281 <= x && x <= 65376 || 65504 <= x && x <= 65510 || 110592 <= x && x <= 110593 || 127488 <= x && x <= 127569 || 131072 <= x && x <= 262141)) {
|
|
82529
83018
|
return true;
|
|
82530
83019
|
}
|
|
82531
83020
|
return false;
|
|
@@ -82533,9 +83022,9 @@ var require_is_fullwidth_code_point2 = __commonJS({
|
|
|
82533
83022
|
}
|
|
82534
83023
|
});
|
|
82535
83024
|
|
|
82536
|
-
// ../../node_modules/
|
|
83025
|
+
// ../../node_modules/@ui5/logger/node_modules/string-width/index.js
|
|
82537
83026
|
var require_string_width2 = __commonJS({
|
|
82538
|
-
"../../node_modules/
|
|
83027
|
+
"../../node_modules/@ui5/logger/node_modules/string-width/index.js"(exports2, module2) {
|
|
82539
83028
|
"use strict";
|
|
82540
83029
|
var stripAnsi = require_strip_ansi2();
|
|
82541
83030
|
var codePointAt = require_code_point_at();
|
|
@@ -82565,9 +83054,9 @@ var require_string_width2 = __commonJS({
|
|
|
82565
83054
|
}
|
|
82566
83055
|
});
|
|
82567
83056
|
|
|
82568
|
-
// ../../node_modules/gauge/wide-truncate.js
|
|
83057
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/wide-truncate.js
|
|
82569
83058
|
var require_wide_truncate = __commonJS({
|
|
82570
|
-
"../../node_modules/gauge/wide-truncate.js"(exports2, module2) {
|
|
83059
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/wide-truncate.js"(exports2, module2) {
|
|
82571
83060
|
"use strict";
|
|
82572
83061
|
var stringWidth = require_string_width2();
|
|
82573
83062
|
var stripAnsi = require_strip_ansi2();
|
|
@@ -82590,9 +83079,9 @@ var require_wide_truncate = __commonJS({
|
|
|
82590
83079
|
}
|
|
82591
83080
|
});
|
|
82592
83081
|
|
|
82593
|
-
// ../../node_modules/gauge/error.js
|
|
83082
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/error.js
|
|
82594
83083
|
var require_error3 = __commonJS({
|
|
82595
|
-
"../../node_modules/gauge/error.js"(exports2) {
|
|
83084
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/error.js"(exports2) {
|
|
82596
83085
|
"use strict";
|
|
82597
83086
|
var util = require("util");
|
|
82598
83087
|
var User = exports2.User = function User2(msg) {
|
|
@@ -82617,9 +83106,9 @@ var require_error3 = __commonJS({
|
|
|
82617
83106
|
}
|
|
82618
83107
|
});
|
|
82619
83108
|
|
|
82620
|
-
// ../../node_modules/gauge/template-item.js
|
|
83109
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/template-item.js
|
|
82621
83110
|
var require_template_item = __commonJS({
|
|
82622
|
-
"../../node_modules/gauge/template-item.js"(exports2, module2) {
|
|
83111
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/template-item.js"(exports2, module2) {
|
|
82623
83112
|
"use strict";
|
|
82624
83113
|
var stringWidth = require_string_width2();
|
|
82625
83114
|
module2.exports = TemplateItem;
|
|
@@ -82690,9 +83179,9 @@ var require_template_item = __commonJS({
|
|
|
82690
83179
|
}
|
|
82691
83180
|
});
|
|
82692
83181
|
|
|
82693
|
-
// ../../node_modules/gauge/render-template.js
|
|
83182
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/render-template.js
|
|
82694
83183
|
var require_render_template = __commonJS({
|
|
82695
|
-
"../../node_modules/gauge/render-template.js"(exports2, module2) {
|
|
83184
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/render-template.js"(exports2, module2) {
|
|
82696
83185
|
"use strict";
|
|
82697
83186
|
var align = require_align2();
|
|
82698
83187
|
var validate = require_aproba();
|
|
@@ -82880,9 +83369,9 @@ var require_render_template = __commonJS({
|
|
|
82880
83369
|
}
|
|
82881
83370
|
});
|
|
82882
83371
|
|
|
82883
|
-
// ../../node_modules/gauge/plumbing.js
|
|
83372
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/plumbing.js
|
|
82884
83373
|
var require_plumbing = __commonJS({
|
|
82885
|
-
"../../node_modules/gauge/plumbing.js"(exports2, module2) {
|
|
83374
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/plumbing.js"(exports2, module2) {
|
|
82886
83375
|
"use strict";
|
|
82887
83376
|
var consoleControl = require_console_control_strings();
|
|
82888
83377
|
var renderTemplate = require_render_template();
|
|
@@ -82940,9 +83429,9 @@ var require_has_unicode = __commonJS({
|
|
|
82940
83429
|
}
|
|
82941
83430
|
});
|
|
82942
83431
|
|
|
82943
|
-
// ../../node_modules/gauge/has-color.js
|
|
83432
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/has-color.js
|
|
82944
83433
|
var require_has_color = __commonJS({
|
|
82945
|
-
"../../node_modules/gauge/has-color.js"(exports2, module2) {
|
|
83434
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/has-color.js"(exports2, module2) {
|
|
82946
83435
|
"use strict";
|
|
82947
83436
|
module2.exports = isWin32() || isColorTerm();
|
|
82948
83437
|
function isWin32() {
|
|
@@ -83098,9 +83587,9 @@ var require_signal_exit = __commonJS({
|
|
|
83098
83587
|
}
|
|
83099
83588
|
});
|
|
83100
83589
|
|
|
83101
|
-
// ../../node_modules/gauge/spin.js
|
|
83590
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/spin.js
|
|
83102
83591
|
var require_spin = __commonJS({
|
|
83103
|
-
"../../node_modules/gauge/spin.js"(exports2, module2) {
|
|
83592
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/spin.js"(exports2, module2) {
|
|
83104
83593
|
"use strict";
|
|
83105
83594
|
module2.exports = function spin(spinstr, spun) {
|
|
83106
83595
|
return spinstr[spun % spinstr.length];
|
|
@@ -83108,9 +83597,9 @@ var require_spin = __commonJS({
|
|
|
83108
83597
|
}
|
|
83109
83598
|
});
|
|
83110
83599
|
|
|
83111
|
-
// ../../node_modules/gauge/progress-bar.js
|
|
83600
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/progress-bar.js
|
|
83112
83601
|
var require_progress_bar = __commonJS({
|
|
83113
|
-
"../../node_modules/gauge/progress-bar.js"(exports2, module2) {
|
|
83602
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/progress-bar.js"(exports2, module2) {
|
|
83114
83603
|
"use strict";
|
|
83115
83604
|
var validate = require_aproba();
|
|
83116
83605
|
var renderTemplate = require_render_template();
|
|
@@ -83147,9 +83636,9 @@ var require_progress_bar = __commonJS({
|
|
|
83147
83636
|
}
|
|
83148
83637
|
});
|
|
83149
83638
|
|
|
83150
|
-
// ../../node_modules/gauge/base-theme.js
|
|
83639
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/base-theme.js
|
|
83151
83640
|
var require_base_theme = __commonJS({
|
|
83152
|
-
"../../node_modules/gauge/base-theme.js"(exports2, module2) {
|
|
83641
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/base-theme.js"(exports2, module2) {
|
|
83153
83642
|
"use strict";
|
|
83154
83643
|
var spin = require_spin();
|
|
83155
83644
|
var progressBar = require_progress_bar();
|
|
@@ -83168,9 +83657,9 @@ var require_base_theme = __commonJS({
|
|
|
83168
83657
|
}
|
|
83169
83658
|
});
|
|
83170
83659
|
|
|
83171
|
-
// ../../node_modules/gauge/theme-set.js
|
|
83660
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/theme-set.js
|
|
83172
83661
|
var require_theme_set = __commonJS({
|
|
83173
|
-
"../../node_modules/gauge/theme-set.js"(exports2, module2) {
|
|
83662
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/theme-set.js"(exports2, module2) {
|
|
83174
83663
|
"use strict";
|
|
83175
83664
|
var objectAssign = require_object_assign();
|
|
83176
83665
|
module2.exports = function() {
|
|
@@ -83275,9 +83764,9 @@ var require_theme_set = __commonJS({
|
|
|
83275
83764
|
}
|
|
83276
83765
|
});
|
|
83277
83766
|
|
|
83278
|
-
// ../../node_modules/gauge/themes.js
|
|
83767
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/themes.js
|
|
83279
83768
|
var require_themes = __commonJS({
|
|
83280
|
-
"../../node_modules/gauge/themes.js"(exports2, module2) {
|
|
83769
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/themes.js"(exports2, module2) {
|
|
83281
83770
|
"use strict";
|
|
83282
83771
|
var consoleControl = require_console_control_strings();
|
|
83283
83772
|
var ThemeSet = require_theme_set();
|
|
@@ -83329,25 +83818,25 @@ var require_themes = __commonJS({
|
|
|
83329
83818
|
}
|
|
83330
83819
|
});
|
|
83331
83820
|
|
|
83332
|
-
// ../../node_modules/gauge/set-interval.js
|
|
83821
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/set-interval.js
|
|
83333
83822
|
var require_set_interval = __commonJS({
|
|
83334
|
-
"../../node_modules/gauge/set-interval.js"(exports2, module2) {
|
|
83823
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/set-interval.js"(exports2, module2) {
|
|
83335
83824
|
"use strict";
|
|
83336
83825
|
module2.exports = setInterval;
|
|
83337
83826
|
}
|
|
83338
83827
|
});
|
|
83339
83828
|
|
|
83340
|
-
// ../../node_modules/gauge/process.js
|
|
83829
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/process.js
|
|
83341
83830
|
var require_process = __commonJS({
|
|
83342
|
-
"../../node_modules/gauge/process.js"(exports2, module2) {
|
|
83831
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/process.js"(exports2, module2) {
|
|
83343
83832
|
"use strict";
|
|
83344
83833
|
module2.exports = process;
|
|
83345
83834
|
}
|
|
83346
83835
|
});
|
|
83347
83836
|
|
|
83348
|
-
// ../../node_modules/gauge/set-immediate.js
|
|
83837
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/set-immediate.js
|
|
83349
83838
|
var require_set_immediate = __commonJS({
|
|
83350
|
-
"../../node_modules/gauge/set-immediate.js"(exports2, module2) {
|
|
83839
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/set-immediate.js"(exports2, module2) {
|
|
83351
83840
|
"use strict";
|
|
83352
83841
|
var process2 = require_process();
|
|
83353
83842
|
try {
|
|
@@ -83358,9 +83847,9 @@ var require_set_immediate = __commonJS({
|
|
|
83358
83847
|
}
|
|
83359
83848
|
});
|
|
83360
83849
|
|
|
83361
|
-
// ../../node_modules/gauge/index.js
|
|
83850
|
+
// ../../node_modules/@ui5/logger/node_modules/gauge/index.js
|
|
83362
83851
|
var require_gauge = __commonJS({
|
|
83363
|
-
"../../node_modules/gauge/index.js"(exports2, module2) {
|
|
83852
|
+
"../../node_modules/@ui5/logger/node_modules/gauge/index.js"(exports2, module2) {
|
|
83364
83853
|
"use strict";
|
|
83365
83854
|
var Plumbing = require_plumbing();
|
|
83366
83855
|
var hasUnicode = require_has_unicode();
|
|
@@ -83605,9 +84094,9 @@ var require_set_blocking = __commonJS({
|
|
|
83605
84094
|
}
|
|
83606
84095
|
});
|
|
83607
84096
|
|
|
83608
|
-
// ../../node_modules/npmlog/log.js
|
|
84097
|
+
// ../../node_modules/@ui5/logger/node_modules/npmlog/log.js
|
|
83609
84098
|
var require_log2 = __commonJS({
|
|
83610
|
-
"../../node_modules/npmlog/log.js"(exports2, module2) {
|
|
84099
|
+
"../../node_modules/@ui5/logger/node_modules/npmlog/log.js"(exports2, module2) {
|
|
83611
84100
|
"use strict";
|
|
83612
84101
|
var Progress = require_are_we_there_yet();
|
|
83613
84102
|
var Gauge = require_gauge();
|