@sap/ux-ui5-tooling 1.18.1 → 1.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/README.md +64 -42
- package/dist/cli/index.js +2126 -2368
- package/dist/middlewares/fiori-tools-appreload.js +36 -36
- package/dist/middlewares/fiori-tools-preview.js +654 -680
- package/dist/middlewares/fiori-tools-proxy.js +728 -1085
- package/dist/middlewares/fiori-tools-servestatic.js +34 -34
- package/dist/tasks/cf-deploy/index.js +451 -479
- package/dist/tasks/deploy/index.js +1123 -1422
- package/package.json +12 -14
|
@@ -40155,7 +40155,7 @@ var require_package5 = __commonJS({
|
|
|
40155
40155
|
"../../node_modules/@sap-ux/telemetry/package.json"(exports2, module2) {
|
|
40156
40156
|
module2.exports = {
|
|
40157
40157
|
name: "@sap-ux/telemetry",
|
|
40158
|
-
version: "0.6.
|
|
40158
|
+
version: "0.6.4",
|
|
40159
40159
|
description: "Library for sending usage telemetry data",
|
|
40160
40160
|
repository: {
|
|
40161
40161
|
type: "git",
|
|
@@ -40174,7 +40174,7 @@ var require_package5 = __commonJS({
|
|
|
40174
40174
|
"performance-now": "2.1.0",
|
|
40175
40175
|
yaml: "2.3.3",
|
|
40176
40176
|
"@sap-ux/store": "1.1.0",
|
|
40177
|
-
"@sap-ux/project-access": "1.30.
|
|
40177
|
+
"@sap-ux/project-access": "1.30.3",
|
|
40178
40178
|
"@sap-ux/btp-utils": "1.1.0",
|
|
40179
40179
|
"@sap-ux/ui5-config": "0.28.2",
|
|
40180
40180
|
"@sap-ux/logger": "0.7.0"
|
|
@@ -46656,9 +46656,9 @@ var require_headers_helper = __commonJS({
|
|
|
46656
46656
|
}
|
|
46657
46657
|
});
|
|
46658
46658
|
|
|
46659
|
-
// ../../node_modules
|
|
46659
|
+
// ../../node_modules/url-join/lib/url-join.js
|
|
46660
46660
|
var require_url_join = __commonJS({
|
|
46661
|
-
"../../node_modules
|
|
46661
|
+
"../../node_modules/url-join/lib/url-join.js"(exports2, module2) {
|
|
46662
46662
|
(function(name2, context2, definition) {
|
|
46663
46663
|
if (typeof module2 !== "undefined" && module2.exports) module2.exports = definition();
|
|
46664
46664
|
else if (typeof define === "function" && define.amd) define(definition);
|
|
@@ -111387,12 +111387,17 @@ var require_properties_parser = __commonJS({
|
|
|
111387
111387
|
range: { ...key.range, start: { line: key.range.end.line, character: key.range.end.character } }
|
|
111388
111388
|
};
|
|
111389
111389
|
}
|
|
111390
|
-
this.
|
|
111390
|
+
const nextToken = this.peek();
|
|
111391
|
+
const line = {
|
|
111391
111392
|
type: "key-element-line",
|
|
111392
111393
|
key,
|
|
111393
111394
|
element,
|
|
111394
111395
|
range: text_document_utils_1.Range.create(key.range.start, element.range.end)
|
|
111395
|
-
}
|
|
111396
|
+
};
|
|
111397
|
+
if ((nextToken == null ? void 0 : nextToken.type) === "end-of-line") {
|
|
111398
|
+
line.endOfLineToken = nextToken;
|
|
111399
|
+
}
|
|
111400
|
+
this.list.push(line);
|
|
111396
111401
|
}
|
|
111397
111402
|
/**
|
|
111398
111403
|
* Create properties list.
|
|
@@ -112039,9 +112044,9 @@ var require_read3 = __commonJS({
|
|
|
112039
112044
|
}
|
|
112040
112045
|
});
|
|
112041
112046
|
|
|
112042
|
-
// ../../node_modules/vscode-languageserver-textdocument/lib/umd/main.js
|
|
112047
|
+
// ../../node_modules/@sap-ux/i18n/node_modules/vscode-languageserver-textdocument/lib/umd/main.js
|
|
112043
112048
|
var require_main = __commonJS({
|
|
112044
|
-
"../../node_modules/vscode-languageserver-textdocument/lib/umd/main.js"(exports2, module2) {
|
|
112049
|
+
"../../node_modules/@sap-ux/i18n/node_modules/vscode-languageserver-textdocument/lib/umd/main.js"(exports2, module2) {
|
|
112045
112050
|
var __spreadArray9 = exports2 && exports2.__spreadArray || function(to, from, pack) {
|
|
112046
112051
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
112047
112052
|
if (ar || !(i in from)) {
|
|
@@ -112495,20 +112500,37 @@ var require_utils12 = __commonJS({
|
|
|
112495
112500
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
112496
112501
|
exports2.writeToExistingI18nPropertiesFile = writeToExistingI18nPropertiesFile;
|
|
112497
112502
|
var utils_1 = require_utils11();
|
|
112498
|
-
|
|
112503
|
+
var text_document_utils_1 = require_dist9();
|
|
112504
|
+
var vscode_languageserver_textdocument_1 = require_main();
|
|
112505
|
+
var parser_1 = require_parser3();
|
|
112506
|
+
async function writeToExistingI18nPropertiesFile(i18nFilePath, newI18nEntries, keysToRemove = [], fs4) {
|
|
112499
112507
|
let newContent = newI18nEntries.map((entry) => (0, utils_1.printPropertiesI18nEntry)(entry.key, entry.value, entry.annotation)).join("");
|
|
112500
|
-
|
|
112501
|
-
if (
|
|
112502
|
-
|
|
112503
|
-
|
|
112504
|
-
|
|
112508
|
+
let content = await (0, utils_1.readFile)(i18nFilePath, fs4);
|
|
112509
|
+
if (keysToRemove.length) {
|
|
112510
|
+
content = removeKeysFromI18nPropertiesFile(content, keysToRemove);
|
|
112511
|
+
}
|
|
112512
|
+
const lines = content.split(/\r\n|\n/);
|
|
112513
|
+
if (lines.length > 0 && lines[lines.length - 1].trim()) {
|
|
112514
|
+
newContent = `
|
|
112505
112515
|
${newContent}`;
|
|
112516
|
+
}
|
|
112517
|
+
await (0, utils_1.writeFile)(i18nFilePath, content.concat(newContent), fs4);
|
|
112518
|
+
return true;
|
|
112519
|
+
}
|
|
112520
|
+
function removeKeysFromI18nPropertiesFile(content, keysToRemove) {
|
|
112521
|
+
const document2 = vscode_languageserver_textdocument_1.TextDocument.create("", "", 0, content);
|
|
112522
|
+
const textEdits = [];
|
|
112523
|
+
const { ast } = (0, parser_1.parseProperties)(content);
|
|
112524
|
+
for (let i = 0; i < ast.length; i++) {
|
|
112525
|
+
const line = ast[i];
|
|
112526
|
+
if (line.type === "key-element-line" && keysToRemove.findIndex((key) => line.key.value.includes(key)) !== -1) {
|
|
112527
|
+
const previousLine = ast[i - 1];
|
|
112528
|
+
const start = previousLine.type === "comment-line" ? previousLine.range.start : line.range.start;
|
|
112529
|
+
const end = line.endOfLineToken ? document2.positionAt(line.endOfLineToken.end) : line.range.end;
|
|
112530
|
+
textEdits.push(text_document_utils_1.TextEdit.del(text_document_utils_1.Range.create(start, end)));
|
|
112506
112531
|
}
|
|
112507
|
-
await (0, utils_1.writeFile)(i18nFilePath, content.concat(newContent), fs4);
|
|
112508
|
-
return true;
|
|
112509
|
-
} else {
|
|
112510
|
-
return false;
|
|
112511
112532
|
}
|
|
112533
|
+
return vscode_languageserver_textdocument_1.TextDocument.applyEdits(document2, textEdits).trim();
|
|
112512
112534
|
}
|
|
112513
112535
|
}
|
|
112514
112536
|
});
|
|
@@ -112533,7 +112555,7 @@ var require_properties5 = __commonJS({
|
|
|
112533
112555
|
await (0, utils_1.writeFile)(i18nFilePath, newContent, fs4);
|
|
112534
112556
|
return true;
|
|
112535
112557
|
}
|
|
112536
|
-
return await (0, utils_2.writeToExistingI18nPropertiesFile)(i18nFilePath, newI18nEntries, fs4);
|
|
112558
|
+
return await (0, utils_2.writeToExistingI18nPropertiesFile)(i18nFilePath, newI18nEntries, [], fs4);
|
|
112537
112559
|
}
|
|
112538
112560
|
}
|
|
112539
112561
|
});
|
|
@@ -112584,19 +112606,29 @@ var require_create2 = __commonJS({
|
|
|
112584
112606
|
"use strict";
|
|
112585
112607
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
112586
112608
|
exports2.createPropertiesI18nEntries = createPropertiesI18nEntries;
|
|
112609
|
+
exports2.removeAndCreateI18nEntries = removeAndCreateI18nEntries;
|
|
112587
112610
|
var utils_1 = require_utils11();
|
|
112588
112611
|
var utils_2 = require_utils12();
|
|
112589
112612
|
var path_1 = require("path");
|
|
112590
112613
|
async function createPropertiesI18nEntries(i18nFilePath, newI18nEntries, root, fs4) {
|
|
112591
112614
|
if (!fs4 && !await (0, utils_1.doesExist)(i18nFilePath) || fs4 && !fs4.exists(i18nFilePath)) {
|
|
112592
|
-
|
|
112593
|
-
|
|
112594
|
-
|
|
112615
|
+
await createNewI18nFile(i18nFilePath, root, fs4);
|
|
112616
|
+
}
|
|
112617
|
+
return await (0, utils_2.writeToExistingI18nPropertiesFile)(i18nFilePath, newI18nEntries, [], fs4);
|
|
112618
|
+
}
|
|
112619
|
+
async function removeAndCreateI18nEntries(i18nFilePath, newI18nEntries, keysToRemove = [], root, fs4) {
|
|
112620
|
+
if (!fs4 && !await (0, utils_1.doesExist)(i18nFilePath) || fs4 && !fs4.exists(i18nFilePath)) {
|
|
112621
|
+
await createNewI18nFile(i18nFilePath, root, fs4);
|
|
112622
|
+
}
|
|
112623
|
+
await (0, utils_2.writeToExistingI18nPropertiesFile)(i18nFilePath, newI18nEntries, keysToRemove, fs4);
|
|
112624
|
+
}
|
|
112625
|
+
async function createNewI18nFile(i18nFilePath, root, fs4) {
|
|
112626
|
+
let content = "# Resource bundle \n";
|
|
112627
|
+
if (root) {
|
|
112628
|
+
content = `# This is the resource bundle for ${(0, path_1.basename)(root)}
|
|
112595
112629
|
`;
|
|
112596
|
-
}
|
|
112597
|
-
await (0, utils_1.writeFile)(i18nFilePath, content, fs4);
|
|
112598
112630
|
}
|
|
112599
|
-
return
|
|
112631
|
+
return (0, utils_1.writeFile)(i18nFilePath, content, fs4);
|
|
112600
112632
|
}
|
|
112601
112633
|
}
|
|
112602
112634
|
});
|
|
@@ -112606,11 +112638,14 @@ var require_properties6 = __commonJS({
|
|
|
112606
112638
|
"../../node_modules/@sap-ux/i18n/dist/write/properties/index.js"(exports2) {
|
|
112607
112639
|
"use strict";
|
|
112608
112640
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
112609
|
-
exports2.createPropertiesI18nEntries = void 0;
|
|
112641
|
+
exports2.removeAndCreateI18nEntries = exports2.createPropertiesI18nEntries = void 0;
|
|
112610
112642
|
var create_1 = require_create2();
|
|
112611
112643
|
Object.defineProperty(exports2, "createPropertiesI18nEntries", { enumerable: true, get: function() {
|
|
112612
112644
|
return create_1.createPropertiesI18nEntries;
|
|
112613
112645
|
} });
|
|
112646
|
+
Object.defineProperty(exports2, "removeAndCreateI18nEntries", { enumerable: true, get: function() {
|
|
112647
|
+
return create_1.removeAndCreateI18nEntries;
|
|
112648
|
+
} });
|
|
112614
112649
|
}
|
|
112615
112650
|
});
|
|
112616
112651
|
|
|
@@ -112619,7 +112654,7 @@ var require_write3 = __commonJS({
|
|
|
112619
112654
|
"../../node_modules/@sap-ux/i18n/dist/write/index.js"(exports2) {
|
|
112620
112655
|
"use strict";
|
|
112621
112656
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
112622
|
-
exports2.createPropertiesI18nEntries = exports2.createCapI18nEntries = void 0;
|
|
112657
|
+
exports2.removeAndCreateI18nEntries = exports2.createPropertiesI18nEntries = exports2.createCapI18nEntries = void 0;
|
|
112623
112658
|
var cap_1 = require_cap3();
|
|
112624
112659
|
Object.defineProperty(exports2, "createCapI18nEntries", { enumerable: true, get: function() {
|
|
112625
112660
|
return cap_1.createCapI18nEntries;
|
|
@@ -112628,6 +112663,9 @@ var require_write3 = __commonJS({
|
|
|
112628
112663
|
Object.defineProperty(exports2, "createPropertiesI18nEntries", { enumerable: true, get: function() {
|
|
112629
112664
|
return properties_1.createPropertiesI18nEntries;
|
|
112630
112665
|
} });
|
|
112666
|
+
Object.defineProperty(exports2, "removeAndCreateI18nEntries", { enumerable: true, get: function() {
|
|
112667
|
+
return properties_1.removeAndCreateI18nEntries;
|
|
112668
|
+
} });
|
|
112631
112669
|
}
|
|
112632
112670
|
});
|
|
112633
112671
|
|
|
@@ -112657,7 +112695,7 @@ var require_dist10 = __commonJS({
|
|
|
112657
112695
|
"../../node_modules/@sap-ux/i18n/dist/index.js"(exports2) {
|
|
112658
112696
|
"use strict";
|
|
112659
112697
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
112660
|
-
exports2.propertiesToI18nEntry = exports2.jsonToI18nBundle = exports2.csvToI18nBundle = exports2.SapShortTextType = exports2.SapLongTextType = exports2.printPropertiesI18nAnnotation = exports2.printPropertiesI18nEntry = exports2.convertToPascalCase = exports2.convertToCamelCase = exports2.getI18nUniqueKey = exports2.extractDoubleCurlyBracketsKey = exports2.extractI18nKey = exports2.getI18nTextType = exports2.getI18nMaxLength = exports2.getI18nFolderNames = exports2.createPropertiesI18nEntries = exports2.createCapI18nEntries = exports2.getPropertiesI18nBundle = exports2.getCapI18nBundle = void 0;
|
|
112698
|
+
exports2.propertiesToI18nEntry = exports2.jsonToI18nBundle = exports2.csvToI18nBundle = exports2.SapShortTextType = exports2.SapLongTextType = exports2.printPropertiesI18nAnnotation = exports2.printPropertiesI18nEntry = exports2.convertToPascalCase = exports2.convertToCamelCase = exports2.getI18nUniqueKey = exports2.extractDoubleCurlyBracketsKey = exports2.extractI18nKey = exports2.getI18nTextType = exports2.getI18nMaxLength = exports2.getI18nFolderNames = exports2.removeAndCreateI18nEntries = exports2.createPropertiesI18nEntries = exports2.createCapI18nEntries = exports2.getPropertiesI18nBundle = exports2.getCapI18nBundle = void 0;
|
|
112661
112699
|
var read_1 = require_read3();
|
|
112662
112700
|
Object.defineProperty(exports2, "getCapI18nBundle", { enumerable: true, get: function() {
|
|
112663
112701
|
return read_1.getCapI18nBundle;
|
|
@@ -112672,6 +112710,9 @@ var require_dist10 = __commonJS({
|
|
|
112672
112710
|
Object.defineProperty(exports2, "createPropertiesI18nEntries", { enumerable: true, get: function() {
|
|
112673
112711
|
return write_1.createPropertiesI18nEntries;
|
|
112674
112712
|
} });
|
|
112713
|
+
Object.defineProperty(exports2, "removeAndCreateI18nEntries", { enumerable: true, get: function() {
|
|
112714
|
+
return write_1.removeAndCreateI18nEntries;
|
|
112715
|
+
} });
|
|
112675
112716
|
var utils_1 = require_utils11();
|
|
112676
112717
|
Object.defineProperty(exports2, "getI18nFolderNames", { enumerable: true, get: function() {
|
|
112677
112718
|
return utils_1.getI18nFolderNames;
|
|
@@ -118374,9 +118415,9 @@ var init_i18next = __esm({
|
|
|
118374
118415
|
}
|
|
118375
118416
|
});
|
|
118376
118417
|
|
|
118377
|
-
// ../../node_modules
|
|
118418
|
+
// ../../node_modules/i18next-fs-backend/cjs/utils.js
|
|
118378
118419
|
var require_utils13 = __commonJS({
|
|
118379
|
-
"../../node_modules
|
|
118420
|
+
"../../node_modules/i18next-fs-backend/cjs/utils.js"(exports2) {
|
|
118380
118421
|
"use strict";
|
|
118381
118422
|
Object.defineProperty(exports2, "__esModule", {
|
|
118382
118423
|
value: true
|
|
@@ -118449,9 +118490,9 @@ var require_utils13 = __commonJS({
|
|
|
118449
118490
|
}
|
|
118450
118491
|
});
|
|
118451
118492
|
|
|
118452
|
-
// ../../node_modules
|
|
118493
|
+
// ../../node_modules/i18next-fs-backend/cjs/formats/json5.js
|
|
118453
118494
|
var require_json52 = __commonJS({
|
|
118454
|
-
"../../node_modules
|
|
118495
|
+
"../../node_modules/i18next-fs-backend/cjs/formats/json5.js"(exports2, module2) {
|
|
118455
118496
|
"use strict";
|
|
118456
118497
|
Object.defineProperty(exports2, "__esModule", {
|
|
118457
118498
|
value: true
|
|
@@ -119606,9 +119647,9 @@ var require_json52 = __commonJS({
|
|
|
119606
119647
|
}
|
|
119607
119648
|
});
|
|
119608
119649
|
|
|
119609
|
-
// ../../node_modules
|
|
119650
|
+
// ../../node_modules/i18next-fs-backend/cjs/formats/yaml.js
|
|
119610
119651
|
var require_yaml = __commonJS({
|
|
119611
|
-
"../../node_modules
|
|
119652
|
+
"../../node_modules/i18next-fs-backend/cjs/formats/yaml.js"(exports2) {
|
|
119612
119653
|
"use strict";
|
|
119613
119654
|
Object.defineProperty(exports2, "__esModule", {
|
|
119614
119655
|
value: true
|
|
@@ -122170,9 +122211,9 @@ var require_yaml = __commonJS({
|
|
|
122170
122211
|
}
|
|
122171
122212
|
});
|
|
122172
122213
|
|
|
122173
|
-
// ../../node_modules
|
|
122214
|
+
// ../../node_modules/i18next-fs-backend/cjs/fs.js
|
|
122174
122215
|
var require_fs6 = __commonJS({
|
|
122175
|
-
"../../node_modules
|
|
122216
|
+
"../../node_modules/i18next-fs-backend/cjs/fs.js"(exports2, module2) {
|
|
122176
122217
|
if (typeof require !== "undefined") {
|
|
122177
122218
|
f = require("fs");
|
|
122178
122219
|
if (f.default) f = f.default;
|
|
@@ -122183,9 +122224,9 @@ var require_fs6 = __commonJS({
|
|
|
122183
122224
|
}
|
|
122184
122225
|
});
|
|
122185
122226
|
|
|
122186
|
-
// ../../node_modules
|
|
122227
|
+
// ../../node_modules/i18next-fs-backend/cjs/path.js
|
|
122187
122228
|
var require_path3 = __commonJS({
|
|
122188
|
-
"../../node_modules
|
|
122229
|
+
"../../node_modules/i18next-fs-backend/cjs/path.js"(exports2, module2) {
|
|
122189
122230
|
if (typeof require !== "undefined") {
|
|
122190
122231
|
path4 = require("path");
|
|
122191
122232
|
if (path4.default) path4 = path4.default;
|
|
@@ -122196,9 +122237,9 @@ var require_path3 = __commonJS({
|
|
|
122196
122237
|
}
|
|
122197
122238
|
});
|
|
122198
122239
|
|
|
122199
|
-
// ../../node_modules
|
|
122240
|
+
// ../../node_modules/i18next-fs-backend/cjs/extname.js
|
|
122200
122241
|
var require_extname = __commonJS({
|
|
122201
|
-
"../../node_modules
|
|
122242
|
+
"../../node_modules/i18next-fs-backend/cjs/extname.js"(exports2, module2) {
|
|
122202
122243
|
"use strict";
|
|
122203
122244
|
Object.defineProperty(exports2, "__esModule", {
|
|
122204
122245
|
value: true
|
|
@@ -122213,9 +122254,9 @@ var require_extname = __commonJS({
|
|
|
122213
122254
|
}
|
|
122214
122255
|
});
|
|
122215
122256
|
|
|
122216
|
-
// ../../node_modules
|
|
122257
|
+
// ../../node_modules/i18next-fs-backend/cjs/readFile.js
|
|
122217
122258
|
var require_readFile = __commonJS({
|
|
122218
|
-
"../../node_modules
|
|
122259
|
+
"../../node_modules/i18next-fs-backend/cjs/readFile.js"(exports, module) {
|
|
122219
122260
|
"use strict";
|
|
122220
122261
|
function _typeof(obj) {
|
|
122221
122262
|
"@babel/helpers - typeof";
|
|
@@ -122432,9 +122473,9 @@ var require_readFile = __commonJS({
|
|
|
122432
122473
|
}
|
|
122433
122474
|
});
|
|
122434
122475
|
|
|
122435
|
-
// ../../node_modules
|
|
122476
|
+
// ../../node_modules/i18next-fs-backend/cjs/writeFile.js
|
|
122436
122477
|
var require_writeFile = __commonJS({
|
|
122437
|
-
"../../node_modules
|
|
122478
|
+
"../../node_modules/i18next-fs-backend/cjs/writeFile.js"(exports2, module2) {
|
|
122438
122479
|
"use strict";
|
|
122439
122480
|
function _typeof3(obj) {
|
|
122440
122481
|
"@babel/helpers - typeof";
|
|
@@ -122649,9 +122690,9 @@ var require_writeFile = __commonJS({
|
|
|
122649
122690
|
}
|
|
122650
122691
|
});
|
|
122651
122692
|
|
|
122652
|
-
// ../../node_modules
|
|
122693
|
+
// ../../node_modules/i18next-fs-backend/cjs/index.js
|
|
122653
122694
|
var require_cjs2 = __commonJS({
|
|
122654
|
-
"../../node_modules
|
|
122695
|
+
"../../node_modules/i18next-fs-backend/cjs/index.js"(exports2, module2) {
|
|
122655
122696
|
"use strict";
|
|
122656
122697
|
Object.defineProperty(exports2, "__esModule", {
|
|
122657
122698
|
value: true
|
|
@@ -125947,16 +125988,16 @@ var require_types9 = __commonJS({
|
|
|
125947
125988
|
}
|
|
125948
125989
|
});
|
|
125949
125990
|
|
|
125950
|
-
// ../../node_modules
|
|
125991
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/stream.js
|
|
125951
125992
|
var require_stream7 = __commonJS({
|
|
125952
|
-
"../../node_modules
|
|
125993
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/stream.js"(exports2, module2) {
|
|
125953
125994
|
module2.exports = require("stream");
|
|
125954
125995
|
}
|
|
125955
125996
|
});
|
|
125956
125997
|
|
|
125957
|
-
// ../../node_modules
|
|
125998
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/destroy.js
|
|
125958
125999
|
var require_destroy2 = __commonJS({
|
|
125959
|
-
"../../node_modules
|
|
126000
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports2, module2) {
|
|
125960
126001
|
"use strict";
|
|
125961
126002
|
function destroy2(err, cb) {
|
|
125962
126003
|
var _this = this;
|
|
@@ -126043,9 +126084,9 @@ var require_destroy2 = __commonJS({
|
|
|
126043
126084
|
}
|
|
126044
126085
|
});
|
|
126045
126086
|
|
|
126046
|
-
// ../../node_modules
|
|
126087
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/errors.js
|
|
126047
126088
|
var require_errors5 = __commonJS({
|
|
126048
|
-
"../../node_modules
|
|
126089
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/errors.js"(exports2, module2) {
|
|
126049
126090
|
"use strict";
|
|
126050
126091
|
var codes = {};
|
|
126051
126092
|
function createErrorType(code, message, Base) {
|
|
@@ -126143,9 +126184,9 @@ var require_errors5 = __commonJS({
|
|
|
126143
126184
|
}
|
|
126144
126185
|
});
|
|
126145
126186
|
|
|
126146
|
-
// ../../node_modules
|
|
126187
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/state.js
|
|
126147
126188
|
var require_state3 = __commonJS({
|
|
126148
|
-
"../../node_modules
|
|
126189
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/state.js"(exports2, module2) {
|
|
126149
126190
|
"use strict";
|
|
126150
126191
|
var ERR_INVALID_OPT_VALUE = require_errors5().codes.ERR_INVALID_OPT_VALUE;
|
|
126151
126192
|
function highWaterMarkFrom(options2, isDuplex, duplexKey) {
|
|
@@ -126168,9 +126209,9 @@ var require_state3 = __commonJS({
|
|
|
126168
126209
|
}
|
|
126169
126210
|
});
|
|
126170
126211
|
|
|
126171
|
-
// ../../node_modules
|
|
126212
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/buffer_list.js
|
|
126172
126213
|
var require_buffer_list = __commonJS({
|
|
126173
|
-
"../../node_modules
|
|
126214
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/buffer_list.js"(exports2, module2) {
|
|
126174
126215
|
"use strict";
|
|
126175
126216
|
function ownKeys(object, enumerableOnly) {
|
|
126176
126217
|
var keys = Object.keys(object);
|
|
@@ -126699,9 +126740,9 @@ var require_string_decoder2 = __commonJS({
|
|
|
126699
126740
|
}
|
|
126700
126741
|
});
|
|
126701
126742
|
|
|
126702
|
-
// ../../node_modules
|
|
126743
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/end-of-stream.js
|
|
126703
126744
|
var require_end_of_stream = __commonJS({
|
|
126704
|
-
"../../node_modules
|
|
126745
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports2, module2) {
|
|
126705
126746
|
"use strict";
|
|
126706
126747
|
var ERR_STREAM_PREMATURE_CLOSE = require_errors5().codes.ERR_STREAM_PREMATURE_CLOSE;
|
|
126707
126748
|
function once(callback) {
|
|
@@ -126788,9 +126829,9 @@ var require_end_of_stream = __commonJS({
|
|
|
126788
126829
|
}
|
|
126789
126830
|
});
|
|
126790
126831
|
|
|
126791
|
-
// ../../node_modules
|
|
126832
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/async_iterator.js
|
|
126792
126833
|
var require_async_iterator = __commonJS({
|
|
126793
|
-
"../../node_modules
|
|
126834
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/async_iterator.js"(exports2, module2) {
|
|
126794
126835
|
"use strict";
|
|
126795
126836
|
var _Object$setPrototypeO;
|
|
126796
126837
|
function _defineProperty2(obj, key, value) {
|
|
@@ -126956,9 +126997,9 @@ var require_async_iterator = __commonJS({
|
|
|
126956
126997
|
}
|
|
126957
126998
|
});
|
|
126958
126999
|
|
|
126959
|
-
// ../../node_modules
|
|
127000
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/from.js
|
|
126960
127001
|
var require_from = __commonJS({
|
|
126961
|
-
"../../node_modules
|
|
127002
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/from.js"(exports2, module2) {
|
|
126962
127003
|
"use strict";
|
|
126963
127004
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
126964
127005
|
try {
|
|
@@ -127069,9 +127110,9 @@ var require_from = __commonJS({
|
|
|
127069
127110
|
}
|
|
127070
127111
|
});
|
|
127071
127112
|
|
|
127072
|
-
// ../../node_modules
|
|
127113
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_readable.js
|
|
127073
127114
|
var require_stream_readable2 = __commonJS({
|
|
127074
|
-
"../../node_modules
|
|
127115
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_readable.js"(exports2, module2) {
|
|
127075
127116
|
"use strict";
|
|
127076
127117
|
module2.exports = Readable;
|
|
127077
127118
|
var Duplex;
|
|
@@ -127806,9 +127847,9 @@ var require_stream_readable2 = __commonJS({
|
|
|
127806
127847
|
}
|
|
127807
127848
|
});
|
|
127808
127849
|
|
|
127809
|
-
// ../../node_modules
|
|
127850
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_duplex.js
|
|
127810
127851
|
var require_stream_duplex2 = __commonJS({
|
|
127811
|
-
"../../node_modules
|
|
127852
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_duplex.js"(exports2, module2) {
|
|
127812
127853
|
"use strict";
|
|
127813
127854
|
var objectKeys = Object.keys || function(obj) {
|
|
127814
127855
|
var keys2 = [];
|
|
@@ -127901,9 +127942,9 @@ var require_stream_duplex2 = __commonJS({
|
|
|
127901
127942
|
}
|
|
127902
127943
|
});
|
|
127903
127944
|
|
|
127904
|
-
// ../../node_modules
|
|
127945
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js
|
|
127905
127946
|
var require_stream_writable2 = __commonJS({
|
|
127906
|
-
"../../node_modules
|
|
127947
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js"(exports2, module2) {
|
|
127907
127948
|
"use strict";
|
|
127908
127949
|
module2.exports = Writable;
|
|
127909
127950
|
function CorkedRequest(state) {
|
|
@@ -128490,9 +128531,9 @@ var require_triple_beam = __commonJS({
|
|
|
128490
128531
|
}
|
|
128491
128532
|
});
|
|
128492
128533
|
|
|
128493
|
-
// ../../node_modules
|
|
128534
|
+
// ../../node_modules/winston-transport/modern.js
|
|
128494
128535
|
var require_modern = __commonJS({
|
|
128495
|
-
"../../node_modules
|
|
128536
|
+
"../../node_modules/winston-transport/modern.js"(exports2, module2) {
|
|
128496
128537
|
"use strict";
|
|
128497
128538
|
var util3 = require("util");
|
|
128498
128539
|
var Writable = require_stream_writable2();
|
|
@@ -128602,9 +128643,9 @@ var require_modern = __commonJS({
|
|
|
128602
128643
|
}
|
|
128603
128644
|
});
|
|
128604
128645
|
|
|
128605
|
-
// ../../node_modules
|
|
128646
|
+
// ../../node_modules/winston-transport/legacy.js
|
|
128606
128647
|
var require_legacy = __commonJS({
|
|
128607
|
-
"../../node_modules
|
|
128648
|
+
"../../node_modules/winston-transport/legacy.js"(exports2, module2) {
|
|
128608
128649
|
"use strict";
|
|
128609
128650
|
var util3 = require("util");
|
|
128610
128651
|
var { LEVEL } = require_triple_beam();
|
|
@@ -128668,9 +128709,9 @@ var require_legacy = __commonJS({
|
|
|
128668
128709
|
}
|
|
128669
128710
|
});
|
|
128670
128711
|
|
|
128671
|
-
// ../../node_modules
|
|
128712
|
+
// ../../node_modules/winston-transport/index.js
|
|
128672
128713
|
var require_winston_transport = __commonJS({
|
|
128673
|
-
"../../node_modules
|
|
128714
|
+
"../../node_modules/winston-transport/index.js"(exports2, module2) {
|
|
128674
128715
|
"use strict";
|
|
128675
128716
|
module2.exports = require_modern();
|
|
128676
128717
|
module2.exports.LegacyTransportStream = require_legacy();
|
|
@@ -140151,9 +140192,9 @@ var require_ansi_styles = __commonJS({
|
|
|
140151
140192
|
}
|
|
140152
140193
|
});
|
|
140153
140194
|
|
|
140154
|
-
// ../../node_modules
|
|
140195
|
+
// ../../node_modules/chalk/source/util.js
|
|
140155
140196
|
var require_util6 = __commonJS({
|
|
140156
|
-
"../../node_modules
|
|
140197
|
+
"../../node_modules/chalk/source/util.js"(exports2, module2) {
|
|
140157
140198
|
"use strict";
|
|
140158
140199
|
var stringReplaceAll = (string, substring, replacer) => {
|
|
140159
140200
|
let index = string.indexOf(substring);
|
|
@@ -140190,9 +140231,9 @@ var require_util6 = __commonJS({
|
|
|
140190
140231
|
}
|
|
140191
140232
|
});
|
|
140192
140233
|
|
|
140193
|
-
// ../../node_modules
|
|
140234
|
+
// ../../node_modules/chalk/source/templates.js
|
|
140194
140235
|
var require_templates = __commonJS({
|
|
140195
|
-
"../../node_modules
|
|
140236
|
+
"../../node_modules/chalk/source/templates.js"(exports2, module2) {
|
|
140196
140237
|
"use strict";
|
|
140197
140238
|
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;
|
|
140198
140239
|
var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
|
|
@@ -140304,9 +140345,9 @@ var require_templates = __commonJS({
|
|
|
140304
140345
|
}
|
|
140305
140346
|
});
|
|
140306
140347
|
|
|
140307
|
-
// ../../node_modules
|
|
140348
|
+
// ../../node_modules/chalk/source/index.js
|
|
140308
140349
|
var require_source = __commonJS({
|
|
140309
|
-
"../../node_modules
|
|
140350
|
+
"../../node_modules/chalk/source/index.js"(exports2, module2) {
|
|
140310
140351
|
"use strict";
|
|
140311
140352
|
var ansiStyles = require_ansi_styles();
|
|
140312
140353
|
var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
|
|
@@ -142281,9 +142322,9 @@ var require_is_wsl = __commonJS({
|
|
|
142281
142322
|
}
|
|
142282
142323
|
});
|
|
142283
142324
|
|
|
142284
|
-
// ../../node_modules
|
|
142325
|
+
// ../../node_modules/open/index.js
|
|
142285
142326
|
var require_open = __commonJS({
|
|
142286
|
-
"../../node_modules
|
|
142327
|
+
"../../node_modules/open/index.js"(exports2, module2) {
|
|
142287
142328
|
"use strict";
|
|
142288
142329
|
var { promisify: promisify2 } = require("util");
|
|
142289
142330
|
var path4 = require("path");
|
|
@@ -146006,6 +146047,9 @@ var require_ui5_abap_repository_service = __commonJS({
|
|
|
146006
146047
|
var require_lrep_service = __commonJS({
|
|
146007
146048
|
"../../node_modules/@sap-ux/axios-extension/dist/abap/lrep-service.js"(exports2) {
|
|
146008
146049
|
"use strict";
|
|
146050
|
+
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
146051
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
146052
|
+
};
|
|
146009
146053
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
146010
146054
|
exports2.LayeredRepositoryService = exports2.AdaptationProjectType = void 0;
|
|
146011
146055
|
var axios_1 = require_axios();
|
|
@@ -146014,6 +146058,7 @@ var require_lrep_service = __commonJS({
|
|
|
146014
146058
|
var logger_1 = require_dist12();
|
|
146015
146059
|
var odata_request_error_1 = require_odata_request_error();
|
|
146016
146060
|
var message_1 = require_message();
|
|
146061
|
+
var qs_1 = __importDefault(require_lib6());
|
|
146017
146062
|
var AdaptationProjectType;
|
|
146018
146063
|
(function(AdaptationProjectType2) {
|
|
146019
146064
|
AdaptationProjectType2["ON_PREMISE"] = "onPremise";
|
|
@@ -146174,21 +146219,25 @@ var require_lrep_service = __commonJS({
|
|
|
146174
146219
|
/**
|
|
146175
146220
|
* Get system info.
|
|
146176
146221
|
*
|
|
146177
|
-
* @param language
|
|
146222
|
+
* @param language language code (default: EN)
|
|
146178
146223
|
* @param cloudPackage name
|
|
146224
|
+
* @param appId application id (since ABAP Platform Cloud 2505)
|
|
146179
146225
|
* @returns the system info object
|
|
146180
146226
|
*/
|
|
146181
|
-
async getSystemInfo(language = "EN", cloudPackage) {
|
|
146227
|
+
async getSystemInfo(language = "EN", cloudPackage, appId) {
|
|
146182
146228
|
try {
|
|
146183
|
-
const params =
|
|
146229
|
+
const params = {
|
|
146184
146230
|
"sap-language": language
|
|
146185
|
-
}
|
|
146231
|
+
};
|
|
146186
146232
|
if (cloudPackage) {
|
|
146187
|
-
params
|
|
146233
|
+
params["package"] = cloudPackage;
|
|
146234
|
+
}
|
|
146235
|
+
if (appId) {
|
|
146236
|
+
params["sap-app-id"] = appId;
|
|
146188
146237
|
}
|
|
146189
146238
|
const response = await this.get(`${DTA_PATH_SUFFIX}system_info`, {
|
|
146190
146239
|
params,
|
|
146191
|
-
paramsSerializer:
|
|
146240
|
+
paramsSerializer: (params2) => qs_1.default.stringify(params2, { encode: false })
|
|
146192
146241
|
});
|
|
146193
146242
|
this.tryLogResponse(response, "Successful getting system info.");
|
|
146194
146243
|
return JSON.parse(response.data);
|
|
@@ -155807,6 +155856,62 @@ var require_generator_service = __commonJS({
|
|
|
155807
155856
|
}
|
|
155808
155857
|
});
|
|
155809
155858
|
|
|
155859
|
+
// ../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/rap-generator-service.js
|
|
155860
|
+
var require_rap_generator_service = __commonJS({
|
|
155861
|
+
"../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/rap-generator-service.js"(exports2) {
|
|
155862
|
+
"use strict";
|
|
155863
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
155864
|
+
exports2.RapGeneratorService = void 0;
|
|
155865
|
+
var adt_service_1 = require_adt_service();
|
|
155866
|
+
var RapGeneratorService = class _RapGeneratorService extends adt_service_1.AdtService {
|
|
155867
|
+
/**
|
|
155868
|
+
* @see AdtService.getAdtCategory()
|
|
155869
|
+
*/
|
|
155870
|
+
static adtCategory = {
|
|
155871
|
+
scheme: "http://www.sap.com/adt/categories/respository",
|
|
155872
|
+
term: "generators"
|
|
155873
|
+
};
|
|
155874
|
+
/**
|
|
155875
|
+
* Get ADT scheme ID.
|
|
155876
|
+
*
|
|
155877
|
+
* @returns AdtCategory
|
|
155878
|
+
*/
|
|
155879
|
+
static getAdtCatagory() {
|
|
155880
|
+
return _RapGeneratorService.adtCategory;
|
|
155881
|
+
}
|
|
155882
|
+
id;
|
|
155883
|
+
/**
|
|
155884
|
+
* Get the RAP Generator (published-x-ui-service).
|
|
155885
|
+
*
|
|
155886
|
+
* @returns Promise<GeneratorEntry>
|
|
155887
|
+
*/
|
|
155888
|
+
async getRAPGeneratorConfig() {
|
|
155889
|
+
var _a3;
|
|
155890
|
+
const response = await this.get("", {
|
|
155891
|
+
headers: {
|
|
155892
|
+
Accept: "application/atom+xml;type=feed"
|
|
155893
|
+
},
|
|
155894
|
+
params: {
|
|
155895
|
+
type: "webapi",
|
|
155896
|
+
fetchAllGenerators: true
|
|
155897
|
+
}
|
|
155898
|
+
});
|
|
155899
|
+
let generators = ((_a3 = this.parseResponse(response.data).feed) == null ? void 0 : _a3.entry) ?? [];
|
|
155900
|
+
if (generators && !Array.isArray(generators)) {
|
|
155901
|
+
generators = [generators];
|
|
155902
|
+
}
|
|
155903
|
+
const data2 = generators.find((generator) => generator.id === "published-x-ui-service");
|
|
155904
|
+
if (data2) {
|
|
155905
|
+
return data2;
|
|
155906
|
+
} else {
|
|
155907
|
+
throw new Error("OData Service Generator not found");
|
|
155908
|
+
}
|
|
155909
|
+
}
|
|
155910
|
+
};
|
|
155911
|
+
exports2.RapGeneratorService = RapGeneratorService;
|
|
155912
|
+
}
|
|
155913
|
+
});
|
|
155914
|
+
|
|
155810
155915
|
// ../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/businessobjects-service.js
|
|
155811
155916
|
var require_businessobjects_service = __commonJS({
|
|
155812
155917
|
"../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/businessobjects-service.js"(exports2) {
|
|
@@ -155994,12 +156099,61 @@ var require_abapcdsview_service = __commonJS({
|
|
|
155994
156099
|
}
|
|
155995
156100
|
});
|
|
155996
156101
|
|
|
156102
|
+
// ../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/publish-service.js
|
|
156103
|
+
var require_publish_service = __commonJS({
|
|
156104
|
+
"../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/publish-service.js"(exports2) {
|
|
156105
|
+
"use strict";
|
|
156106
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
156107
|
+
exports2.PublishService = void 0;
|
|
156108
|
+
var adt_service_1 = require_adt_service();
|
|
156109
|
+
var PublishService = class _PublishService extends adt_service_1.AdtService {
|
|
156110
|
+
/**
|
|
156111
|
+
* @see AdtService.getAdtCatagory()
|
|
156112
|
+
*/
|
|
156113
|
+
static adtCategory = {
|
|
156114
|
+
scheme: "http://www.sap.com/categories/servicebindings/bindingtypes",
|
|
156115
|
+
term: "ODataV4"
|
|
156116
|
+
};
|
|
156117
|
+
/**
|
|
156118
|
+
* Get ADT scheme ID.
|
|
156119
|
+
*
|
|
156120
|
+
* @returns AdtCategory
|
|
156121
|
+
*/
|
|
156122
|
+
static getAdtCatagory() {
|
|
156123
|
+
return _PublishService.adtCategory;
|
|
156124
|
+
}
|
|
156125
|
+
/**
|
|
156126
|
+
* Get OData V4 service URI for the given business object.
|
|
156127
|
+
*
|
|
156128
|
+
* @param technicalDetails - technical name of OData service
|
|
156129
|
+
* @returns service URI.
|
|
156130
|
+
*/
|
|
156131
|
+
async getODataV4ServiceUri(technicalDetails) {
|
|
156132
|
+
const { serviceDefinitionName, serviceName, serviceVersion } = technicalDetails;
|
|
156133
|
+
const response = await this.get(`/${serviceName}`, {
|
|
156134
|
+
headers: {
|
|
156135
|
+
Accept: "application/vnd.sap.adt.businessservices.odatav4.v2+xml"
|
|
156136
|
+
},
|
|
156137
|
+
params: {
|
|
156138
|
+
servicename: serviceName,
|
|
156139
|
+
serviceversion: serviceVersion,
|
|
156140
|
+
srvdname: serviceDefinitionName
|
|
156141
|
+
}
|
|
156142
|
+
});
|
|
156143
|
+
const data2 = this.parseResponse(response.data);
|
|
156144
|
+
return String(data2.serviceGroup.services.serviceUrl);
|
|
156145
|
+
}
|
|
156146
|
+
};
|
|
156147
|
+
exports2.PublishService = PublishService;
|
|
156148
|
+
}
|
|
156149
|
+
});
|
|
156150
|
+
|
|
155997
156151
|
// ../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/index.js
|
|
155998
156152
|
var require_services2 = __commonJS({
|
|
155999
156153
|
"../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/index.js"(exports2) {
|
|
156000
156154
|
"use strict";
|
|
156001
156155
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
156002
|
-
exports2.AbapCDSViewService = exports2.UI5RtVersionService = exports2.BusinessObjectsService = exports2.GeneratorService = exports2.FileStoreService = exports2.ListPackageService = exports2.TransportRequestService = exports2.TransportChecksService = exports2.AtoService = exports2.AdtService = void 0;
|
|
156156
|
+
exports2.PublishService = exports2.AbapCDSViewService = exports2.UI5RtVersionService = exports2.BusinessObjectsService = exports2.RapGeneratorService = exports2.GeneratorService = exports2.FileStoreService = exports2.ListPackageService = exports2.TransportRequestService = exports2.TransportChecksService = exports2.AtoService = exports2.AdtService = void 0;
|
|
156003
156157
|
var adt_service_1 = require_adt_service();
|
|
156004
156158
|
Object.defineProperty(exports2, "AdtService", { enumerable: true, get: function() {
|
|
156005
156159
|
return adt_service_1.AdtService;
|
|
@@ -156028,6 +156182,10 @@ var require_services2 = __commonJS({
|
|
|
156028
156182
|
Object.defineProperty(exports2, "GeneratorService", { enumerable: true, get: function() {
|
|
156029
156183
|
return generator_service_1.GeneratorService;
|
|
156030
156184
|
} });
|
|
156185
|
+
var rap_generator_service_1 = require_rap_generator_service();
|
|
156186
|
+
Object.defineProperty(exports2, "RapGeneratorService", { enumerable: true, get: function() {
|
|
156187
|
+
return rap_generator_service_1.RapGeneratorService;
|
|
156188
|
+
} });
|
|
156031
156189
|
var businessobjects_service_1 = require_businessobjects_service();
|
|
156032
156190
|
Object.defineProperty(exports2, "BusinessObjectsService", { enumerable: true, get: function() {
|
|
156033
156191
|
return businessobjects_service_1.BusinessObjectsService;
|
|
@@ -156040,6 +156198,147 @@ var require_services2 = __commonJS({
|
|
|
156040
156198
|
Object.defineProperty(exports2, "AbapCDSViewService", { enumerable: true, get: function() {
|
|
156041
156199
|
return abapcdsview_service_1.AbapCDSViewService;
|
|
156042
156200
|
} });
|
|
156201
|
+
var publish_service_1 = require_publish_service();
|
|
156202
|
+
Object.defineProperty(exports2, "PublishService", { enumerable: true, get: function() {
|
|
156203
|
+
return publish_service_1.PublishService;
|
|
156204
|
+
} });
|
|
156205
|
+
}
|
|
156206
|
+
});
|
|
156207
|
+
|
|
156208
|
+
// ../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/generators/odata-service-generator.js
|
|
156209
|
+
var require_odata_service_generator = __commonJS({
|
|
156210
|
+
"../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/generators/odata-service-generator.js"(exports2) {
|
|
156211
|
+
"use strict";
|
|
156212
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
156213
|
+
exports2.ODataServiceGenerator = void 0;
|
|
156214
|
+
var services_1 = require_services2();
|
|
156215
|
+
var ODataServiceGenerator = class extends services_1.AdtService {
|
|
156216
|
+
/**
|
|
156217
|
+
* package to be used for generated objects
|
|
156218
|
+
*/
|
|
156219
|
+
packageName;
|
|
156220
|
+
contentType;
|
|
156221
|
+
/**
|
|
156222
|
+
* Configure the UI service generator.
|
|
156223
|
+
*
|
|
156224
|
+
* @param _config - The generator configuration.
|
|
156225
|
+
* @param packageName - package to be used for generated objects
|
|
156226
|
+
*/
|
|
156227
|
+
configure(_config, packageName) {
|
|
156228
|
+
this.packageName = packageName;
|
|
156229
|
+
}
|
|
156230
|
+
/**
|
|
156231
|
+
* Set the content type to be used for post requests of genertor.
|
|
156232
|
+
*
|
|
156233
|
+
* @param contentType - content type to be used for generated objects
|
|
156234
|
+
*/
|
|
156235
|
+
setContentType(contentType) {
|
|
156236
|
+
this.contentType = contentType;
|
|
156237
|
+
}
|
|
156238
|
+
/**
|
|
156239
|
+
* Validates input for OData Service generation.
|
|
156240
|
+
*
|
|
156241
|
+
* @param input - JSON string
|
|
156242
|
+
* @returns messages
|
|
156243
|
+
*/
|
|
156244
|
+
async validate(input) {
|
|
156245
|
+
const response = await this.post(`/validation`, input, {
|
|
156246
|
+
headers: {
|
|
156247
|
+
"Content-Type": this.contentType,
|
|
156248
|
+
Accept: "application/vnd.sap.adt.validationMessages.v1+xml, application/vnd.sap.as+xml;charset=UTF-8;dataname=com.sap.adt.StatusMessage"
|
|
156249
|
+
},
|
|
156250
|
+
params: {
|
|
156251
|
+
package: this.packageName
|
|
156252
|
+
}
|
|
156253
|
+
});
|
|
156254
|
+
return this.parseValidateResponse(response.data);
|
|
156255
|
+
}
|
|
156256
|
+
/**
|
|
156257
|
+
* Gets technical details of (to be generated) OData service.
|
|
156258
|
+
* - this is a workaround for the missing service definition name in the generator response
|
|
156259
|
+
* - actual name might be different e.g. because of name collisions at the time when the actual generation is called.
|
|
156260
|
+
*
|
|
156261
|
+
* @param input - JSON string
|
|
156262
|
+
* @returns technical name of service definition
|
|
156263
|
+
*/
|
|
156264
|
+
async getTechnicalDetails(input) {
|
|
156265
|
+
const response = await this.post(`/preview`, input, {
|
|
156266
|
+
headers: {
|
|
156267
|
+
"Content-Type": this.contentType,
|
|
156268
|
+
Accept: "application/vnd.sap.adt.repository.objects.massoperation.v1+xml"
|
|
156269
|
+
},
|
|
156270
|
+
params: {
|
|
156271
|
+
package: this.packageName
|
|
156272
|
+
}
|
|
156273
|
+
});
|
|
156274
|
+
return this.parsePreviewResponse(response.data);
|
|
156275
|
+
}
|
|
156276
|
+
/**
|
|
156277
|
+
* Generates OData Service.
|
|
156278
|
+
*
|
|
156279
|
+
* @param input - JSON string
|
|
156280
|
+
* @returns HTTP status code as number
|
|
156281
|
+
* @throws Error if the generation fails
|
|
156282
|
+
*/
|
|
156283
|
+
async generate(input) {
|
|
156284
|
+
const response = await this.post(``, input, {
|
|
156285
|
+
headers: {
|
|
156286
|
+
"Content-Type": this.contentType,
|
|
156287
|
+
"Accept": "application/vnd.sap.adt.repository.generator.v1+json"
|
|
156288
|
+
},
|
|
156289
|
+
params: {
|
|
156290
|
+
package: this.packageName
|
|
156291
|
+
}
|
|
156292
|
+
});
|
|
156293
|
+
return response.status;
|
|
156294
|
+
}
|
|
156295
|
+
/**
|
|
156296
|
+
* Parse an xml document for validation messages.
|
|
156297
|
+
*
|
|
156298
|
+
* @param xml response for "validation" request
|
|
156299
|
+
* @returns messages
|
|
156300
|
+
*/
|
|
156301
|
+
parseValidateResponse(xml) {
|
|
156302
|
+
const parsed = this.parseResponse(xml);
|
|
156303
|
+
let validationMessages = parsed.validationMessages;
|
|
156304
|
+
if (!Array.isArray(validationMessages)) {
|
|
156305
|
+
validationMessages = [validationMessages];
|
|
156306
|
+
}
|
|
156307
|
+
return validationMessages.map((entry) => entry.validationMessage || {}) || [];
|
|
156308
|
+
}
|
|
156309
|
+
/**
|
|
156310
|
+
* Parse an XML document to find the technical name of the service definition.
|
|
156311
|
+
*
|
|
156312
|
+
* @param xml response for "preview" request
|
|
156313
|
+
* @returns technical details of service definition
|
|
156314
|
+
*/
|
|
156315
|
+
parsePreviewResponse(xml) {
|
|
156316
|
+
var _a3, _b2;
|
|
156317
|
+
const parsed = this.parseResponse(xml);
|
|
156318
|
+
const serviceLayerGroup = (parsed.group.group || []).find((entry) => entry.name === "Business Service Layer");
|
|
156319
|
+
if (!serviceLayerGroup) {
|
|
156320
|
+
return;
|
|
156321
|
+
}
|
|
156322
|
+
const objects = !Array.isArray(serviceLayerGroup.object) ? [serviceLayerGroup.object] : serviceLayerGroup.object;
|
|
156323
|
+
const serviceObject = objects.find((entry) => {
|
|
156324
|
+
var _a4;
|
|
156325
|
+
return ((_a4 = entry.objectReference) == null ? void 0 : _a4.type) === "SRVD/SRV";
|
|
156326
|
+
});
|
|
156327
|
+
const serviceBindingObject = objects.find((entry) => {
|
|
156328
|
+
var _a4;
|
|
156329
|
+
return ((_a4 = entry.objectReference) == null ? void 0 : _a4.type) === "SRVB/SVB";
|
|
156330
|
+
});
|
|
156331
|
+
if (!serviceObject || !serviceBindingObject) {
|
|
156332
|
+
return;
|
|
156333
|
+
}
|
|
156334
|
+
return {
|
|
156335
|
+
serviceName: ((_a3 = serviceBindingObject.objectReference) == null ? void 0 : _a3.name) || "",
|
|
156336
|
+
serviceDefinitionName: ((_b2 = serviceObject.objectReference) == null ? void 0 : _b2.name) || "",
|
|
156337
|
+
serviceVersion: "0001"
|
|
156338
|
+
};
|
|
156339
|
+
}
|
|
156340
|
+
};
|
|
156341
|
+
exports2.ODataServiceGenerator = ODataServiceGenerator;
|
|
156043
156342
|
}
|
|
156044
156343
|
});
|
|
156045
156344
|
|
|
@@ -156185,6 +156484,7 @@ var require_abap_service_provider = __commonJS({
|
|
|
156185
156484
|
var adt_catalog_service_1 = require_adt_catalog_service();
|
|
156186
156485
|
var types_1 = require_types11();
|
|
156187
156486
|
var services_1 = require_services2();
|
|
156487
|
+
var odata_service_generator_1 = require_odata_service_generator();
|
|
156188
156488
|
var ui_service_generator_1 = require_ui_service_generator();
|
|
156189
156489
|
var AbapServiceProvider = class extends service_provider_1.ServiceProvider {
|
|
156190
156490
|
atoSettings;
|
|
@@ -156367,6 +156667,23 @@ var require_abap_service_provider = __commonJS({
|
|
|
156367
156667
|
gen.configure(config, referencedObject, this.getContentType(config));
|
|
156368
156668
|
return gen;
|
|
156369
156669
|
}
|
|
156670
|
+
/**
|
|
156671
|
+
* Gets an OData Service generator.
|
|
156672
|
+
*
|
|
156673
|
+
* @param packageName - Name of package to be used for generated artifacts in ABAP system
|
|
156674
|
+
* @returns An OData Service generator
|
|
156675
|
+
*/
|
|
156676
|
+
async getODataServiceGenerator(packageName) {
|
|
156677
|
+
const generatorService = await this.getAdtService(services_1.RapGeneratorService);
|
|
156678
|
+
if (!generatorService) {
|
|
156679
|
+
throw new Error("RAP Generator are not support on this system");
|
|
156680
|
+
}
|
|
156681
|
+
const config = await generatorService.getRAPGeneratorConfig();
|
|
156682
|
+
const generator = this.createService(this.getServiceUrlFromConfig(config), odata_service_generator_1.ODataServiceGenerator);
|
|
156683
|
+
generator.setContentType(this.getContentType(config));
|
|
156684
|
+
generator.configure(config, packageName || "$TMP");
|
|
156685
|
+
return generator;
|
|
156686
|
+
}
|
|
156370
156687
|
/**
|
|
156371
156688
|
* Get the service URL from the generator config.
|
|
156372
156689
|
*
|
|
@@ -156382,8 +156699,6 @@ var require_abap_service_provider = __commonJS({
|
|
|
156382
156699
|
return config.link[0].href.substring(0, endIndex);
|
|
156383
156700
|
}
|
|
156384
156701
|
/**
|
|
156385
|
-
* Get the content type from the generator config.
|
|
156386
|
-
*
|
|
156387
156702
|
* @param config - generator config
|
|
156388
156703
|
* @returns the type of the content link from service generator config
|
|
156389
156704
|
*/
|
|
@@ -156412,11 +156727,15 @@ var require_generators = __commonJS({
|
|
|
156412
156727
|
"../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/generators/index.js"(exports2) {
|
|
156413
156728
|
"use strict";
|
|
156414
156729
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
156415
|
-
exports2.UiServiceGenerator = void 0;
|
|
156730
|
+
exports2.ODataServiceGenerator = exports2.UiServiceGenerator = void 0;
|
|
156416
156731
|
var ui_service_generator_1 = require_ui_service_generator();
|
|
156417
156732
|
Object.defineProperty(exports2, "UiServiceGenerator", { enumerable: true, get: function() {
|
|
156418
156733
|
return ui_service_generator_1.UiServiceGenerator;
|
|
156419
156734
|
} });
|
|
156735
|
+
var odata_service_generator_1 = require_odata_service_generator();
|
|
156736
|
+
Object.defineProperty(exports2, "ODataServiceGenerator", { enumerable: true, get: function() {
|
|
156737
|
+
return odata_service_generator_1.ODataServiceGenerator;
|
|
156738
|
+
} });
|
|
156420
156739
|
}
|
|
156421
156740
|
});
|
|
156422
156741
|
|
|
@@ -157069,7 +157388,6 @@ var require_factory = __commonJS({
|
|
|
157069
157388
|
var proxy_from_env_1 = require_proxy_from_env();
|
|
157070
157389
|
var https_proxy_agent_1 = require_dist18();
|
|
157071
157390
|
var http_proxy_agent_1 = require_dist19();
|
|
157072
|
-
var feature_toggle_1 = require_dist15();
|
|
157073
157391
|
var PatchedHttpsProxyAgent = class extends https_proxy_agent_1.HttpsProxyAgent {
|
|
157074
157392
|
extraOptions;
|
|
157075
157393
|
/**
|
|
@@ -157101,8 +157419,7 @@ var require_factory = __commonJS({
|
|
|
157101
157419
|
rejectUnauthorized: !providerConfig.ignoreCertErrors
|
|
157102
157420
|
};
|
|
157103
157421
|
const localProxy = (0, proxy_from_env_1.getProxyForUrl)(config.baseURL);
|
|
157104
|
-
|
|
157105
|
-
if (isPatchProxyEnabled && localProxy) {
|
|
157422
|
+
if (localProxy && !(0, btp_utils_1.isAppStudio)()) {
|
|
157106
157423
|
providerConfig.httpsAgent = new PatchedHttpsProxyAgent(localProxy, agentOptions);
|
|
157107
157424
|
providerConfig.httpAgent = new http_proxy_agent_1.HttpProxyAgent(localProxy);
|
|
157108
157425
|
providerConfig.proxy = false;
|
|
@@ -157267,337 +157584,6 @@ var require_dist20 = __commonJS({
|
|
|
157267
157584
|
}
|
|
157268
157585
|
});
|
|
157269
157586
|
|
|
157270
|
-
// node_modules/chalk/source/util.js
|
|
157271
|
-
var require_util7 = __commonJS({
|
|
157272
|
-
"node_modules/chalk/source/util.js"(exports2, module2) {
|
|
157273
|
-
"use strict";
|
|
157274
|
-
var stringReplaceAll = (string, substring, replacer) => {
|
|
157275
|
-
let index = string.indexOf(substring);
|
|
157276
|
-
if (index === -1) {
|
|
157277
|
-
return string;
|
|
157278
|
-
}
|
|
157279
|
-
const substringLength = substring.length;
|
|
157280
|
-
let endIndex = 0;
|
|
157281
|
-
let returnValue = "";
|
|
157282
|
-
do {
|
|
157283
|
-
returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
|
|
157284
|
-
endIndex = index + substringLength;
|
|
157285
|
-
index = string.indexOf(substring, endIndex);
|
|
157286
|
-
} while (index !== -1);
|
|
157287
|
-
returnValue += string.substr(endIndex);
|
|
157288
|
-
return returnValue;
|
|
157289
|
-
};
|
|
157290
|
-
var stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
|
|
157291
|
-
let endIndex = 0;
|
|
157292
|
-
let returnValue = "";
|
|
157293
|
-
do {
|
|
157294
|
-
const gotCR = string[index - 1] === "\r";
|
|
157295
|
-
returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
157296
|
-
endIndex = index + 1;
|
|
157297
|
-
index = string.indexOf("\n", endIndex);
|
|
157298
|
-
} while (index !== -1);
|
|
157299
|
-
returnValue += string.substr(endIndex);
|
|
157300
|
-
return returnValue;
|
|
157301
|
-
};
|
|
157302
|
-
module2.exports = {
|
|
157303
|
-
stringReplaceAll,
|
|
157304
|
-
stringEncaseCRLFWithFirstIndex
|
|
157305
|
-
};
|
|
157306
|
-
}
|
|
157307
|
-
});
|
|
157308
|
-
|
|
157309
|
-
// node_modules/chalk/source/templates.js
|
|
157310
|
-
var require_templates2 = __commonJS({
|
|
157311
|
-
"node_modules/chalk/source/templates.js"(exports2, module2) {
|
|
157312
|
-
"use strict";
|
|
157313
|
-
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;
|
|
157314
|
-
var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
|
|
157315
|
-
var STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
|
|
157316
|
-
var ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
|
|
157317
|
-
var ESCAPES = /* @__PURE__ */ new Map([
|
|
157318
|
-
["n", "\n"],
|
|
157319
|
-
["r", "\r"],
|
|
157320
|
-
["t", " "],
|
|
157321
|
-
["b", "\b"],
|
|
157322
|
-
["f", "\f"],
|
|
157323
|
-
["v", "\v"],
|
|
157324
|
-
["0", "\0"],
|
|
157325
|
-
["\\", "\\"],
|
|
157326
|
-
["e", "\x1B"],
|
|
157327
|
-
["a", "\x07"]
|
|
157328
|
-
]);
|
|
157329
|
-
function unescape2(c) {
|
|
157330
|
-
const u = c[0] === "u";
|
|
157331
|
-
const bracket = c[1] === "{";
|
|
157332
|
-
if (u && !bracket && c.length === 5 || c[0] === "x" && c.length === 3) {
|
|
157333
|
-
return String.fromCharCode(parseInt(c.slice(1), 16));
|
|
157334
|
-
}
|
|
157335
|
-
if (u && bracket) {
|
|
157336
|
-
return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
|
|
157337
|
-
}
|
|
157338
|
-
return ESCAPES.get(c) || c;
|
|
157339
|
-
}
|
|
157340
|
-
function parseArguments(name2, arguments_) {
|
|
157341
|
-
const results = [];
|
|
157342
|
-
const chunks = arguments_.trim().split(/\s*,\s*/g);
|
|
157343
|
-
let matches;
|
|
157344
|
-
for (const chunk of chunks) {
|
|
157345
|
-
const number = Number(chunk);
|
|
157346
|
-
if (!Number.isNaN(number)) {
|
|
157347
|
-
results.push(number);
|
|
157348
|
-
} else if (matches = chunk.match(STRING_REGEX)) {
|
|
157349
|
-
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape4, character) => escape4 ? unescape2(escape4) : character));
|
|
157350
|
-
} else {
|
|
157351
|
-
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name2}')`);
|
|
157352
|
-
}
|
|
157353
|
-
}
|
|
157354
|
-
return results;
|
|
157355
|
-
}
|
|
157356
|
-
function parseStyle(style) {
|
|
157357
|
-
STYLE_REGEX.lastIndex = 0;
|
|
157358
|
-
const results = [];
|
|
157359
|
-
let matches;
|
|
157360
|
-
while ((matches = STYLE_REGEX.exec(style)) !== null) {
|
|
157361
|
-
const name2 = matches[1];
|
|
157362
|
-
if (matches[2]) {
|
|
157363
|
-
const args = parseArguments(name2, matches[2]);
|
|
157364
|
-
results.push([name2].concat(args));
|
|
157365
|
-
} else {
|
|
157366
|
-
results.push([name2]);
|
|
157367
|
-
}
|
|
157368
|
-
}
|
|
157369
|
-
return results;
|
|
157370
|
-
}
|
|
157371
|
-
function buildStyle(chalk, styles) {
|
|
157372
|
-
const enabled2 = {};
|
|
157373
|
-
for (const layer of styles) {
|
|
157374
|
-
for (const style of layer.styles) {
|
|
157375
|
-
enabled2[style[0]] = layer.inverse ? null : style.slice(1);
|
|
157376
|
-
}
|
|
157377
|
-
}
|
|
157378
|
-
let current = chalk;
|
|
157379
|
-
for (const [styleName, styles2] of Object.entries(enabled2)) {
|
|
157380
|
-
if (!Array.isArray(styles2)) {
|
|
157381
|
-
continue;
|
|
157382
|
-
}
|
|
157383
|
-
if (!(styleName in current)) {
|
|
157384
|
-
throw new Error(`Unknown Chalk style: ${styleName}`);
|
|
157385
|
-
}
|
|
157386
|
-
current = styles2.length > 0 ? current[styleName](...styles2) : current[styleName];
|
|
157387
|
-
}
|
|
157388
|
-
return current;
|
|
157389
|
-
}
|
|
157390
|
-
module2.exports = (chalk, temporary) => {
|
|
157391
|
-
const styles = [];
|
|
157392
|
-
const chunks = [];
|
|
157393
|
-
let chunk = [];
|
|
157394
|
-
temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
|
|
157395
|
-
if (escapeCharacter) {
|
|
157396
|
-
chunk.push(unescape2(escapeCharacter));
|
|
157397
|
-
} else if (style) {
|
|
157398
|
-
const string = chunk.join("");
|
|
157399
|
-
chunk = [];
|
|
157400
|
-
chunks.push(styles.length === 0 ? string : buildStyle(chalk, styles)(string));
|
|
157401
|
-
styles.push({ inverse, styles: parseStyle(style) });
|
|
157402
|
-
} else if (close) {
|
|
157403
|
-
if (styles.length === 0) {
|
|
157404
|
-
throw new Error("Found extraneous } in Chalk template literal");
|
|
157405
|
-
}
|
|
157406
|
-
chunks.push(buildStyle(chalk, styles)(chunk.join("")));
|
|
157407
|
-
chunk = [];
|
|
157408
|
-
styles.pop();
|
|
157409
|
-
} else {
|
|
157410
|
-
chunk.push(character);
|
|
157411
|
-
}
|
|
157412
|
-
});
|
|
157413
|
-
chunks.push(chunk.join(""));
|
|
157414
|
-
if (styles.length > 0) {
|
|
157415
|
-
const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
|
|
157416
|
-
throw new Error(errMessage);
|
|
157417
|
-
}
|
|
157418
|
-
return chunks.join("");
|
|
157419
|
-
};
|
|
157420
|
-
}
|
|
157421
|
-
});
|
|
157422
|
-
|
|
157423
|
-
// node_modules/chalk/source/index.js
|
|
157424
|
-
var require_source2 = __commonJS({
|
|
157425
|
-
"node_modules/chalk/source/index.js"(exports2, module2) {
|
|
157426
|
-
"use strict";
|
|
157427
|
-
var ansiStyles = require_ansi_styles();
|
|
157428
|
-
var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
|
|
157429
|
-
var {
|
|
157430
|
-
stringReplaceAll,
|
|
157431
|
-
stringEncaseCRLFWithFirstIndex
|
|
157432
|
-
} = require_util7();
|
|
157433
|
-
var { isArray: isArray2 } = Array;
|
|
157434
|
-
var levelMapping = [
|
|
157435
|
-
"ansi",
|
|
157436
|
-
"ansi",
|
|
157437
|
-
"ansi256",
|
|
157438
|
-
"ansi16m"
|
|
157439
|
-
];
|
|
157440
|
-
var styles = /* @__PURE__ */ Object.create(null);
|
|
157441
|
-
var applyOptions = (object, options2 = {}) => {
|
|
157442
|
-
if (options2.level && !(Number.isInteger(options2.level) && options2.level >= 0 && options2.level <= 3)) {
|
|
157443
|
-
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
157444
|
-
}
|
|
157445
|
-
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
157446
|
-
object.level = options2.level === void 0 ? colorLevel : options2.level;
|
|
157447
|
-
};
|
|
157448
|
-
var ChalkClass = class {
|
|
157449
|
-
constructor(options2) {
|
|
157450
|
-
return chalkFactory(options2);
|
|
157451
|
-
}
|
|
157452
|
-
};
|
|
157453
|
-
var chalkFactory = (options2) => {
|
|
157454
|
-
const chalk2 = {};
|
|
157455
|
-
applyOptions(chalk2, options2);
|
|
157456
|
-
chalk2.template = (...arguments_) => chalkTag(chalk2.template, ...arguments_);
|
|
157457
|
-
Object.setPrototypeOf(chalk2, Chalk.prototype);
|
|
157458
|
-
Object.setPrototypeOf(chalk2.template, chalk2);
|
|
157459
|
-
chalk2.template.constructor = () => {
|
|
157460
|
-
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
|
157461
|
-
};
|
|
157462
|
-
chalk2.template.Instance = ChalkClass;
|
|
157463
|
-
return chalk2.template;
|
|
157464
|
-
};
|
|
157465
|
-
function Chalk(options2) {
|
|
157466
|
-
return chalkFactory(options2);
|
|
157467
|
-
}
|
|
157468
|
-
for (const [styleName, style] of Object.entries(ansiStyles)) {
|
|
157469
|
-
styles[styleName] = {
|
|
157470
|
-
get() {
|
|
157471
|
-
const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
|
|
157472
|
-
Object.defineProperty(this, styleName, { value: builder });
|
|
157473
|
-
return builder;
|
|
157474
|
-
}
|
|
157475
|
-
};
|
|
157476
|
-
}
|
|
157477
|
-
styles.visible = {
|
|
157478
|
-
get() {
|
|
157479
|
-
const builder = createBuilder(this, this._styler, true);
|
|
157480
|
-
Object.defineProperty(this, "visible", { value: builder });
|
|
157481
|
-
return builder;
|
|
157482
|
-
}
|
|
157483
|
-
};
|
|
157484
|
-
var usedModels = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
|
|
157485
|
-
for (const model of usedModels) {
|
|
157486
|
-
styles[model] = {
|
|
157487
|
-
get() {
|
|
157488
|
-
const { level } = this;
|
|
157489
|
-
return function(...arguments_) {
|
|
157490
|
-
const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
|
|
157491
|
-
return createBuilder(this, styler, this._isEmpty);
|
|
157492
|
-
};
|
|
157493
|
-
}
|
|
157494
|
-
};
|
|
157495
|
-
}
|
|
157496
|
-
for (const model of usedModels) {
|
|
157497
|
-
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
157498
|
-
styles[bgModel] = {
|
|
157499
|
-
get() {
|
|
157500
|
-
const { level } = this;
|
|
157501
|
-
return function(...arguments_) {
|
|
157502
|
-
const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
|
|
157503
|
-
return createBuilder(this, styler, this._isEmpty);
|
|
157504
|
-
};
|
|
157505
|
-
}
|
|
157506
|
-
};
|
|
157507
|
-
}
|
|
157508
|
-
var proto = Object.defineProperties(() => {
|
|
157509
|
-
}, {
|
|
157510
|
-
...styles,
|
|
157511
|
-
level: {
|
|
157512
|
-
enumerable: true,
|
|
157513
|
-
get() {
|
|
157514
|
-
return this._generator.level;
|
|
157515
|
-
},
|
|
157516
|
-
set(level) {
|
|
157517
|
-
this._generator.level = level;
|
|
157518
|
-
}
|
|
157519
|
-
}
|
|
157520
|
-
});
|
|
157521
|
-
var createStyler = (open, close, parent) => {
|
|
157522
|
-
let openAll;
|
|
157523
|
-
let closeAll;
|
|
157524
|
-
if (parent === void 0) {
|
|
157525
|
-
openAll = open;
|
|
157526
|
-
closeAll = close;
|
|
157527
|
-
} else {
|
|
157528
|
-
openAll = parent.openAll + open;
|
|
157529
|
-
closeAll = close + parent.closeAll;
|
|
157530
|
-
}
|
|
157531
|
-
return {
|
|
157532
|
-
open,
|
|
157533
|
-
close,
|
|
157534
|
-
openAll,
|
|
157535
|
-
closeAll,
|
|
157536
|
-
parent
|
|
157537
|
-
};
|
|
157538
|
-
};
|
|
157539
|
-
var createBuilder = (self2, _styler, _isEmpty) => {
|
|
157540
|
-
const builder = (...arguments_) => {
|
|
157541
|
-
if (isArray2(arguments_[0]) && isArray2(arguments_[0].raw)) {
|
|
157542
|
-
return applyStyle(builder, chalkTag(builder, ...arguments_));
|
|
157543
|
-
}
|
|
157544
|
-
return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
157545
|
-
};
|
|
157546
|
-
Object.setPrototypeOf(builder, proto);
|
|
157547
|
-
builder._generator = self2;
|
|
157548
|
-
builder._styler = _styler;
|
|
157549
|
-
builder._isEmpty = _isEmpty;
|
|
157550
|
-
return builder;
|
|
157551
|
-
};
|
|
157552
|
-
var applyStyle = (self2, string) => {
|
|
157553
|
-
if (self2.level <= 0 || !string) {
|
|
157554
|
-
return self2._isEmpty ? "" : string;
|
|
157555
|
-
}
|
|
157556
|
-
let styler = self2._styler;
|
|
157557
|
-
if (styler === void 0) {
|
|
157558
|
-
return string;
|
|
157559
|
-
}
|
|
157560
|
-
const { openAll, closeAll } = styler;
|
|
157561
|
-
if (string.indexOf("\x1B") !== -1) {
|
|
157562
|
-
while (styler !== void 0) {
|
|
157563
|
-
string = stringReplaceAll(string, styler.close, styler.open);
|
|
157564
|
-
styler = styler.parent;
|
|
157565
|
-
}
|
|
157566
|
-
}
|
|
157567
|
-
const lfIndex = string.indexOf("\n");
|
|
157568
|
-
if (lfIndex !== -1) {
|
|
157569
|
-
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
157570
|
-
}
|
|
157571
|
-
return openAll + string + closeAll;
|
|
157572
|
-
};
|
|
157573
|
-
var template;
|
|
157574
|
-
var chalkTag = (chalk2, ...strings) => {
|
|
157575
|
-
const [firstString] = strings;
|
|
157576
|
-
if (!isArray2(firstString) || !isArray2(firstString.raw)) {
|
|
157577
|
-
return strings.join(" ");
|
|
157578
|
-
}
|
|
157579
|
-
const arguments_ = strings.slice(1);
|
|
157580
|
-
const parts = [firstString.raw[0]];
|
|
157581
|
-
for (let i = 1; i < firstString.length; i++) {
|
|
157582
|
-
parts.push(
|
|
157583
|
-
String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"),
|
|
157584
|
-
String(firstString.raw[i])
|
|
157585
|
-
);
|
|
157586
|
-
}
|
|
157587
|
-
if (template === void 0) {
|
|
157588
|
-
template = require_templates2();
|
|
157589
|
-
}
|
|
157590
|
-
return template(chalk2, parts.join(""));
|
|
157591
|
-
};
|
|
157592
|
-
Object.defineProperties(Chalk.prototype, styles);
|
|
157593
|
-
var chalk = Chalk();
|
|
157594
|
-
chalk.supportsColor = stdoutColor;
|
|
157595
|
-
chalk.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
157596
|
-
chalk.stderr.supportsColor = stderrColor;
|
|
157597
|
-
module2.exports = chalk;
|
|
157598
|
-
}
|
|
157599
|
-
});
|
|
157600
|
-
|
|
157601
157587
|
// ../../node_modules/@sap-ux/ui5-info/dist/constants.js
|
|
157602
157588
|
var require_constants12 = __commonJS({
|
|
157603
157589
|
"../../node_modules/@sap-ux/ui5-info/dist/constants.js"(exports2) {
|
|
@@ -157674,12 +157660,16 @@ var require_ui5_version_fallback = __commonJS({
|
|
|
157674
157660
|
};
|
|
157675
157661
|
exports2.ui5VersionFallbacks = [
|
|
157676
157662
|
{
|
|
157677
|
-
version: "1.
|
|
157663
|
+
version: "1.136.*",
|
|
157678
157664
|
support: exports2.supportState.maintenance
|
|
157679
157665
|
},
|
|
157666
|
+
{
|
|
157667
|
+
version: "1.135.*",
|
|
157668
|
+
support: exports2.supportState.outOfMaintenance
|
|
157669
|
+
},
|
|
157680
157670
|
{
|
|
157681
157671
|
version: "1.134.*",
|
|
157682
|
-
support: exports2.supportState.
|
|
157672
|
+
support: exports2.supportState.outOfMaintenance
|
|
157683
157673
|
},
|
|
157684
157674
|
{
|
|
157685
157675
|
version: "1.133.*",
|
|
@@ -157699,7 +157689,7 @@ var require_ui5_version_fallback = __commonJS({
|
|
|
157699
157689
|
},
|
|
157700
157690
|
{
|
|
157701
157691
|
version: "1.129.*",
|
|
157702
|
-
support: exports2.supportState.
|
|
157692
|
+
support: exports2.supportState.outOfMaintenance
|
|
157703
157693
|
},
|
|
157704
157694
|
{
|
|
157705
157695
|
version: "1.128.*",
|
|
@@ -157707,11 +157697,11 @@ var require_ui5_version_fallback = __commonJS({
|
|
|
157707
157697
|
},
|
|
157708
157698
|
{
|
|
157709
157699
|
version: "1.127.*",
|
|
157710
|
-
support: exports2.supportState.
|
|
157700
|
+
support: exports2.supportState.outOfMaintenance
|
|
157711
157701
|
},
|
|
157712
157702
|
{
|
|
157713
157703
|
version: "1.126.*",
|
|
157714
|
-
support: exports2.supportState.
|
|
157704
|
+
support: exports2.supportState.outOfMaintenance
|
|
157715
157705
|
},
|
|
157716
157706
|
{
|
|
157717
157707
|
version: "1.125.*",
|
|
@@ -157719,7 +157709,7 @@ var require_ui5_version_fallback = __commonJS({
|
|
|
157719
157709
|
},
|
|
157720
157710
|
{
|
|
157721
157711
|
version: "1.124.*",
|
|
157722
|
-
support: exports2.supportState.
|
|
157712
|
+
support: exports2.supportState.outOfMaintenance
|
|
157723
157713
|
},
|
|
157724
157714
|
{
|
|
157725
157715
|
version: "1.123.*",
|
|
@@ -157731,7 +157721,7 @@ var require_ui5_version_fallback = __commonJS({
|
|
|
157731
157721
|
},
|
|
157732
157722
|
{
|
|
157733
157723
|
version: "1.121.*",
|
|
157734
|
-
support: exports2.supportState.
|
|
157724
|
+
support: exports2.supportState.outOfMaintenance
|
|
157735
157725
|
},
|
|
157736
157726
|
{
|
|
157737
157727
|
version: "1.120.*",
|
|
@@ -158153,25 +158143,10 @@ var require_ui5_version_info = __commonJS({
|
|
|
158153
158143
|
}
|
|
158154
158144
|
return { versions: versionStrings, support: supportInfo };
|
|
158155
158145
|
}
|
|
158156
|
-
var retrieveUI5VersionsCache = async (type2, useCache =
|
|
158146
|
+
var retrieveUI5VersionsCache = async (type2, useCache = true, snapshotUrl) => {
|
|
158157
158147
|
let versions = [];
|
|
158158
158148
|
let support = [];
|
|
158159
|
-
if (!useCache) {
|
|
158160
|
-
switch (type2) {
|
|
158161
|
-
case "officialVersions":
|
|
158162
|
-
case "support":
|
|
158163
|
-
({ versions, support } = await parseUI5VersionsAndSupport());
|
|
158164
|
-
return type2 === "officialVersions" ? versions : support;
|
|
158165
|
-
case "snapshotsVersions":
|
|
158166
|
-
if (snapshotUrl) {
|
|
158167
|
-
({ versions } = await parseUI5VersionsAndSupport(snapshotUrl));
|
|
158168
|
-
return versions;
|
|
158169
|
-
}
|
|
158170
|
-
break;
|
|
158171
|
-
default:
|
|
158172
|
-
}
|
|
158173
|
-
}
|
|
158174
|
-
if (constants_1.ui5VersionsCache[type2].length === 0) {
|
|
158149
|
+
if (constants_1.ui5VersionsCache[type2].length === 0 || !useCache) {
|
|
158175
158150
|
switch (type2) {
|
|
158176
158151
|
case "officialVersions":
|
|
158177
158152
|
case "support":
|
|
@@ -158188,7 +158163,10 @@ var require_ui5_version_info = __commonJS({
|
|
|
158188
158163
|
default:
|
|
158189
158164
|
}
|
|
158190
158165
|
}
|
|
158191
|
-
|
|
158166
|
+
if (useCache) {
|
|
158167
|
+
return constants_1.ui5VersionsCache[type2];
|
|
158168
|
+
}
|
|
158169
|
+
return type2 === "support" ? support : versions;
|
|
158192
158170
|
};
|
|
158193
158171
|
async function retrieveUI5Versions(filterOptions, logger3 = new logger_1.ToolsLogger()) {
|
|
158194
158172
|
let officialVersions = [];
|
|
@@ -158293,16 +158271,10 @@ var require_ui5_version_info = __commonJS({
|
|
|
158293
158271
|
return ui5Version;
|
|
158294
158272
|
});
|
|
158295
158273
|
}
|
|
158296
|
-
async function getLatestUI5Version() {
|
|
158274
|
+
async function getLatestUI5Version(useCache = true) {
|
|
158297
158275
|
var _a3;
|
|
158298
|
-
|
|
158299
|
-
|
|
158300
|
-
const ui5Versions = await requestUI5Versions();
|
|
158301
|
-
version = (_a3 = ui5Versions == null ? void 0 : ui5Versions.latest) == null ? void 0 : _a3.version;
|
|
158302
|
-
} catch {
|
|
158303
|
-
version = void 0;
|
|
158304
|
-
}
|
|
158305
|
-
return version;
|
|
158276
|
+
const ui5Versions = await getUI5Versions2({ useCache });
|
|
158277
|
+
return (_a3 = ui5Versions == null ? void 0 : ui5Versions[0]) == null ? void 0 : _a3.version;
|
|
158306
158278
|
}
|
|
158307
158279
|
}
|
|
158308
158280
|
});
|
|
@@ -158317,6 +158289,7 @@ var require_ui5_theme_info = __commonJS({
|
|
|
158317
158289
|
exports2.getUi5Themes = getUi5Themes;
|
|
158318
158290
|
var constants_1 = require_constants12();
|
|
158319
158291
|
var semver_1 = require_semver2();
|
|
158292
|
+
var ui5_version_info_1 = require_ui5_version_info();
|
|
158320
158293
|
var MIN_UI5_VER_DARK_THEME = "1.72.0";
|
|
158321
158294
|
var MIN_UI5_VER_HORIZON_THEME = "1.102.0";
|
|
158322
158295
|
var MAX_UI5_VER_BELIZE_THEME = "1.136.0";
|
|
@@ -158377,9 +158350,9 @@ var require_ui5_theme_info = __commonJS({
|
|
|
158377
158350
|
const isSupportedUntil = theme.supportUntil ? (0, semver_1.lt)(cleanSemVer, theme.supportUntil) : true;
|
|
158378
158351
|
return isSupportedSince && isSupportedUntil;
|
|
158379
158352
|
}
|
|
158380
|
-
function getUi5Themes(ui5Version = constants_1.defaultVersion) {
|
|
158381
|
-
const
|
|
158382
|
-
const cleanSemVer = (0, semver_1.coerce)(
|
|
158353
|
+
async function getUi5Themes(ui5Version = constants_1.defaultVersion) {
|
|
158354
|
+
const resolvedUi5Version = ui5Version === constants_1.latestVersionString ? await (0, ui5_version_info_1.getLatestUI5Version)(true) : ui5Version.replace("snapshot-", "");
|
|
158355
|
+
const cleanSemVer = (0, semver_1.coerce)(resolvedUi5Version);
|
|
158383
158356
|
if (!cleanSemVer) {
|
|
158384
158357
|
return Object.values(exports2.ui5Themes);
|
|
158385
158358
|
}
|
|
@@ -160429,7 +160402,7 @@ var import_yaml2 = __toESM(require_dist5());
|
|
|
160429
160402
|
var package_default = {
|
|
160430
160403
|
name: "@sap/ux-ui5-tooling",
|
|
160431
160404
|
displayName: "SAP Fiori Tools \u2013 UI5 Tooling",
|
|
160432
|
-
version: "1.18.
|
|
160405
|
+
version: "1.18.2",
|
|
160433
160406
|
description: "SAP Fiori Tools \u2013 UI5 Tooling",
|
|
160434
160407
|
publisher: "SAPSE",
|
|
160435
160408
|
license: "SEE LICENSE IN LICENSE",
|
|
@@ -160464,7 +160437,7 @@ var package_default = {
|
|
|
160464
160437
|
madge: "madge --warning --circular --extensions ts ./"
|
|
160465
160438
|
},
|
|
160466
160439
|
dependencies: {
|
|
160467
|
-
"@sap-ux/preview-middleware": "0.20.
|
|
160440
|
+
"@sap-ux/preview-middleware": "0.20.48",
|
|
160468
160441
|
"@ui5/fs": "3.0.4",
|
|
160469
160442
|
"connect-livereload": "0.6.1",
|
|
160470
160443
|
debug: "4.3.7",
|
|
@@ -160477,26 +160450,25 @@ var package_default = {
|
|
|
160477
160450
|
"@zowe/secrets-for-zowe-sdk": "8.1.2"
|
|
160478
160451
|
},
|
|
160479
160452
|
devDependencies: {
|
|
160480
|
-
"@playwright/test": "1.
|
|
160481
|
-
"@sap-ux/adp-tooling": "0.14.
|
|
160482
|
-
"@sap-ux/axios-extension": "1.
|
|
160483
|
-
"@sap-ux/backend-proxy-middleware": "0.9.
|
|
160453
|
+
"@playwright/test": "1.52.0",
|
|
160454
|
+
"@sap-ux/adp-tooling": "0.14.35",
|
|
160455
|
+
"@sap-ux/axios-extension": "1.22.3",
|
|
160456
|
+
"@sap-ux/backend-proxy-middleware": "0.9.8",
|
|
160484
160457
|
"@sap-ux/btp-utils": "1.1.0",
|
|
160485
|
-
"@sap-ux/deploy-tooling": "0.16.
|
|
160458
|
+
"@sap-ux/deploy-tooling": "0.16.19",
|
|
160486
160459
|
"@sap-ux/feature-toggle": "0.3.0",
|
|
160487
160460
|
"@sap-ux/guided-answers-helper": "0.3.0",
|
|
160488
160461
|
"@sap-ux/logger": "0.7.0",
|
|
160489
|
-
"@sap-ux/project-access": "1.30.
|
|
160462
|
+
"@sap-ux/project-access": "1.30.3",
|
|
160490
160463
|
"@sap-ux/reload-middleware": "0.3.0",
|
|
160491
160464
|
"@sap-ux/serve-static-middleware": "0.3.0",
|
|
160492
160465
|
"@sap-ux/store": "1.1.0",
|
|
160493
|
-
"@sap-ux/telemetry": "0.6.
|
|
160466
|
+
"@sap-ux/telemetry": "0.6.4",
|
|
160494
160467
|
"@sap-ux/ui5-config": "0.28.2",
|
|
160495
|
-
"@sap-ux/ui5-info": "0.
|
|
160468
|
+
"@sap-ux/ui5-info": "0.12.0",
|
|
160496
160469
|
"@sap-ux/ui5-proxy-middleware": "1.5.2",
|
|
160497
|
-
"@sap/ux-app-templates": "1.18.
|
|
160470
|
+
"@sap/ux-app-templates": "1.18.2",
|
|
160498
160471
|
"@types/fs-extra": "11.0.4",
|
|
160499
|
-
"@types/jest-dev-server": "5.0.3",
|
|
160500
160472
|
"@types/marked": "4.0.1",
|
|
160501
160473
|
"@types/prompts": "2.0.14",
|
|
160502
160474
|
"@types/supertest": "6.0.3",
|
|
@@ -160511,7 +160483,6 @@ var package_default = {
|
|
|
160511
160483
|
hasbin: "1.2.3",
|
|
160512
160484
|
"http-proxy-middleware": "2.0.9",
|
|
160513
160485
|
i18next: "19.0.2",
|
|
160514
|
-
"jest-dev-server": "7.0.0",
|
|
160515
160486
|
lodash: "4.17.21",
|
|
160516
160487
|
marked: "4.0.10",
|
|
160517
160488
|
"marked-terminal": "4.2.0",
|
|
@@ -160524,7 +160495,7 @@ var package_default = {
|
|
|
160524
160495
|
typescript: "5.8.2",
|
|
160525
160496
|
"wait-for-expect": "3.0.2",
|
|
160526
160497
|
yaml: "2.2.2",
|
|
160527
|
-
"yargs-parser": "
|
|
160498
|
+
"yargs-parser": "21.1.1",
|
|
160528
160499
|
yazl: "2.5.1"
|
|
160529
160500
|
},
|
|
160530
160501
|
ui5: {
|
|
@@ -160597,7 +160568,8 @@ var cliParamMap = {
|
|
|
160597
160568
|
"-up": "uaa-password",
|
|
160598
160569
|
"-ui": "uaa-clientid",
|
|
160599
160570
|
"-us": "uaa-clientsecret",
|
|
160600
|
-
"-lr": "lrep"
|
|
160571
|
+
"-lr": "lrep",
|
|
160572
|
+
"-at": "authenticationType"
|
|
160601
160573
|
};
|
|
160602
160574
|
var paramMap = Object.freeze(cliParamMap);
|
|
160603
160575
|
|
|
@@ -160607,7 +160579,7 @@ var import_guided_answers_helper = __toESM(require_dist16());
|
|
|
160607
160579
|
var import_yaml = __toESM(require_dist5());
|
|
160608
160580
|
var import_axios_extension = __toESM(require_dist20());
|
|
160609
160581
|
var import_btp_utils = __toESM(require_dist4());
|
|
160610
|
-
var import_chalk = __toESM(
|
|
160582
|
+
var import_chalk = __toESM(require_source());
|
|
160611
160583
|
var import_project_access = __toESM(require_dist11());
|
|
160612
160584
|
var import_telemetry = __toESM(require_dist14());
|
|
160613
160585
|
var import_ui5_info = __toESM(require_dist21());
|