@sap/ux-ui5-tooling 1.10.3 → 1.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +1014 -236
- package/dist/markdowns/deploy/deploy.en.md +1 -1
- package/dist/markdowns/undeploy/undeploy.en.md +1 -1
- package/dist/middlewares/fiori-tools-appreload.js +1 -1
- package/dist/middlewares/fiori-tools-preview.js +118 -13
- package/dist/middlewares/fiori-tools-proxy.js +118 -13
- package/dist/middlewares/fiori-tools-servestatic.js +1 -1
- package/dist/tasks/cf-deploy/index.js +127 -22
- package/dist/tasks/deploy/index.js +994 -219
- package/package.json +10 -10
package/dist/cli/index.js
CHANGED
|
@@ -4945,8 +4945,8 @@ var require_axios = __commonJS({
|
|
|
4945
4945
|
axios3.CancelToken = require_CancelToken();
|
|
4946
4946
|
axios3.isCancel = require_isCancel();
|
|
4947
4947
|
axios3.VERSION = require_data().version;
|
|
4948
|
-
axios3.all = function all(
|
|
4949
|
-
return Promise.all(
|
|
4948
|
+
axios3.all = function all(promises8) {
|
|
4949
|
+
return Promise.all(promises8);
|
|
4950
4950
|
};
|
|
4951
4951
|
axios3.spread = require_spread();
|
|
4952
4952
|
axios3.isAxiosError = require_isAxiosError();
|
|
@@ -12526,13 +12526,13 @@ var require_core = __commonJS({
|
|
|
12526
12526
|
this.emit("downloadProgress", this.downloadProgress);
|
|
12527
12527
|
const rawCookies = response.headers["set-cookie"];
|
|
12528
12528
|
if (is_1.default.object(options3.cookieJar) && rawCookies) {
|
|
12529
|
-
let
|
|
12529
|
+
let promises8 = rawCookies.map(async (rawCookie) => options3.cookieJar.setCookie(rawCookie, url.toString()));
|
|
12530
12530
|
if (options3.ignoreInvalidCookies) {
|
|
12531
|
-
|
|
12531
|
+
promises8 = promises8.map(async (p) => p.catch(() => {
|
|
12532
12532
|
}));
|
|
12533
12533
|
}
|
|
12534
12534
|
try {
|
|
12535
|
-
await Promise.all(
|
|
12535
|
+
await Promise.all(promises8);
|
|
12536
12536
|
} catch (error4) {
|
|
12537
12537
|
this._beforeError(error4);
|
|
12538
12538
|
return;
|
|
@@ -31124,7 +31124,7 @@ var require_writeFile = __commonJS({
|
|
|
31124
31124
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
31125
31125
|
}
|
|
31126
31126
|
var isDeno2 = typeof Deno !== "undefined";
|
|
31127
|
-
var
|
|
31127
|
+
var YAML9 = typeof _yaml2.default !== "undefined" && _yaml2.default.load ? _yaml2.default : void 0;
|
|
31128
31128
|
var fs4 = fsMod2 ? fsMod2.default || fsMod2 : void 0;
|
|
31129
31129
|
function dirname(path3) {
|
|
31130
31130
|
if (path3.length === 0)
|
|
@@ -31226,7 +31226,7 @@ var require_writeFile = __commonJS({
|
|
|
31226
31226
|
break;
|
|
31227
31227
|
case ".yml":
|
|
31228
31228
|
case ".yaml":
|
|
31229
|
-
result2 =
|
|
31229
|
+
result2 = YAML9.dump(data2, {
|
|
31230
31230
|
ident: options3.indent
|
|
31231
31231
|
});
|
|
31232
31232
|
break;
|
|
@@ -32444,25 +32444,25 @@ var require_promise = __commonJS({
|
|
|
32444
32444
|
"use strict";
|
|
32445
32445
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32446
32446
|
exports2.allSettled = void 0;
|
|
32447
|
-
function allSettled(
|
|
32448
|
-
if (!
|
|
32447
|
+
function allSettled(promises8) {
|
|
32448
|
+
if (!promises8 || promises8.length === 0) {
|
|
32449
32449
|
return Promise.resolve([]);
|
|
32450
32450
|
}
|
|
32451
|
-
const results = Array(
|
|
32451
|
+
const results = Array(promises8.length);
|
|
32452
32452
|
let count = 0;
|
|
32453
32453
|
return new Promise((resolve2) => {
|
|
32454
|
-
|
|
32454
|
+
promises8.forEach(async (promise, index2) => {
|
|
32455
32455
|
try {
|
|
32456
32456
|
const result2 = await Promise.resolve(promise);
|
|
32457
32457
|
results[index2] = { status: "fulfilled", value: result2 };
|
|
32458
32458
|
count++;
|
|
32459
|
-
if (count ===
|
|
32459
|
+
if (count === promises8.length) {
|
|
32460
32460
|
resolve2(results);
|
|
32461
32461
|
}
|
|
32462
32462
|
} catch (err) {
|
|
32463
32463
|
results[index2] = { status: "rejected", reason: err };
|
|
32464
32464
|
count++;
|
|
32465
|
-
if (count ===
|
|
32465
|
+
if (count === promises8.length) {
|
|
32466
32466
|
resolve2(results);
|
|
32467
32467
|
}
|
|
32468
32468
|
}
|
|
@@ -65709,7 +65709,7 @@ var require_package5 = __commonJS({
|
|
|
65709
65709
|
"../lib/telemetry/dist/package.json"(exports2, module2) {
|
|
65710
65710
|
module2.exports = {
|
|
65711
65711
|
name: "@sap/ux-telemetry",
|
|
65712
|
-
version: "1.10.
|
|
65712
|
+
version: "1.10.4",
|
|
65713
65713
|
description: "SAP Fiori tools telemetry library",
|
|
65714
65714
|
main: "dist/src/index.js",
|
|
65715
65715
|
author: "SAP SE",
|
|
@@ -65734,10 +65734,10 @@ var require_package5 = __commonJS({
|
|
|
65734
65734
|
},
|
|
65735
65735
|
dependencies: {
|
|
65736
65736
|
"@sap-ux/store": "0.3.8",
|
|
65737
|
-
"@sap/ux-cds": "1.10.
|
|
65738
|
-
"@sap/ux-common-utils": "1.10.
|
|
65739
|
-
"@sap/ux-feature-toggle": "1.10.
|
|
65740
|
-
"@sap/ux-project-access": "1.10.
|
|
65737
|
+
"@sap/ux-cds": "1.10.4",
|
|
65738
|
+
"@sap/ux-common-utils": "1.10.4",
|
|
65739
|
+
"@sap/ux-feature-toggle": "1.10.4",
|
|
65740
|
+
"@sap/ux-project-access": "1.10.4",
|
|
65741
65741
|
applicationinsights: "1.4.1",
|
|
65742
65742
|
axios: "0.26.0",
|
|
65743
65743
|
"performance-now": "2.1.0",
|
|
@@ -70366,7 +70366,7 @@ var require_cap = __commonJS({
|
|
|
70366
70366
|
});
|
|
70367
70367
|
};
|
|
70368
70368
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
70369
|
-
exports2.getCapEnvironment = exports2.getCapModelAndServices = exports2.getCapCustomPaths = exports2.getCapProjectType = exports2.isCapJavaProject = exports2.isCapNodeJsProject = void 0;
|
|
70369
|
+
exports2.toReferenceUri = exports2.toAbsoluteUri = exports2.getCapEnvironment = exports2.readCapServiceMetadataEdmx = exports2.getCapModelAndServices = exports2.getCapCustomPaths = exports2.getCapProjectType = exports2.isCapJavaProject = exports2.isCapNodeJsProject = void 0;
|
|
70370
70370
|
var path_1 = require("path");
|
|
70371
70371
|
var constants_1 = require_constants5();
|
|
70372
70372
|
var file_1 = require_file4();
|
|
@@ -70422,7 +70422,7 @@ var require_cap = __commonJS({
|
|
|
70422
70422
|
exports2.getCapCustomPaths = getCapCustomPaths;
|
|
70423
70423
|
function getCapModelAndServices(projectRoot) {
|
|
70424
70424
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70425
|
-
const cds = yield (
|
|
70425
|
+
const cds = yield loadCdsModuleFromProject(projectRoot);
|
|
70426
70426
|
const capProjectPaths = yield getCapCustomPaths(projectRoot);
|
|
70427
70427
|
const modelPaths = [
|
|
70428
70428
|
(0, path_1.join)(projectRoot, capProjectPaths.app),
|
|
@@ -70430,7 +70430,15 @@ var require_cap = __commonJS({
|
|
|
70430
70430
|
(0, path_1.join)(projectRoot, capProjectPaths.db)
|
|
70431
70431
|
];
|
|
70432
70432
|
const model = yield cds.load(modelPaths);
|
|
70433
|
-
|
|
70433
|
+
let services = cds.compile.to["serviceinfo"](model, { root: projectRoot });
|
|
70434
|
+
if (services === null || services === void 0 ? void 0 : services.map) {
|
|
70435
|
+
services = services === null || services === void 0 ? void 0 : services.map((value) => {
|
|
70436
|
+
return {
|
|
70437
|
+
name: value.name,
|
|
70438
|
+
urlPath: uniformUrl(value.urlPath)
|
|
70439
|
+
};
|
|
70440
|
+
});
|
|
70441
|
+
}
|
|
70434
70442
|
return {
|
|
70435
70443
|
model,
|
|
70436
70444
|
services
|
|
@@ -70438,14 +70446,105 @@ var require_cap = __commonJS({
|
|
|
70438
70446
|
});
|
|
70439
70447
|
}
|
|
70440
70448
|
exports2.getCapModelAndServices = getCapModelAndServices;
|
|
70449
|
+
function uniformUrl(url) {
|
|
70450
|
+
return url.replace(/\\/g, "/").replace(/\/\//g, "/");
|
|
70451
|
+
}
|
|
70452
|
+
function readCapServiceMetadataEdmx(root, uri, version = "v4") {
|
|
70453
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70454
|
+
try {
|
|
70455
|
+
const { model, services } = yield getCapModelAndServices(root);
|
|
70456
|
+
const service = findServiceByUri(services, uri);
|
|
70457
|
+
if (!service) {
|
|
70458
|
+
throw Error(`Service for uri: '${uri}' not found. Available services: ${JSON.stringify(services)}`);
|
|
70459
|
+
}
|
|
70460
|
+
const cds = yield loadCdsModuleFromProject(root);
|
|
70461
|
+
const edmx = cds.compile.to.edmx(model, { service: service.name, version });
|
|
70462
|
+
return edmx;
|
|
70463
|
+
} catch (error4) {
|
|
70464
|
+
throw Error(`Error while reading CAP service metadata. Path: '${root}', service uri: '${uri}', error: '${error4.toString()}'}`);
|
|
70465
|
+
}
|
|
70466
|
+
});
|
|
70467
|
+
}
|
|
70468
|
+
exports2.readCapServiceMetadataEdmx = readCapServiceMetadataEdmx;
|
|
70469
|
+
function findServiceByUri(services, uri) {
|
|
70470
|
+
const searchUri = uniformUrl(uri).replace(/(?:^\/)|(?:\/$)/g, "");
|
|
70471
|
+
return services.find((srv) => srv.urlPath.replace(/(?:^\/)|(?:\/$)/g, "") === searchUri);
|
|
70472
|
+
}
|
|
70441
70473
|
function getCapEnvironment(capProjectPath) {
|
|
70442
70474
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70443
|
-
const
|
|
70444
|
-
const cds = "default" in module3 ? module3.default : module3;
|
|
70475
|
+
const cds = yield loadCdsModuleFromProject(capProjectPath);
|
|
70445
70476
|
return cds.env.for("cds", capProjectPath);
|
|
70446
70477
|
});
|
|
70447
70478
|
}
|
|
70448
70479
|
exports2.getCapEnvironment = getCapEnvironment;
|
|
70480
|
+
function loadCdsModuleFromProject(capProjectPath) {
|
|
70481
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70482
|
+
const module3 = yield (0, module_loader_1.loadModuleFromProject)(capProjectPath, "@sap/cds");
|
|
70483
|
+
return "default" in module3 ? module3.default : module3;
|
|
70484
|
+
});
|
|
70485
|
+
}
|
|
70486
|
+
var toAbsoluteUri = (projectRoot, relativeUri) => (0, path_1.join)(projectRoot, relativeUri);
|
|
70487
|
+
exports2.toAbsoluteUri = toAbsoluteUri;
|
|
70488
|
+
var toReferenceUri = (projectRoot, relativeUriFrom, relativeUriTo) => __awaiter(void 0, void 0, void 0, function* () {
|
|
70489
|
+
let relativeUri = "";
|
|
70490
|
+
const indexNodeModules = relativeUriTo.lastIndexOf("node_modules");
|
|
70491
|
+
if (indexNodeModules >= 0) {
|
|
70492
|
+
const indexLastDot = relativeUriTo.lastIndexOf(".");
|
|
70493
|
+
if (indexLastDot > indexNodeModules + 13) {
|
|
70494
|
+
relativeUri = relativeUriTo.slice(indexNodeModules + 13, indexLastDot);
|
|
70495
|
+
} else {
|
|
70496
|
+
relativeUri = relativeUriTo.slice(indexNodeModules + 13);
|
|
70497
|
+
}
|
|
70498
|
+
} else if (relativeUriTo.startsWith("../") || relativeUriTo.startsWith("..\\")) {
|
|
70499
|
+
const result2 = yield getPackageNameInFolder(projectRoot, relativeUriTo);
|
|
70500
|
+
if (result2.packageName) {
|
|
70501
|
+
relativeUri = result2.packageName + relativeUriTo.slice(result2.packageFolder.length);
|
|
70502
|
+
}
|
|
70503
|
+
}
|
|
70504
|
+
if (!relativeUri) {
|
|
70505
|
+
const fromDir = (0, path_1.dirname)((0, exports2.toAbsoluteUri)(projectRoot, relativeUriFrom));
|
|
70506
|
+
relativeUri = (0, path_1.relative)(fromDir, (0, exports2.toAbsoluteUri)(projectRoot, relativeUriTo));
|
|
70507
|
+
if (!relativeUri.startsWith(".")) {
|
|
70508
|
+
relativeUri = "./" + relativeUri;
|
|
70509
|
+
}
|
|
70510
|
+
}
|
|
70511
|
+
const fileExtension = relativeUri.lastIndexOf(".") > 0 ? relativeUri.slice(relativeUri.lastIndexOf(".") + 1) : "";
|
|
70512
|
+
if (["CDS", "JSON"].includes(fileExtension.toUpperCase())) {
|
|
70513
|
+
relativeUri = relativeUri.slice(0, relativeUri.length - fileExtension.length - 1);
|
|
70514
|
+
}
|
|
70515
|
+
return relativeUri.split(path_1.sep).join("/");
|
|
70516
|
+
});
|
|
70517
|
+
exports2.toReferenceUri = toReferenceUri;
|
|
70518
|
+
function getPackageNameInFolder(baseUri, relativeUri) {
|
|
70519
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70520
|
+
const refUriParts = relativeUri.split(path_1.sep);
|
|
70521
|
+
const result2 = { packageName: "", packageFolder: relativeUri };
|
|
70522
|
+
for (let i = refUriParts.length - 1; i >= 0 && !result2.packageName; i--) {
|
|
70523
|
+
const currentFolder = refUriParts.slice(0, i).join(path_1.sep);
|
|
70524
|
+
result2.packageName = yield readPackageNameForFolder(baseUri, currentFolder);
|
|
70525
|
+
if (result2.packageName) {
|
|
70526
|
+
result2.packageFolder = currentFolder;
|
|
70527
|
+
}
|
|
70528
|
+
}
|
|
70529
|
+
return result2;
|
|
70530
|
+
});
|
|
70531
|
+
}
|
|
70532
|
+
function readPackageNameForFolder(baseUri, relativeUri) {
|
|
70533
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70534
|
+
let packageName = "";
|
|
70535
|
+
try {
|
|
70536
|
+
const path3 = (0, path_1.normalize)(baseUri + "/" + relativeUri + "/package.json");
|
|
70537
|
+
const content = yield (0, file_1.readFile)(path3);
|
|
70538
|
+
if (content) {
|
|
70539
|
+
const parsed = JSON.parse(content);
|
|
70540
|
+
packageName = parsed.name;
|
|
70541
|
+
}
|
|
70542
|
+
} catch (e) {
|
|
70543
|
+
packageName = "";
|
|
70544
|
+
}
|
|
70545
|
+
return packageName;
|
|
70546
|
+
});
|
|
70547
|
+
}
|
|
70449
70548
|
}
|
|
70450
70549
|
});
|
|
70451
70550
|
|
|
@@ -73170,7 +73269,7 @@ var require_project2 = __commonJS({
|
|
|
73170
73269
|
"../../node_modules/@sap-ux/project-access/dist/project/index.js"(exports2) {
|
|
73171
73270
|
"use strict";
|
|
73172
73271
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
73173
|
-
exports2.readUi5Yaml = exports2.getWebappPath = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findAllApps = exports2.loadModuleFromProject = exports2.getAppProgrammingLanguage = exports2.getCapEnvironment = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getCapProjectType = exports2.getCapModelAndServices = exports2.getCapCustomPaths = void 0;
|
|
73272
|
+
exports2.readUi5Yaml = exports2.getWebappPath = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findAllApps = exports2.loadModuleFromProject = exports2.getAppProgrammingLanguage = exports2.readCapServiceMetadataEdmx = exports2.getCapEnvironment = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getCapProjectType = exports2.getCapModelAndServices = exports2.getCapCustomPaths = void 0;
|
|
73174
73273
|
var cap_1 = require_cap();
|
|
73175
73274
|
Object.defineProperty(exports2, "getCapCustomPaths", { enumerable: true, get: function() {
|
|
73176
73275
|
return cap_1.getCapCustomPaths;
|
|
@@ -73190,6 +73289,9 @@ var require_project2 = __commonJS({
|
|
|
73190
73289
|
Object.defineProperty(exports2, "getCapEnvironment", { enumerable: true, get: function() {
|
|
73191
73290
|
return cap_1.getCapEnvironment;
|
|
73192
73291
|
} });
|
|
73292
|
+
Object.defineProperty(exports2, "readCapServiceMetadataEdmx", { enumerable: true, get: function() {
|
|
73293
|
+
return cap_1.readCapServiceMetadataEdmx;
|
|
73294
|
+
} });
|
|
73193
73295
|
var info_1 = require_info();
|
|
73194
73296
|
Object.defineProperty(exports2, "getAppProgrammingLanguage", { enumerable: true, get: function() {
|
|
73195
73297
|
return info_1.getAppProgrammingLanguage;
|
|
@@ -73328,7 +73430,7 @@ var require_dist13 = __commonJS({
|
|
|
73328
73430
|
__createBinding(exports3, m, p);
|
|
73329
73431
|
};
|
|
73330
73432
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
73331
|
-
exports2.getFilePaths = exports2.readUi5Yaml = exports2.loadModuleFromProject = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getWebappPath = exports2.getCapProjectType = exports2.getCapModelAndServices = exports2.getCapEnvironment = exports2.getCapCustomPaths = exports2.getAppProgrammingLanguage = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findAllApps = exports2.FileName = void 0;
|
|
73433
|
+
exports2.getFilePaths = exports2.readUi5Yaml = exports2.readCapServiceMetadataEdmx = exports2.loadModuleFromProject = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getWebappPath = exports2.getCapProjectType = exports2.getCapModelAndServices = exports2.getCapEnvironment = exports2.getCapCustomPaths = exports2.getAppProgrammingLanguage = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findAllApps = exports2.FileName = void 0;
|
|
73332
73434
|
var constants_1 = require_constants5();
|
|
73333
73435
|
Object.defineProperty(exports2, "FileName", { enumerable: true, get: function() {
|
|
73334
73436
|
return constants_1.FileName;
|
|
@@ -73373,6 +73475,9 @@ var require_dist13 = __commonJS({
|
|
|
73373
73475
|
Object.defineProperty(exports2, "loadModuleFromProject", { enumerable: true, get: function() {
|
|
73374
73476
|
return project_1.loadModuleFromProject;
|
|
73375
73477
|
} });
|
|
73478
|
+
Object.defineProperty(exports2, "readCapServiceMetadataEdmx", { enumerable: true, get: function() {
|
|
73479
|
+
return project_1.readCapServiceMetadataEdmx;
|
|
73480
|
+
} });
|
|
73376
73481
|
Object.defineProperty(exports2, "readUi5Yaml", { enumerable: true, get: function() {
|
|
73377
73482
|
return project_1.readUi5Yaml;
|
|
73378
73483
|
} });
|
|
@@ -79006,15 +79111,15 @@ var require_types12 = __commonJS({
|
|
|
79006
79111
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
79007
79112
|
exports2.Transport = exports2.LogLevel = void 0;
|
|
79008
79113
|
var cloneDeep_1 = __importDefault(require_cloneDeep());
|
|
79009
|
-
var
|
|
79010
|
-
(function(
|
|
79011
|
-
|
|
79012
|
-
|
|
79013
|
-
|
|
79014
|
-
|
|
79015
|
-
|
|
79016
|
-
|
|
79017
|
-
})(
|
|
79114
|
+
var LogLevel2;
|
|
79115
|
+
(function(LogLevel3) {
|
|
79116
|
+
LogLevel3[LogLevel3["Error"] = 0] = "Error";
|
|
79117
|
+
LogLevel3[LogLevel3["Warn"] = 1] = "Warn";
|
|
79118
|
+
LogLevel3[LogLevel3["Info"] = 2] = "Info";
|
|
79119
|
+
LogLevel3[LogLevel3["Verbose"] = 3] = "Verbose";
|
|
79120
|
+
LogLevel3[LogLevel3["Debug"] = 4] = "Debug";
|
|
79121
|
+
LogLevel3[LogLevel3["Silly"] = 5] = "Silly";
|
|
79122
|
+
})(LogLevel2 = exports2.LogLevel || (exports2.LogLevel = {}));
|
|
79018
79123
|
var Transport = class {
|
|
79019
79124
|
copy(obj) {
|
|
79020
79125
|
return Object.freeze(cloneDeep_1.default(obj));
|
|
@@ -81929,21 +82034,21 @@ var require_transport = __commonJS({
|
|
|
81929
82034
|
}
|
|
81930
82035
|
};
|
|
81931
82036
|
exports2.ConsoleTransport = ConsoleTransport;
|
|
81932
|
-
var
|
|
82037
|
+
var UI5ToolingTransport2 = class extends types_1.Transport {
|
|
81933
82038
|
constructor(opts) {
|
|
81934
82039
|
super();
|
|
81935
|
-
const instance =
|
|
82040
|
+
const instance = UI5ToolingTransport2.instances.get(opts.moduleName);
|
|
81936
82041
|
if (!instance) {
|
|
81937
82042
|
this.options = this.copy(opts);
|
|
81938
|
-
|
|
82043
|
+
UI5ToolingTransport2.instances.set(opts.moduleName, this);
|
|
81939
82044
|
return this;
|
|
81940
82045
|
} else {
|
|
81941
82046
|
return instance;
|
|
81942
82047
|
}
|
|
81943
82048
|
}
|
|
81944
82049
|
};
|
|
81945
|
-
exports2.UI5ToolingTransport =
|
|
81946
|
-
|
|
82050
|
+
exports2.UI5ToolingTransport = UI5ToolingTransport2;
|
|
82051
|
+
UI5ToolingTransport2.instances = /* @__PURE__ */ new Map();
|
|
81947
82052
|
var NullTransport = class extends types_1.Transport {
|
|
81948
82053
|
constructor() {
|
|
81949
82054
|
super();
|
|
@@ -105987,15 +106092,15 @@ var require_types14 = __commonJS({
|
|
|
105987
106092
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
105988
106093
|
exports2.Transport = exports2.LogLevel = void 0;
|
|
105989
106094
|
var cloneDeep_1 = __importDefault(require_cloneDeep());
|
|
105990
|
-
var
|
|
105991
|
-
(function(
|
|
105992
|
-
|
|
105993
|
-
|
|
105994
|
-
|
|
105995
|
-
|
|
105996
|
-
|
|
105997
|
-
|
|
105998
|
-
})(
|
|
106095
|
+
var LogLevel2;
|
|
106096
|
+
(function(LogLevel3) {
|
|
106097
|
+
LogLevel3[LogLevel3["Error"] = 0] = "Error";
|
|
106098
|
+
LogLevel3[LogLevel3["Warn"] = 1] = "Warn";
|
|
106099
|
+
LogLevel3[LogLevel3["Info"] = 2] = "Info";
|
|
106100
|
+
LogLevel3[LogLevel3["Verbose"] = 3] = "Verbose";
|
|
106101
|
+
LogLevel3[LogLevel3["Debug"] = 4] = "Debug";
|
|
106102
|
+
LogLevel3[LogLevel3["Silly"] = 5] = "Silly";
|
|
106103
|
+
})(LogLevel2 = exports2.LogLevel || (exports2.LogLevel = {}));
|
|
105999
106104
|
var Transport = class {
|
|
106000
106105
|
copy(obj) {
|
|
106001
106106
|
return Object.freeze((0, cloneDeep_1.default)(obj));
|
|
@@ -106027,21 +106132,21 @@ var require_transport2 = __commonJS({
|
|
|
106027
106132
|
}
|
|
106028
106133
|
};
|
|
106029
106134
|
exports2.ConsoleTransport = ConsoleTransport;
|
|
106030
|
-
var
|
|
106135
|
+
var UI5ToolingTransport2 = class extends types_1.Transport {
|
|
106031
106136
|
constructor(opts) {
|
|
106032
106137
|
super();
|
|
106033
|
-
const instance =
|
|
106138
|
+
const instance = UI5ToolingTransport2.instances.get(opts.moduleName);
|
|
106034
106139
|
if (!instance) {
|
|
106035
106140
|
this.options = this.copy(opts);
|
|
106036
|
-
|
|
106141
|
+
UI5ToolingTransport2.instances.set(opts.moduleName, this);
|
|
106037
106142
|
return this;
|
|
106038
106143
|
} else {
|
|
106039
106144
|
return instance;
|
|
106040
106145
|
}
|
|
106041
106146
|
}
|
|
106042
106147
|
};
|
|
106043
|
-
exports2.UI5ToolingTransport =
|
|
106044
|
-
|
|
106148
|
+
exports2.UI5ToolingTransport = UI5ToolingTransport2;
|
|
106149
|
+
UI5ToolingTransport2.instances = /* @__PURE__ */ new Map();
|
|
106045
106150
|
var NullTransport = class extends types_1.Transport {
|
|
106046
106151
|
constructor() {
|
|
106047
106152
|
super();
|
|
@@ -107225,9 +107330,9 @@ var require_config5 = __commonJS({
|
|
|
107225
107330
|
}
|
|
107226
107331
|
});
|
|
107227
107332
|
|
|
107228
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/base/odata-request-error.js
|
|
107333
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/base/odata-request-error.js
|
|
107229
107334
|
var require_odata_request_error = __commonJS({
|
|
107230
|
-
"../../node_modules/@sap-ux/axios-extension/dist/base/odata-request-error.js"(exports2) {
|
|
107335
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/base/odata-request-error.js"(exports2) {
|
|
107231
107336
|
"use strict";
|
|
107232
107337
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
107233
107338
|
exports2.ODataRequestError = exports2.isAxiosError = void 0;
|
|
@@ -107253,9 +107358,9 @@ var require_odata_request_error = __commonJS({
|
|
|
107253
107358
|
}
|
|
107254
107359
|
});
|
|
107255
107360
|
|
|
107256
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/base/odata-service.js
|
|
107361
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/base/odata-service.js
|
|
107257
107362
|
var require_odata_service = __commonJS({
|
|
107258
|
-
"../../node_modules/@sap-ux/axios-extension/dist/base/odata-service.js"(exports2) {
|
|
107363
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/base/odata-service.js"(exports2) {
|
|
107259
107364
|
"use strict";
|
|
107260
107365
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
107261
107366
|
function adopt(value) {
|
|
@@ -107479,9 +107584,9 @@ var require_open2 = __commonJS({
|
|
|
107479
107584
|
}
|
|
107480
107585
|
});
|
|
107481
107586
|
|
|
107482
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/auth/connection.js
|
|
107587
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/auth/connection.js
|
|
107483
107588
|
var require_connection2 = __commonJS({
|
|
107484
|
-
"../../node_modules/@sap-ux/axios-extension/dist/auth/connection.js"(exports2) {
|
|
107589
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/auth/connection.js"(exports2) {
|
|
107485
107590
|
"use strict";
|
|
107486
107591
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
107487
107592
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -107609,9 +107714,9 @@ var require_connection2 = __commonJS({
|
|
|
107609
107714
|
}
|
|
107610
107715
|
});
|
|
107611
107716
|
|
|
107612
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/auth/reentrance-ticket/abap-system.js
|
|
107717
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/auth/reentrance-ticket/abap-system.js
|
|
107613
107718
|
var require_abap_system = __commonJS({
|
|
107614
|
-
"../../node_modules/@sap-ux/axios-extension/dist/auth/reentrance-ticket/abap-system.js"(exports2) {
|
|
107719
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/auth/reentrance-ticket/abap-system.js"(exports2) {
|
|
107615
107720
|
"use strict";
|
|
107616
107721
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
107617
107722
|
exports2.ABAPSystem = void 0;
|
|
@@ -107645,9 +107750,9 @@ var require_abap_system = __commonJS({
|
|
|
107645
107750
|
}
|
|
107646
107751
|
});
|
|
107647
107752
|
|
|
107648
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/auth/error.js
|
|
107753
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/auth/error.js
|
|
107649
107754
|
var require_error4 = __commonJS({
|
|
107650
|
-
"../../node_modules/@sap-ux/axios-extension/dist/auth/error.js"(exports2) {
|
|
107755
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/auth/error.js"(exports2) {
|
|
107651
107756
|
"use strict";
|
|
107652
107757
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
107653
107758
|
exports2.UAATimeoutError = exports2.TimeoutError = exports2.ConnectionError = exports2.BaseError = void 0;
|
|
@@ -107671,9 +107776,9 @@ var require_error4 = __commonJS({
|
|
|
107671
107776
|
}
|
|
107672
107777
|
});
|
|
107673
107778
|
|
|
107674
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/message.js
|
|
107779
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/message.js
|
|
107675
107780
|
var require_message2 = __commonJS({
|
|
107676
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/message.js"(exports2) {
|
|
107781
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/message.js"(exports2) {
|
|
107677
107782
|
"use strict";
|
|
107678
107783
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
107679
107784
|
exports2.prettyPrintTimeInMs = exports2.prettyPrintError = exports2.prettyPrintMessage = void 0;
|
|
@@ -107749,9 +107854,9 @@ var require_message2 = __commonJS({
|
|
|
107749
107854
|
}
|
|
107750
107855
|
});
|
|
107751
107856
|
|
|
107752
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/auth/static.js
|
|
107857
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/auth/static.js
|
|
107753
107858
|
var require_static2 = __commonJS({
|
|
107754
|
-
"../../node_modules/@sap-ux/axios-extension/dist/auth/static.js"(exports2) {
|
|
107859
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/auth/static.js"(exports2) {
|
|
107755
107860
|
"use strict";
|
|
107756
107861
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
107757
107862
|
exports2.redirectErrorHtml = exports2.redirectSuccessHtml = void 0;
|
|
@@ -107895,9 +108000,9 @@ var require_static2 = __commonJS({
|
|
|
107895
108000
|
}
|
|
107896
108001
|
});
|
|
107897
108002
|
|
|
107898
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/auth/reentrance-ticket/redirect.js
|
|
108003
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/auth/reentrance-ticket/redirect.js
|
|
107899
108004
|
var require_redirect = __commonJS({
|
|
107900
|
-
"../../node_modules/@sap-ux/axios-extension/dist/auth/reentrance-ticket/redirect.js"(exports2) {
|
|
108005
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/auth/reentrance-ticket/redirect.js"(exports2) {
|
|
107901
108006
|
"use strict";
|
|
107902
108007
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
107903
108008
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -107949,9 +108054,9 @@ var require_redirect = __commonJS({
|
|
|
107949
108054
|
}
|
|
107950
108055
|
});
|
|
107951
108056
|
|
|
107952
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/auth/reentrance-ticket/index.js
|
|
108057
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/auth/reentrance-ticket/index.js
|
|
107953
108058
|
var require_reentrance_ticket = __commonJS({
|
|
107954
|
-
"../../node_modules/@sap-ux/axios-extension/dist/auth/reentrance-ticket/index.js"(exports2) {
|
|
108059
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/auth/reentrance-ticket/index.js"(exports2) {
|
|
107955
108060
|
"use strict";
|
|
107956
108061
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
107957
108062
|
function adopt(value) {
|
|
@@ -108004,9 +108109,9 @@ var require_reentrance_ticket = __commonJS({
|
|
|
108004
108109
|
}
|
|
108005
108110
|
});
|
|
108006
108111
|
|
|
108007
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/auth/redirect.js
|
|
108112
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/auth/redirect.js
|
|
108008
108113
|
var require_redirect2 = __commonJS({
|
|
108009
|
-
"../../node_modules/@sap-ux/axios-extension/dist/auth/redirect.js"(exports2) {
|
|
108114
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/auth/redirect.js"(exports2) {
|
|
108010
108115
|
"use strict";
|
|
108011
108116
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
108012
108117
|
exports2.Redirect = void 0;
|
|
@@ -108023,9 +108128,9 @@ var require_redirect2 = __commonJS({
|
|
|
108023
108128
|
}
|
|
108024
108129
|
});
|
|
108025
108130
|
|
|
108026
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/auth/uaa.js
|
|
108131
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/auth/uaa.js
|
|
108027
108132
|
var require_uaa = __commonJS({
|
|
108028
|
-
"../../node_modules/@sap-ux/axios-extension/dist/auth/uaa.js"(exports2) {
|
|
108133
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/auth/uaa.js"(exports2) {
|
|
108029
108134
|
"use strict";
|
|
108030
108135
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
108031
108136
|
function adopt(value) {
|
|
@@ -108256,9 +108361,9 @@ var require_uaa = __commonJS({
|
|
|
108256
108361
|
}
|
|
108257
108362
|
});
|
|
108258
108363
|
|
|
108259
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/auth/index.js
|
|
108364
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/auth/index.js
|
|
108260
108365
|
var require_auth = __commonJS({
|
|
108261
|
-
"../../node_modules/@sap-ux/axios-extension/dist/auth/index.js"(exports2) {
|
|
108366
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/auth/index.js"(exports2) {
|
|
108262
108367
|
"use strict";
|
|
108263
108368
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
108264
108369
|
if (k2 === void 0)
|
|
@@ -108372,9 +108477,9 @@ var require_auth = __commonJS({
|
|
|
108372
108477
|
}
|
|
108373
108478
|
});
|
|
108374
108479
|
|
|
108375
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/base/service-provider.js
|
|
108480
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/base/service-provider.js
|
|
108376
108481
|
var require_service_provider = __commonJS({
|
|
108377
|
-
"../../node_modules/@sap-ux/axios-extension/dist/base/service-provider.js"(exports2) {
|
|
108482
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/base/service-provider.js"(exports2) {
|
|
108378
108483
|
"use strict";
|
|
108379
108484
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
108380
108485
|
exports2.ServiceProvider = void 0;
|
|
@@ -108414,9 +108519,9 @@ var require_service_provider = __commonJS({
|
|
|
108414
108519
|
}
|
|
108415
108520
|
});
|
|
108416
108521
|
|
|
108417
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/ui5-abap-repository-service.js
|
|
108522
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/ui5-abap-repository-service.js
|
|
108418
108523
|
var require_ui5_abap_repository_service = __commonJS({
|
|
108419
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/ui5-abap-repository-service.js"(exports2) {
|
|
108524
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/ui5-abap-repository-service.js"(exports2) {
|
|
108420
108525
|
"use strict";
|
|
108421
108526
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
108422
108527
|
function adopt(value) {
|
|
@@ -108661,9 +108766,9 @@ ${payload}`);
|
|
|
108661
108766
|
}
|
|
108662
108767
|
});
|
|
108663
108768
|
|
|
108664
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/lrep-service.js
|
|
108769
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/lrep-service.js
|
|
108665
108770
|
var require_lrep_service = __commonJS({
|
|
108666
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/lrep-service.js"(exports2) {
|
|
108771
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/lrep-service.js"(exports2) {
|
|
108667
108772
|
"use strict";
|
|
108668
108773
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
108669
108774
|
function adopt(value) {
|
|
@@ -108703,38 +108808,57 @@ var require_lrep_service = __commonJS({
|
|
|
108703
108808
|
}
|
|
108704
108809
|
var DTA_PATH_SUFFIX = "/dta_folder/";
|
|
108705
108810
|
var LayeredRepositoryService = class extends axios_1.Axios {
|
|
108706
|
-
|
|
108811
|
+
mergeAppDescriptorVariant(appDescriptorVariant) {
|
|
108812
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108813
|
+
try {
|
|
108814
|
+
const response = yield this.put("/appdescr_variant_preview/", appDescriptorVariant, {
|
|
108815
|
+
headers: {
|
|
108816
|
+
"Content-Type": "application/zip"
|
|
108817
|
+
}
|
|
108818
|
+
});
|
|
108819
|
+
return JSON.parse(response.data);
|
|
108820
|
+
} catch (error4) {
|
|
108821
|
+
if ((0, odata_request_error_1.isAxiosError)(error4)) {
|
|
108822
|
+
this.tryLogResponse(error4.response);
|
|
108823
|
+
}
|
|
108824
|
+
throw error4;
|
|
108825
|
+
}
|
|
108826
|
+
});
|
|
108827
|
+
}
|
|
108828
|
+
isExistingVariant(namespace, layer = "CUSTOMER_BASE") {
|
|
108707
108829
|
var _a2;
|
|
108708
108830
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108709
108831
|
try {
|
|
108710
108832
|
const response = yield this.get(DTA_PATH_SUFFIX, {
|
|
108711
108833
|
params: {
|
|
108712
108834
|
name: getNamespaceAsString(namespace),
|
|
108713
|
-
layer
|
|
108835
|
+
layer,
|
|
108714
108836
|
timestamp: Date.now()
|
|
108715
108837
|
}
|
|
108716
108838
|
});
|
|
108717
108839
|
this.tryLogResponse(response);
|
|
108718
108840
|
return response;
|
|
108719
108841
|
} catch (error4) {
|
|
108720
|
-
if ((0, odata_request_error_1.isAxiosError)(error4)
|
|
108721
|
-
|
|
108722
|
-
|
|
108723
|
-
|
|
108842
|
+
if ((0, odata_request_error_1.isAxiosError)(error4)) {
|
|
108843
|
+
this.tryLogResponse(error4.response);
|
|
108844
|
+
if (((_a2 = error4.response) === null || _a2 === void 0 ? void 0 : _a2.status) === 404) {
|
|
108845
|
+
return error4.response;
|
|
108846
|
+
}
|
|
108724
108847
|
}
|
|
108848
|
+
throw error4;
|
|
108725
108849
|
}
|
|
108726
108850
|
});
|
|
108727
108851
|
}
|
|
108728
108852
|
deploy(archivePath, config2) {
|
|
108729
|
-
var _a2;
|
|
108853
|
+
var _a2, _b;
|
|
108730
108854
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108731
108855
|
const archive = (0, fs_1.readFileSync)(archivePath);
|
|
108732
108856
|
const checkResponse = yield this.isExistingVariant(config2.namespace);
|
|
108733
108857
|
const params = {
|
|
108734
108858
|
name: getNamespaceAsString(config2.namespace),
|
|
108735
|
-
layer: "CUSTOMER_BASE"
|
|
108859
|
+
layer: (_a2 = config2.layer) !== null && _a2 !== void 0 ? _a2 : "CUSTOMER_BASE"
|
|
108736
108860
|
};
|
|
108737
|
-
params["package"] = (
|
|
108861
|
+
params["package"] = (_b = config2.package) !== null && _b !== void 0 ? _b : "$TMP";
|
|
108738
108862
|
if (params["package"].toUpperCase() !== "$TMP") {
|
|
108739
108863
|
params["changelist"] = config2.transport;
|
|
108740
108864
|
}
|
|
@@ -108752,6 +108876,7 @@ var require_lrep_service = __commonJS({
|
|
|
108752
108876
|
});
|
|
108753
108877
|
}
|
|
108754
108878
|
undeploy(config2) {
|
|
108879
|
+
var _a2;
|
|
108755
108880
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108756
108881
|
const checkResponse = yield this.isExistingVariant(config2.namespace);
|
|
108757
108882
|
if (checkResponse.status !== 200) {
|
|
@@ -108759,7 +108884,7 @@ var require_lrep_service = __commonJS({
|
|
|
108759
108884
|
}
|
|
108760
108885
|
const params = {
|
|
108761
108886
|
name: getNamespaceAsString(config2.namespace),
|
|
108762
|
-
layer: "CUSTOMER_BASE"
|
|
108887
|
+
layer: (_a2 = config2.layer) !== null && _a2 !== void 0 ? _a2 : "CUSTOMER_BASE"
|
|
108763
108888
|
};
|
|
108764
108889
|
if (config2.transport) {
|
|
108765
108890
|
params["changelist"] = config2.transport;
|
|
@@ -108800,9 +108925,9 @@ var require_lrep_service = __commonJS({
|
|
|
108800
108925
|
}
|
|
108801
108926
|
});
|
|
108802
108927
|
|
|
108803
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/catalog/base.js
|
|
108928
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/catalog/base.js
|
|
108804
108929
|
var require_base = __commonJS({
|
|
108805
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/catalog/base.js"(exports2) {
|
|
108930
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/catalog/base.js"(exports2) {
|
|
108806
108931
|
"use strict";
|
|
108807
108932
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
108808
108933
|
function adopt(value) {
|
|
@@ -108848,9 +108973,9 @@ var require_base = __commonJS({
|
|
|
108848
108973
|
}
|
|
108849
108974
|
});
|
|
108850
108975
|
|
|
108851
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/catalog/v2-catalog-service.js
|
|
108976
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/catalog/v2-catalog-service.js
|
|
108852
108977
|
var require_v2_catalog_service = __commonJS({
|
|
108853
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/catalog/v2-catalog-service.js"(exports2) {
|
|
108978
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/catalog/v2-catalog-service.js"(exports2) {
|
|
108854
108979
|
"use strict";
|
|
108855
108980
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
108856
108981
|
function adopt(value) {
|
|
@@ -109017,9 +109142,9 @@ var require_v2_catalog_service = __commonJS({
|
|
|
109017
109142
|
}
|
|
109018
109143
|
});
|
|
109019
109144
|
|
|
109020
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/catalog/v4-catalog-service.js
|
|
109145
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/catalog/v4-catalog-service.js
|
|
109021
109146
|
var require_v4_catalog_service = __commonJS({
|
|
109022
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/catalog/v4-catalog-service.js"(exports2) {
|
|
109147
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/catalog/v4-catalog-service.js"(exports2) {
|
|
109023
109148
|
"use strict";
|
|
109024
109149
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
109025
109150
|
function adopt(value) {
|
|
@@ -109110,9 +109235,9 @@ var require_v4_catalog_service = __commonJS({
|
|
|
109110
109235
|
}
|
|
109111
109236
|
});
|
|
109112
109237
|
|
|
109113
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/catalog/index.js
|
|
109238
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/catalog/index.js
|
|
109114
109239
|
var require_catalog2 = __commonJS({
|
|
109115
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/catalog/index.js"(exports2) {
|
|
109240
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/catalog/index.js"(exports2) {
|
|
109116
109241
|
"use strict";
|
|
109117
109242
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
109118
109243
|
if (k2 === void 0)
|
|
@@ -109141,9 +109266,9 @@ var require_catalog2 = __commonJS({
|
|
|
109141
109266
|
}
|
|
109142
109267
|
});
|
|
109143
109268
|
|
|
109144
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/app-index-service.js
|
|
109269
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/app-index-service.js
|
|
109145
109270
|
var require_app_index_service = __commonJS({
|
|
109146
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/app-index-service.js"(exports2) {
|
|
109271
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/app-index-service.js"(exports2) {
|
|
109147
109272
|
"use strict";
|
|
109148
109273
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
109149
109274
|
function adopt(value) {
|
|
@@ -109192,9 +109317,9 @@ var require_app_index_service = __commonJS({
|
|
|
109192
109317
|
}
|
|
109193
109318
|
});
|
|
109194
109319
|
|
|
109195
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/adt-schema-store.js
|
|
109320
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/adt-schema-store.js
|
|
109196
109321
|
var require_adt_schema_store = __commonJS({
|
|
109197
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/adt-schema-store.js"(exports2) {
|
|
109322
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/adt-schema-store.js"(exports2) {
|
|
109198
109323
|
"use strict";
|
|
109199
109324
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
109200
109325
|
exports2.AdtSchemaStore = void 0;
|
|
@@ -109240,9 +109365,9 @@ var require_adt_schema_store = __commonJS({
|
|
|
109240
109365
|
}
|
|
109241
109366
|
});
|
|
109242
109367
|
|
|
109243
|
-
// ../../node_modules/@sap-ux/
|
|
109368
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/util.js
|
|
109244
109369
|
var require_util11 = __commonJS({
|
|
109245
|
-
"../../node_modules/@sap-ux/
|
|
109370
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/util.js"(exports2) {
|
|
109246
109371
|
"use strict";
|
|
109247
109372
|
var nameStartChar = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
|
|
109248
109373
|
var nameChar = nameStartChar + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
|
|
@@ -109299,9 +109424,9 @@ var require_util11 = __commonJS({
|
|
|
109299
109424
|
}
|
|
109300
109425
|
});
|
|
109301
109426
|
|
|
109302
|
-
// ../../node_modules/@sap-ux/
|
|
109427
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/validator.js
|
|
109303
109428
|
var require_validator3 = __commonJS({
|
|
109304
|
-
"../../node_modules/@sap-ux/
|
|
109429
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/validator.js"(exports2) {
|
|
109305
109430
|
"use strict";
|
|
109306
109431
|
var util = require_util11();
|
|
109307
109432
|
var defaultOptions = {
|
|
@@ -109605,9 +109730,9 @@ var require_validator3 = __commonJS({
|
|
|
109605
109730
|
}
|
|
109606
109731
|
});
|
|
109607
109732
|
|
|
109608
|
-
// ../../node_modules/@sap-ux/
|
|
109733
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js
|
|
109609
109734
|
var require_OptionsBuilder2 = __commonJS({
|
|
109610
|
-
"../../node_modules/@sap-ux/
|
|
109735
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"(exports2) {
|
|
109611
109736
|
var defaultOptions = {
|
|
109612
109737
|
preserveOrder: false,
|
|
109613
109738
|
attributeNamePrefix: "@_",
|
|
@@ -109654,9 +109779,9 @@ var require_OptionsBuilder2 = __commonJS({
|
|
|
109654
109779
|
}
|
|
109655
109780
|
});
|
|
109656
109781
|
|
|
109657
|
-
// ../../node_modules/@sap-ux/
|
|
109782
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js
|
|
109658
109783
|
var require_xmlNode2 = __commonJS({
|
|
109659
|
-
"../../node_modules/@sap-ux/
|
|
109784
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"(exports2, module2) {
|
|
109660
109785
|
"use strict";
|
|
109661
109786
|
var XmlNode = class {
|
|
109662
109787
|
constructor(tagname) {
|
|
@@ -109683,9 +109808,9 @@ var require_xmlNode2 = __commonJS({
|
|
|
109683
109808
|
}
|
|
109684
109809
|
});
|
|
109685
109810
|
|
|
109686
|
-
// ../../node_modules/@sap-ux/
|
|
109811
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js
|
|
109687
109812
|
var require_DocTypeReader2 = __commonJS({
|
|
109688
|
-
"../../node_modules/@sap-ux/
|
|
109813
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"(exports2, module2) {
|
|
109689
109814
|
var util = require_util11();
|
|
109690
109815
|
function readDocType(xmlData, i) {
|
|
109691
109816
|
const entities = {};
|
|
@@ -109792,9 +109917,9 @@ var require_DocTypeReader2 = __commonJS({
|
|
|
109792
109917
|
}
|
|
109793
109918
|
});
|
|
109794
109919
|
|
|
109795
|
-
// ../../node_modules/@sap-ux/
|
|
109920
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
|
|
109796
109921
|
var require_OrderedObjParser2 = __commonJS({
|
|
109797
|
-
"../../node_modules/@sap-ux/
|
|
109922
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"(exports2, module2) {
|
|
109798
109923
|
"use strict";
|
|
109799
109924
|
var util = require_util11();
|
|
109800
109925
|
var xmlNode = require_xmlNode2();
|
|
@@ -110266,9 +110391,9 @@ var require_OrderedObjParser2 = __commonJS({
|
|
|
110266
110391
|
}
|
|
110267
110392
|
});
|
|
110268
110393
|
|
|
110269
|
-
// ../../node_modules/@sap-ux/
|
|
110394
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/xmlparser/node2json.js
|
|
110270
110395
|
var require_node2json2 = __commonJS({
|
|
110271
|
-
"../../node_modules/@sap-ux/
|
|
110396
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/xmlparser/node2json.js"(exports2) {
|
|
110272
110397
|
"use strict";
|
|
110273
110398
|
function prettify(node, options3) {
|
|
110274
110399
|
return compress(node, options3);
|
|
@@ -110362,9 +110487,9 @@ var require_node2json2 = __commonJS({
|
|
|
110362
110487
|
}
|
|
110363
110488
|
});
|
|
110364
110489
|
|
|
110365
|
-
// ../../node_modules/@sap-ux/
|
|
110490
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
|
|
110366
110491
|
var require_XMLParser2 = __commonJS({
|
|
110367
|
-
"../../node_modules/@sap-ux/
|
|
110492
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"(exports2, module2) {
|
|
110368
110493
|
var { buildOptions } = require_OptionsBuilder2();
|
|
110369
110494
|
var OrderedObjParser = require_OrderedObjParser2();
|
|
110370
110495
|
var { prettify } = require_node2json2();
|
|
@@ -110413,9 +110538,9 @@ var require_XMLParser2 = __commonJS({
|
|
|
110413
110538
|
}
|
|
110414
110539
|
});
|
|
110415
110540
|
|
|
110416
|
-
// ../../node_modules/@sap-ux/
|
|
110541
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js
|
|
110417
110542
|
var require_orderedJs2Xml2 = __commonJS({
|
|
110418
|
-
"../../node_modules/@sap-ux/
|
|
110543
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js"(exports2, module2) {
|
|
110419
110544
|
var EOL = "\n";
|
|
110420
110545
|
function toXml(jArray, options3) {
|
|
110421
110546
|
let indentation = "";
|
|
@@ -110541,9 +110666,9 @@ var require_orderedJs2Xml2 = __commonJS({
|
|
|
110541
110666
|
}
|
|
110542
110667
|
});
|
|
110543
110668
|
|
|
110544
|
-
// ../../node_modules/@sap-ux/
|
|
110669
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js
|
|
110545
110670
|
var require_json2xml2 = __commonJS({
|
|
110546
|
-
"../../node_modules/@sap-ux/
|
|
110671
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js"(exports2, module2) {
|
|
110547
110672
|
"use strict";
|
|
110548
110673
|
var buildFromOrderedJs = require_orderedJs2Xml2();
|
|
110549
110674
|
var defaultOptions = {
|
|
@@ -110766,9 +110891,9 @@ var require_json2xml2 = __commonJS({
|
|
|
110766
110891
|
}
|
|
110767
110892
|
});
|
|
110768
110893
|
|
|
110769
|
-
// ../../node_modules/@sap-ux/
|
|
110894
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/fxp.js
|
|
110770
110895
|
var require_fxp2 = __commonJS({
|
|
110771
|
-
"../../node_modules/@sap-ux/
|
|
110896
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/fast-xml-parser/src/fxp.js"(exports2, module2) {
|
|
110772
110897
|
"use strict";
|
|
110773
110898
|
var validator = require_validator3();
|
|
110774
110899
|
var XMLParser = require_XMLParser2();
|
|
@@ -110781,9 +110906,9 @@ var require_fxp2 = __commonJS({
|
|
|
110781
110906
|
}
|
|
110782
110907
|
});
|
|
110783
110908
|
|
|
110784
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/adt-catalog-service.js
|
|
110909
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/adt-catalog-service.js
|
|
110785
110910
|
var require_adt_catalog_service = __commonJS({
|
|
110786
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/adt-catalog-service.js"(exports2) {
|
|
110911
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/adt-catalog-service.js"(exports2) {
|
|
110787
110912
|
"use strict";
|
|
110788
110913
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
110789
110914
|
function adopt(value) {
|
|
@@ -110885,9 +111010,9 @@ var require_adt_catalog_service = __commonJS({
|
|
|
110885
111010
|
}
|
|
110886
111011
|
});
|
|
110887
111012
|
|
|
110888
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/types/adt-types.js
|
|
111013
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/types/adt-types.js
|
|
110889
111014
|
var require_adt_types = __commonJS({
|
|
110890
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/types/adt-types.js"(exports2) {
|
|
111015
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/types/adt-types.js"(exports2) {
|
|
110891
111016
|
"use strict";
|
|
110892
111017
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
110893
111018
|
exports2.LocalPackageText = exports2.TenantType = void 0;
|
|
@@ -110900,9 +111025,9 @@ var require_adt_types = __commonJS({
|
|
|
110900
111025
|
}
|
|
110901
111026
|
});
|
|
110902
111027
|
|
|
110903
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/types/index.js
|
|
111028
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/types/index.js
|
|
110904
111029
|
var require_types16 = __commonJS({
|
|
110905
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/types/index.js"(exports2) {
|
|
111030
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/types/index.js"(exports2) {
|
|
110906
111031
|
"use strict";
|
|
110907
111032
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
110908
111033
|
if (k2 === void 0)
|
|
@@ -110929,9 +111054,9 @@ var require_types16 = __commonJS({
|
|
|
110929
111054
|
}
|
|
110930
111055
|
});
|
|
110931
111056
|
|
|
110932
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/adt-service.js
|
|
111057
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/adt-service.js
|
|
110933
111058
|
var require_adt_service = __commonJS({
|
|
110934
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/adt-service.js"(exports2) {
|
|
111059
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/adt-service.js"(exports2) {
|
|
110935
111060
|
"use strict";
|
|
110936
111061
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
110937
111062
|
exports2.AdtService = void 0;
|
|
@@ -110948,9 +111073,9 @@ var require_adt_service = __commonJS({
|
|
|
110948
111073
|
}
|
|
110949
111074
|
});
|
|
110950
111075
|
|
|
110951
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/ato-service.js
|
|
111076
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/ato-service.js
|
|
110952
111077
|
var require_ato_service = __commonJS({
|
|
110953
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/ato-service.js"(exports2) {
|
|
111078
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/ato-service.js"(exports2) {
|
|
110954
111079
|
"use strict";
|
|
110955
111080
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
110956
111081
|
function adopt(value) {
|
|
@@ -116999,9 +117124,9 @@ var require_lib4 = __commonJS({
|
|
|
116999
117124
|
}
|
|
117000
117125
|
});
|
|
117001
117126
|
|
|
117002
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/transportcheck-service.js
|
|
117127
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/transportcheck-service.js
|
|
117003
117128
|
var require_transportcheck_service = __commonJS({
|
|
117004
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/transportcheck-service.js"(exports2) {
|
|
117129
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/transportcheck-service.js"(exports2) {
|
|
117005
117130
|
"use strict";
|
|
117006
117131
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
117007
117132
|
if (k2 === void 0)
|
|
@@ -117181,9 +117306,9 @@ var require_transportcheck_service = __commonJS({
|
|
|
117181
117306
|
}
|
|
117182
117307
|
});
|
|
117183
117308
|
|
|
117184
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/transportrequest-service.js
|
|
117309
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/transportrequest-service.js
|
|
117185
117310
|
var require_transportrequest_service = __commonJS({
|
|
117186
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/transportrequest-service.js"(exports2) {
|
|
117311
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/transportrequest-service.js"(exports2) {
|
|
117187
117312
|
"use strict";
|
|
117188
117313
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
117189
117314
|
function adopt(value) {
|
|
@@ -117262,9 +117387,9 @@ var require_transportrequest_service = __commonJS({
|
|
|
117262
117387
|
}
|
|
117263
117388
|
});
|
|
117264
117389
|
|
|
117265
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/list-package-service.js
|
|
117390
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/list-package-service.js
|
|
117266
117391
|
var require_list_package_service = __commonJS({
|
|
117267
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/list-package-service.js"(exports2) {
|
|
117392
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/list-package-service.js"(exports2) {
|
|
117268
117393
|
"use strict";
|
|
117269
117394
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
117270
117395
|
function adopt(value) {
|
|
@@ -117354,9 +117479,9 @@ var require_list_package_service = __commonJS({
|
|
|
117354
117479
|
}
|
|
117355
117480
|
});
|
|
117356
117481
|
|
|
117357
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/filestore-service.js
|
|
117482
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/filestore-service.js
|
|
117358
117483
|
var require_filestore_service = __commonJS({
|
|
117359
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/filestore-service.js"(exports2) {
|
|
117484
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/filestore-service.js"(exports2) {
|
|
117360
117485
|
"use strict";
|
|
117361
117486
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
117362
117487
|
function adopt(value) {
|
|
@@ -117452,9 +117577,9 @@ var require_filestore_service = __commonJS({
|
|
|
117452
117577
|
}
|
|
117453
117578
|
});
|
|
117454
117579
|
|
|
117455
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/index.js
|
|
117580
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/index.js
|
|
117456
117581
|
var require_services3 = __commonJS({
|
|
117457
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/index.js"(exports2) {
|
|
117582
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/index.js"(exports2) {
|
|
117458
117583
|
"use strict";
|
|
117459
117584
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
117460
117585
|
exports2.FileStoreService = exports2.ListPackageService = exports2.TransportRequestService = exports2.TransportChecksService = exports2.AtoService = exports2.AdtService = void 0;
|
|
@@ -117485,9 +117610,9 @@ var require_services3 = __commonJS({
|
|
|
117485
117610
|
}
|
|
117486
117611
|
});
|
|
117487
117612
|
|
|
117488
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/abap-service-provider.js
|
|
117613
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/abap-service-provider.js
|
|
117489
117614
|
var require_abap_service_provider = __commonJS({
|
|
117490
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/abap-service-provider.js"(exports2) {
|
|
117615
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/abap-service-provider.js"(exports2) {
|
|
117491
117616
|
"use strict";
|
|
117492
117617
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
117493
117618
|
function adopt(value) {
|
|
@@ -117635,9 +117760,9 @@ var require_abap_service_provider = __commonJS({
|
|
|
117635
117760
|
}
|
|
117636
117761
|
});
|
|
117637
117762
|
|
|
117638
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/index.js
|
|
117763
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/index.js
|
|
117639
117764
|
var require_adt_catalog = __commonJS({
|
|
117640
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/index.js"(exports2) {
|
|
117765
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/index.js"(exports2) {
|
|
117641
117766
|
"use strict";
|
|
117642
117767
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
117643
117768
|
if (k2 === void 0)
|
|
@@ -117665,9 +117790,9 @@ var require_adt_catalog = __commonJS({
|
|
|
117665
117790
|
}
|
|
117666
117791
|
});
|
|
117667
117792
|
|
|
117668
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/abap/index.js
|
|
117793
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/index.js
|
|
117669
117794
|
var require_abap = __commonJS({
|
|
117670
|
-
"../../node_modules/@sap-ux/axios-extension/dist/abap/index.js"(exports2) {
|
|
117795
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/abap/index.js"(exports2) {
|
|
117671
117796
|
"use strict";
|
|
117672
117797
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
117673
117798
|
if (k2 === void 0)
|
|
@@ -117717,9 +117842,9 @@ var require_abap = __commonJS({
|
|
|
117717
117842
|
}
|
|
117718
117843
|
});
|
|
117719
117844
|
|
|
117720
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/factory.js
|
|
117845
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/factory.js
|
|
117721
117846
|
var require_factory = __commonJS({
|
|
117722
|
-
"../../node_modules/@sap-ux/axios-extension/dist/factory.js"(exports2) {
|
|
117847
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/factory.js"(exports2) {
|
|
117723
117848
|
"use strict";
|
|
117724
117849
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
117725
117850
|
function adopt(value) {
|
|
@@ -117882,9 +118007,9 @@ var require_factory = __commonJS({
|
|
|
117882
118007
|
}
|
|
117883
118008
|
});
|
|
117884
118009
|
|
|
117885
|
-
// ../../node_modules/@sap-ux/axios-extension/dist/index.js
|
|
118010
|
+
// ../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/index.js
|
|
117886
118011
|
var require_dist20 = __commonJS({
|
|
117887
|
-
"../../node_modules/@sap-ux/axios-extension/dist/index.js"(exports2) {
|
|
118012
|
+
"../../node_modules/@sap-ux/deploy-tooling/node_modules/@sap-ux/axios-extension/dist/index.js"(exports2) {
|
|
117888
118013
|
"use strict";
|
|
117889
118014
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
117890
118015
|
if (k2 === void 0)
|
|
@@ -121920,7 +122045,7 @@ var require_deploy = __commonJS({
|
|
|
121920
122045
|
});
|
|
121921
122046
|
};
|
|
121922
122047
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
121923
|
-
exports2.undeploy = exports2.deploy = exports2.getCredentials = void 0;
|
|
122048
|
+
exports2.undeploy = exports2.deploy = exports2.createTransportRequest = exports2.getCredentials = void 0;
|
|
121924
122049
|
var axios_extension_1 = require_dist20();
|
|
121925
122050
|
var btp_utils_1 = require_dist19();
|
|
121926
122051
|
var store_1 = require_dist21();
|
|
@@ -121988,8 +122113,8 @@ var require_deploy = __commonJS({
|
|
|
121988
122113
|
return (0, axios_extension_1.createForAbap)(options3);
|
|
121989
122114
|
});
|
|
121990
122115
|
}
|
|
121991
|
-
function
|
|
121992
|
-
var _a2, _b, _c
|
|
122116
|
+
function getAbapServiceProvider(config2, logger) {
|
|
122117
|
+
var _a2, _b, _c;
|
|
121993
122118
|
return __awaiter(this, void 0, void 0, function* () {
|
|
121994
122119
|
let provider;
|
|
121995
122120
|
const options3 = {};
|
|
@@ -122019,14 +122144,14 @@ var require_deploy = __commonJS({
|
|
|
122019
122144
|
} else {
|
|
122020
122145
|
throw new Error("Unable to handle the configuration in the current environment.");
|
|
122021
122146
|
}
|
|
122022
|
-
return provider
|
|
122147
|
+
return provider;
|
|
122023
122148
|
});
|
|
122024
122149
|
}
|
|
122025
|
-
function handleError(command, error4,
|
|
122150
|
+
function handleError(command, error4, provider, config2, logger, archive) {
|
|
122026
122151
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122027
122152
|
const retry2 = config2.retry === void 0 ? true : config2.retry;
|
|
122028
122153
|
if (retry2 && (0, axios_extension_1.isAxiosError)(error4)) {
|
|
122029
|
-
const success = yield
|
|
122154
|
+
const success = yield axiosErrorRetryHandler(command, error4.response, provider, config2, logger, archive);
|
|
122030
122155
|
if (success) {
|
|
122031
122156
|
return;
|
|
122032
122157
|
}
|
|
@@ -122039,55 +122164,96 @@ var require_deploy = __commonJS({
|
|
|
122039
122164
|
throw error4;
|
|
122040
122165
|
});
|
|
122041
122166
|
}
|
|
122042
|
-
function
|
|
122167
|
+
function handle412Error(command, provider, config2, logger, archive) {
|
|
122168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122169
|
+
logger.warn("An app in the same repository with different sap app id found.");
|
|
122170
|
+
if (config2.yes || (yield (0, prompt_1.promptConfirmation)("Do you want to overwrite (Y/n)?"))) {
|
|
122171
|
+
yield deploymentCommands[command](provider, Object.assign(Object.assign({}, config2), { safe: false, retry: false }), logger, archive);
|
|
122172
|
+
return true;
|
|
122173
|
+
} else {
|
|
122174
|
+
return false;
|
|
122175
|
+
}
|
|
122176
|
+
});
|
|
122177
|
+
}
|
|
122178
|
+
function handle401Error(command, provider, config2, logger, archive) {
|
|
122043
122179
|
var _a2;
|
|
122180
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122181
|
+
logger.warn(`${command === "tryDeploy" ? "Deployment" : "Undeployment"} failed with authentication error.`);
|
|
122182
|
+
logger.info("Please maintain correct credentials to avoid seeing this error\n (see help: https://www.npmjs.com/package/@sap/ux-ui5-tooling#setting-environment-variables-in-a-env-file)");
|
|
122183
|
+
logger.info("Please enter your credentials.");
|
|
122184
|
+
const service = getUi5AbapRepositoryService(provider, config2, logger);
|
|
122185
|
+
const credentials = yield (0, prompt_1.promptCredentials)((_a2 = service.defaults.auth) === null || _a2 === void 0 ? void 0 : _a2.username);
|
|
122186
|
+
if (Object.keys(credentials).length) {
|
|
122187
|
+
service.defaults.auth = credentials;
|
|
122188
|
+
yield deploymentCommands[command](provider, config2, logger, archive);
|
|
122189
|
+
return true;
|
|
122190
|
+
} else {
|
|
122191
|
+
return false;
|
|
122192
|
+
}
|
|
122193
|
+
});
|
|
122194
|
+
}
|
|
122195
|
+
function axiosErrorRetryHandler(command, response, provider, config2, logger, archive) {
|
|
122044
122196
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122045
122197
|
switch (response === null || response === void 0 ? void 0 : response.status) {
|
|
122046
122198
|
case 401:
|
|
122047
|
-
|
|
122048
|
-
logger.info("Please maintain correct credentials to avoid seeing this error\n (see help: https://www.npmjs.com/package/@sap/ux-ui5-tooling#setting-environment-variables-in-a-env-file)");
|
|
122049
|
-
logger.info("Please enter your credentials.");
|
|
122050
|
-
const credentials = yield (0, prompt_1.promptCredentials)((_a2 = service.defaults.auth) === null || _a2 === void 0 ? void 0 : _a2.username);
|
|
122051
|
-
if (Object.keys(credentials).length) {
|
|
122052
|
-
service.defaults.auth = credentials;
|
|
122053
|
-
yield deploymentCommands[command](service, config2, logger, archive);
|
|
122054
|
-
return true;
|
|
122055
|
-
} else {
|
|
122056
|
-
return false;
|
|
122057
|
-
}
|
|
122199
|
+
return handle401Error(command, provider, config2, logger, archive);
|
|
122058
122200
|
case 412:
|
|
122059
|
-
|
|
122060
|
-
if (config2.yes || (yield (0, prompt_1.promptConfirmation)("Do you want to overwrite (Y/n)?"))) {
|
|
122061
|
-
yield deploymentCommands[command](service, Object.assign(Object.assign({}, config2), { safe: false, retry: false }), logger, archive);
|
|
122062
|
-
return true;
|
|
122063
|
-
} else {
|
|
122064
|
-
return false;
|
|
122065
|
-
}
|
|
122201
|
+
return handle412Error(command, provider, config2, logger, archive);
|
|
122066
122202
|
default:
|
|
122067
122203
|
return false;
|
|
122068
122204
|
}
|
|
122069
122205
|
});
|
|
122070
122206
|
}
|
|
122071
|
-
function
|
|
122207
|
+
function getUi5AbapRepositoryService(provider, config2, logger) {
|
|
122208
|
+
var _a2;
|
|
122209
|
+
const service = provider.getUi5AbapRepository((_a2 = config2.target) === null || _a2 === void 0 ? void 0 : _a2.service);
|
|
122210
|
+
service.log = logger;
|
|
122211
|
+
if (!config2.strictSsl) {
|
|
122212
|
+
logger.warn("You chose not to validate SSL certificate. Please verify the server certificate is trustful before proceeding. See documentation for recommended configuration (https://help.sap.com/viewer/17d50220bcd848aa854c9c182d65b699/Latest/en-US/4b318bede7eb4021a8be385c46c74045.html).");
|
|
122213
|
+
}
|
|
122214
|
+
return service;
|
|
122215
|
+
}
|
|
122216
|
+
function createTransportRequest2(config2, logger, provider) {
|
|
122217
|
+
var _a2;
|
|
122072
122218
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122073
|
-
|
|
122074
|
-
|
|
122075
|
-
|
|
122076
|
-
|
|
122219
|
+
try {
|
|
122220
|
+
if (!provider) {
|
|
122221
|
+
provider = yield getAbapServiceProvider(config2, logger);
|
|
122222
|
+
}
|
|
122223
|
+
const adtService = yield provider.getAdtService(axios_extension_1.TransportRequestService);
|
|
122224
|
+
logger.debug(`ADTService created for application ${config2.app.name}, ${!adtService}.`);
|
|
122225
|
+
const transportRequest = yield adtService === null || adtService === void 0 ? void 0 : adtService.createTransportRequest({
|
|
122226
|
+
packageName: (_a2 = config2.app.package) !== null && _a2 !== void 0 ? _a2 : "",
|
|
122227
|
+
ui5AppName: config2.app.name,
|
|
122228
|
+
description: "Created by @sap-ux/deploy-tooling"
|
|
122229
|
+
});
|
|
122230
|
+
if (transportRequest) {
|
|
122231
|
+
logger.info(`Transport request ${transportRequest} created for application ${config2.app.name}.`);
|
|
122232
|
+
return transportRequest;
|
|
122233
|
+
}
|
|
122234
|
+
throw new Error(`Transport request could not be created for application ${config2.app.name}.`);
|
|
122235
|
+
} catch (e) {
|
|
122236
|
+
logger.error(`Transport request could not be created for application ${config2.app.name}. Please create it manually and re-run deployment configuration for this project.`);
|
|
122237
|
+
throw e;
|
|
122077
122238
|
}
|
|
122078
|
-
return service;
|
|
122079
122239
|
});
|
|
122080
122240
|
}
|
|
122241
|
+
exports2.createTransportRequest = createTransportRequest2;
|
|
122081
122242
|
function runCommand(command, config2, logger, archive = Buffer.from("")) {
|
|
122082
122243
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122083
|
-
const
|
|
122244
|
+
const provider = yield getAbapServiceProvider(config2, logger);
|
|
122084
122245
|
logger.info(`Starting to ${command === "tryDeploy" ? "deploy" : "undeploy"}${config2.test === true ? " in test mode" : ""}.`);
|
|
122085
|
-
yield deploymentCommands[command](
|
|
122246
|
+
yield deploymentCommands[command](provider, config2, logger, archive);
|
|
122086
122247
|
});
|
|
122087
122248
|
}
|
|
122088
|
-
function tryDeploy(
|
|
122249
|
+
function tryDeploy(provider, config2, logger, archive) {
|
|
122089
122250
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122090
122251
|
try {
|
|
122252
|
+
if (config2.createTransport) {
|
|
122253
|
+
config2.app.transport = yield createTransportRequest2(config2, logger, provider);
|
|
122254
|
+
config2.createTransport = false;
|
|
122255
|
+
}
|
|
122256
|
+
const service = getUi5AbapRepositoryService(provider, config2, logger);
|
|
122091
122257
|
yield service.deploy({ archive, bsp: config2.app, testMode: config2.test, safeMode: config2.safe });
|
|
122092
122258
|
if (config2.test === true) {
|
|
122093
122259
|
logger.info("Deployment in TestMode completed. A successful TestMode execution does not necessarily mean that your upload will be successful.");
|
|
@@ -122095,7 +122261,7 @@ var require_deploy = __commonJS({
|
|
|
122095
122261
|
logger.info("Deployment Successful.");
|
|
122096
122262
|
}
|
|
122097
122263
|
} catch (error4) {
|
|
122098
|
-
yield handleError("tryDeploy", error4,
|
|
122264
|
+
yield handleError("tryDeploy", error4, provider, config2, logger, archive);
|
|
122099
122265
|
}
|
|
122100
122266
|
});
|
|
122101
122267
|
}
|
|
@@ -122108,9 +122274,10 @@ var require_deploy = __commonJS({
|
|
|
122108
122274
|
});
|
|
122109
122275
|
}
|
|
122110
122276
|
exports2.deploy = deploy2;
|
|
122111
|
-
function tryUndeploy(
|
|
122277
|
+
function tryUndeploy(provider, config2, logger) {
|
|
122112
122278
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122113
122279
|
try {
|
|
122280
|
+
const service = getUi5AbapRepositoryService(provider, config2, logger);
|
|
122114
122281
|
yield service.undeploy({ bsp: config2.app, testMode: config2.test });
|
|
122115
122282
|
if (config2.test === true) {
|
|
122116
122283
|
logger.info("Undeployment in TestMode completed. A successful TestMode execution does not necessarily mean that your undeploy will be successful.");
|
|
@@ -122118,7 +122285,7 @@ var require_deploy = __commonJS({
|
|
|
122118
122285
|
logger.info("Undeployment Successful.");
|
|
122119
122286
|
}
|
|
122120
122287
|
} catch (error4) {
|
|
122121
|
-
yield handleError("tryUndeploy", error4,
|
|
122288
|
+
yield handleError("tryUndeploy", error4, provider, config2, logger, Buffer.from(""));
|
|
122122
122289
|
}
|
|
122123
122290
|
});
|
|
122124
122291
|
}
|
|
@@ -125143,6 +125310,14 @@ var require_config6 = __commonJS({
|
|
|
125143
125310
|
service: (_d = options3.service) !== null && _d !== void 0 ? _d : baseTarget === null || baseTarget === void 0 ? void 0 : baseTarget.service
|
|
125144
125311
|
};
|
|
125145
125312
|
}
|
|
125313
|
+
function mergeCredentials(taskConfig, options3) {
|
|
125314
|
+
var _a2, _b;
|
|
125315
|
+
let credentials = taskConfig.credentials;
|
|
125316
|
+
if (options3.username || options3.password) {
|
|
125317
|
+
credentials = Object.assign(Object.assign({}, credentials !== null && credentials !== void 0 ? credentials : {}), { username: (_a2 = options3.username) !== null && _a2 !== void 0 ? _a2 : "", password: (_b = options3.password) !== null && _b !== void 0 ? _b : "" });
|
|
125318
|
+
}
|
|
125319
|
+
return credentials;
|
|
125320
|
+
}
|
|
125146
125321
|
function mergeConfig(taskConfig, options3) {
|
|
125147
125322
|
var _a2, _b, _c, _d, _e, _f, _g, _h;
|
|
125148
125323
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -125153,12 +125328,13 @@ var require_config6 = __commonJS({
|
|
|
125153
125328
|
transport: (_g = options3.transport) !== null && _g !== void 0 ? _g : (_h = taskConfig.app) === null || _h === void 0 ? void 0 : _h.transport
|
|
125154
125329
|
};
|
|
125155
125330
|
const target = mergeTarget(taskConfig.target, options3);
|
|
125156
|
-
const config2 = { app, target, credentials: taskConfig
|
|
125331
|
+
const config2 = { app, target, credentials: mergeCredentials(taskConfig, options3) };
|
|
125157
125332
|
config2.test = mergeFlag(options3.test, taskConfig.test);
|
|
125158
125333
|
config2.safe = mergeFlag(options3.safe, taskConfig.safe);
|
|
125159
125334
|
config2.keep = mergeFlag(options3.keep, taskConfig.keep);
|
|
125160
125335
|
config2.strictSsl = mergeFlag(options3.strictSsl, taskConfig.strictSsl);
|
|
125161
125336
|
config2.yes = mergeFlag(options3.yes, taskConfig.yes);
|
|
125337
|
+
config2.createTransport = mergeFlag(options3.createTransport, taskConfig.createTransport);
|
|
125162
125338
|
config2.retry = process.env.NO_RETRY ? !process.env.NO_RETRY : mergeFlag(options3.retry, taskConfig.retry);
|
|
125163
125339
|
if (!options3.archiveUrl && !options3.archivePath && !options3.archiveFolder) {
|
|
125164
125340
|
options3.archiveFolder = "dist";
|
|
@@ -125299,9 +125475,17 @@ var require_cli4 = __commonJS({
|
|
|
125299
125475
|
var dotenv_1 = require_main2();
|
|
125300
125476
|
function createCommand(name2) {
|
|
125301
125477
|
const command = new commander_1.Command(name2).option("-c, --config <path-to-yaml>", "Path to config yaml file").option("-y, --yes", "yes to all questions", false).option("-n, --no-retry", `do not retry if ${name2} fails for any reason`, true).option("--verbose", "verbose log output", false);
|
|
125302
|
-
command.addOption(new commander_1.Option("--destination <destination>", "Destination in SAP BTP pointing to an ABAP system").conflicts("url")).addOption(new commander_1.Option("--url <target-url>", "URL of target ABAP system").conflicts("destination")).addOption(new commander_1.Option("--client <sap-client>", "Client number of target ABAP system").conflicts("destination")).addOption(new commander_1.Option("--cloud", "Target is an ABAP Cloud system").conflicts("destination")).addOption(new commander_1.Option("--service <service-path>", "Target SAPUI5 Repository OData Service")).addOption(new commander_1.Option("--cloud-service-key <file-location>", "JSON file location with the ABAP cloud service key.").conflicts("destination")).addOption(new commander_1.Option("--cloud-service-env", "Read ABAP cloud service properties from environment variables or .env file").conflicts(["cloudServiceKey", "destination"])).option("--transport <transport-request>", "Transport number to record the change in the ABAP system").
|
|
125478
|
+
command.addOption(new commander_1.Option("--destination <destination>", "Destination in SAP BTP pointing to an ABAP system").conflicts("url")).addOption(new commander_1.Option("--url <target-url>", "URL of target ABAP system").conflicts("destination")).addOption(new commander_1.Option("--client <sap-client>", "Client number of target ABAP system").conflicts("destination")).addOption(new commander_1.Option("--cloud", "Target is an ABAP Cloud system").conflicts("destination")).addOption(new commander_1.Option("--service <service-path>", "Target SAPUI5 Repository OData Service")).addOption(new commander_1.Option("--cloud-service-key <file-location>", "JSON file location with the ABAP cloud service key.").conflicts("destination")).addOption(new commander_1.Option("--cloud-service-env", "Read ABAP cloud service properties from environment variables or .env file").conflicts(["cloudServiceKey", "destination"])).option("--transport <transport-request>", "Transport number to record the change in the ABAP system").addOption(new commander_1.Option("--username <username>", "ABAP System username").conflicts([
|
|
125479
|
+
"cloudServiceKey",
|
|
125480
|
+
"cloudServiceEnv",
|
|
125481
|
+
"destination"
|
|
125482
|
+
])).addOption(new commander_1.Option("--password <password>", "ABAP System password").conflicts([
|
|
125483
|
+
"cloudServiceKey",
|
|
125484
|
+
"cloudServiceEnv",
|
|
125485
|
+
"destination"
|
|
125486
|
+
])).option("--name <bsp-name>", "Project name of the app").option("--no-strict-ssl", "Deactivate certificate validation", true).option("--query-params <param1=value¶m2=value>", "Additional parameters that are to be added to calls to the target.").option("--test", `Run in test mode. ABAP backend reports ${name2}ment errors without actually ${name2}ing (use --no-test to deactivate it).`);
|
|
125303
125487
|
if (name2 === "deploy") {
|
|
125304
|
-
command.option("--package <abap-package>", "Package name for deploy target ABAP system").option("--description <description>", "Project description of the app").option("--safe", "Prevents accidentally breaking deployments.").option("--keep", "Keep a copy of the deployed archive in the project folder.");
|
|
125488
|
+
command.option("--package <abap-package>", "Package name for deploy target ABAP system").option("--description <description>", "Project description of the app").addOption(new commander_1.Option("--create-transport", "Create transport request during deployment").conflicts(["transport"])).option("--safe", "Prevents accidentally breaking deployments.").option("--keep", "Keep a copy of the deployed archive in the project folder.");
|
|
125305
125489
|
command.addOption(new commander_1.Option("--archive-url <url>", "Download app bundle from this url and upload this bundle for deployment").conflicts(["archivePath", "archiveFolder"])).addOption(new commander_1.Option("--archive-path <path>", "Provide path of the app bundle for deployment").conflicts([
|
|
125306
125490
|
"archiveUrl",
|
|
125307
125491
|
"archiveFolder"
|
|
@@ -125392,13 +125576,563 @@ var require_dist22 = __commonJS({
|
|
|
125392
125576
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
125393
125577
|
};
|
|
125394
125578
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
125395
|
-
exports2.task = void 0;
|
|
125579
|
+
exports2.createTransportRequest = exports2.task = void 0;
|
|
125396
125580
|
var ui5_1 = __importDefault(require_ui5());
|
|
125397
125581
|
exports2.task = ui5_1.default;
|
|
125582
|
+
var base_1 = require_base2();
|
|
125583
|
+
Object.defineProperty(exports2, "createTransportRequest", { enumerable: true, get: function() {
|
|
125584
|
+
return base_1.createTransportRequest;
|
|
125585
|
+
} });
|
|
125586
|
+
__exportStar(require_types15(), exports2);
|
|
125398
125587
|
__exportStar(require_cli4(), exports2);
|
|
125399
125588
|
}
|
|
125400
125589
|
});
|
|
125401
125590
|
|
|
125591
|
+
// node_modules/@sap-ux/logger/dist/types.js
|
|
125592
|
+
var require_types18 = __commonJS({
|
|
125593
|
+
"node_modules/@sap-ux/logger/dist/types.js"(exports2) {
|
|
125594
|
+
"use strict";
|
|
125595
|
+
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
125596
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
125597
|
+
};
|
|
125598
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
125599
|
+
exports2.Transport = exports2.LogLevel = void 0;
|
|
125600
|
+
var cloneDeep_1 = __importDefault(require_cloneDeep());
|
|
125601
|
+
var LogLevel2;
|
|
125602
|
+
(function(LogLevel3) {
|
|
125603
|
+
LogLevel3[LogLevel3["Error"] = 0] = "Error";
|
|
125604
|
+
LogLevel3[LogLevel3["Warn"] = 1] = "Warn";
|
|
125605
|
+
LogLevel3[LogLevel3["Info"] = 2] = "Info";
|
|
125606
|
+
LogLevel3[LogLevel3["Verbose"] = 3] = "Verbose";
|
|
125607
|
+
LogLevel3[LogLevel3["Debug"] = 4] = "Debug";
|
|
125608
|
+
LogLevel3[LogLevel3["Silly"] = 5] = "Silly";
|
|
125609
|
+
})(LogLevel2 = exports2.LogLevel || (exports2.LogLevel = {}));
|
|
125610
|
+
var Transport = class {
|
|
125611
|
+
copy(obj) {
|
|
125612
|
+
return Object.freeze((0, cloneDeep_1.default)(obj));
|
|
125613
|
+
}
|
|
125614
|
+
};
|
|
125615
|
+
exports2.Transport = Transport;
|
|
125616
|
+
}
|
|
125617
|
+
});
|
|
125618
|
+
|
|
125619
|
+
// node_modules/@sap-ux/logger/dist/transports/transport.js
|
|
125620
|
+
var require_transport3 = __commonJS({
|
|
125621
|
+
"node_modules/@sap-ux/logger/dist/transports/transport.js"(exports2) {
|
|
125622
|
+
"use strict";
|
|
125623
|
+
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
125624
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
125625
|
+
};
|
|
125626
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
125627
|
+
exports2.ArrayTransport = exports2.VSCodeTransport = exports2.StringArrayTransport = exports2.FileTransport = exports2.NullTransport = exports2.UI5ToolingTransport = exports2.ConsoleTransport = void 0;
|
|
125628
|
+
var winston_transport_1 = __importDefault(require_winston_transport());
|
|
125629
|
+
var types_1 = require_types18();
|
|
125630
|
+
var ConsoleTransport = class extends types_1.Transport {
|
|
125631
|
+
constructor(opts = {}) {
|
|
125632
|
+
super();
|
|
125633
|
+
if (!ConsoleTransport.singletonInstance) {
|
|
125634
|
+
ConsoleTransport.singletonInstance = this;
|
|
125635
|
+
this.options = this.copy(opts);
|
|
125636
|
+
}
|
|
125637
|
+
return ConsoleTransport.singletonInstance;
|
|
125638
|
+
}
|
|
125639
|
+
};
|
|
125640
|
+
exports2.ConsoleTransport = ConsoleTransport;
|
|
125641
|
+
var UI5ToolingTransport2 = class extends types_1.Transport {
|
|
125642
|
+
constructor(opts) {
|
|
125643
|
+
super();
|
|
125644
|
+
const instance = UI5ToolingTransport2.instances.get(opts.moduleName);
|
|
125645
|
+
if (!instance) {
|
|
125646
|
+
this.options = this.copy(opts);
|
|
125647
|
+
UI5ToolingTransport2.instances.set(opts.moduleName, this);
|
|
125648
|
+
return this;
|
|
125649
|
+
} else {
|
|
125650
|
+
return instance;
|
|
125651
|
+
}
|
|
125652
|
+
}
|
|
125653
|
+
};
|
|
125654
|
+
exports2.UI5ToolingTransport = UI5ToolingTransport2;
|
|
125655
|
+
UI5ToolingTransport2.instances = /* @__PURE__ */ new Map();
|
|
125656
|
+
var NullTransport = class extends types_1.Transport {
|
|
125657
|
+
constructor() {
|
|
125658
|
+
super();
|
|
125659
|
+
if (!NullTransport.singletonInstance) {
|
|
125660
|
+
NullTransport.singletonInstance = this;
|
|
125661
|
+
}
|
|
125662
|
+
return NullTransport.singletonInstance;
|
|
125663
|
+
}
|
|
125664
|
+
};
|
|
125665
|
+
exports2.NullTransport = NullTransport;
|
|
125666
|
+
var FileTransport = class extends types_1.Transport {
|
|
125667
|
+
constructor(opts) {
|
|
125668
|
+
super();
|
|
125669
|
+
this.options = this.copy(opts);
|
|
125670
|
+
}
|
|
125671
|
+
};
|
|
125672
|
+
exports2.FileTransport = FileTransport;
|
|
125673
|
+
var StringArrayTransport = class extends types_1.Transport {
|
|
125674
|
+
};
|
|
125675
|
+
exports2.StringArrayTransport = StringArrayTransport;
|
|
125676
|
+
var VSCodeTransport = class extends types_1.Transport {
|
|
125677
|
+
constructor(opts) {
|
|
125678
|
+
super();
|
|
125679
|
+
const instance = VSCodeTransport.instances.get(opts.channelName);
|
|
125680
|
+
if (!instance) {
|
|
125681
|
+
this.options = this.copy(opts);
|
|
125682
|
+
VSCodeTransport.instances.set(opts.channelName, this);
|
|
125683
|
+
return this;
|
|
125684
|
+
} else {
|
|
125685
|
+
return instance;
|
|
125686
|
+
}
|
|
125687
|
+
}
|
|
125688
|
+
};
|
|
125689
|
+
exports2.VSCodeTransport = VSCodeTransport;
|
|
125690
|
+
VSCodeTransport.instances = /* @__PURE__ */ new Map();
|
|
125691
|
+
var ArrayTransport = class extends winston_transport_1.default {
|
|
125692
|
+
constructor(opts) {
|
|
125693
|
+
super({ level: typeof (opts === null || opts === void 0 ? void 0 : opts.logLevel) === "number" ? types_1.LogLevel[opts.logLevel].toLowerCase() : "debug" });
|
|
125694
|
+
this.copy = types_1.Transport.prototype.copy;
|
|
125695
|
+
this.logs = (opts === null || opts === void 0 ? void 0 : opts.logs) || [];
|
|
125696
|
+
}
|
|
125697
|
+
log(info, next) {
|
|
125698
|
+
this.logs.push(info);
|
|
125699
|
+
next();
|
|
125700
|
+
}
|
|
125701
|
+
};
|
|
125702
|
+
exports2.ArrayTransport = ArrayTransport;
|
|
125703
|
+
}
|
|
125704
|
+
});
|
|
125705
|
+
|
|
125706
|
+
// node_modules/@sap-ux/logger/dist/transports/index.js
|
|
125707
|
+
var require_transports4 = __commonJS({
|
|
125708
|
+
"node_modules/@sap-ux/logger/dist/transports/index.js"(exports2) {
|
|
125709
|
+
"use strict";
|
|
125710
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
125711
|
+
if (k2 === void 0)
|
|
125712
|
+
k2 = k;
|
|
125713
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
125714
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
125715
|
+
desc = { enumerable: true, get: function() {
|
|
125716
|
+
return m[k];
|
|
125717
|
+
} };
|
|
125718
|
+
}
|
|
125719
|
+
Object.defineProperty(o, k2, desc);
|
|
125720
|
+
} : function(o, m, k, k2) {
|
|
125721
|
+
if (k2 === void 0)
|
|
125722
|
+
k2 = k;
|
|
125723
|
+
o[k2] = m[k];
|
|
125724
|
+
});
|
|
125725
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
125726
|
+
for (var p in m)
|
|
125727
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
125728
|
+
__createBinding(exports3, m, p);
|
|
125729
|
+
};
|
|
125730
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
125731
|
+
__exportStar(require_transport3(), exports2);
|
|
125732
|
+
}
|
|
125733
|
+
});
|
|
125734
|
+
|
|
125735
|
+
// node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js
|
|
125736
|
+
var require_null_transport3 = __commonJS({
|
|
125737
|
+
"node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js"(exports2) {
|
|
125738
|
+
"use strict";
|
|
125739
|
+
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
125740
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
125741
|
+
};
|
|
125742
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
125743
|
+
exports2.NullTransport = void 0;
|
|
125744
|
+
var winston_transport_1 = __importDefault(require_winston_transport());
|
|
125745
|
+
var NullTransport = class extends winston_transport_1.default {
|
|
125746
|
+
log(_data, callback) {
|
|
125747
|
+
callback();
|
|
125748
|
+
}
|
|
125749
|
+
};
|
|
125750
|
+
exports2.NullTransport = NullTransport;
|
|
125751
|
+
}
|
|
125752
|
+
});
|
|
125753
|
+
|
|
125754
|
+
// node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js
|
|
125755
|
+
var require_vscode_output_channel_transport3 = __commonJS({
|
|
125756
|
+
"node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js"(exports2) {
|
|
125757
|
+
"use strict";
|
|
125758
|
+
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
125759
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
125760
|
+
};
|
|
125761
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
125762
|
+
exports2.VSCodeTransport = void 0;
|
|
125763
|
+
var winston_transport_1 = __importDefault(require_winston_transport());
|
|
125764
|
+
var VSCodeTransport = class extends winston_transport_1.default {
|
|
125765
|
+
constructor(options3) {
|
|
125766
|
+
super(options3);
|
|
125767
|
+
this.channel = getVSCodeInstance().window.createOutputChannel(options3.channelName);
|
|
125768
|
+
}
|
|
125769
|
+
log(data2, callback) {
|
|
125770
|
+
setImmediate(() => {
|
|
125771
|
+
this.channel.appendLine(`${data2.timestamp} [${data2.level.toUpperCase()}] - ${data2.message}`);
|
|
125772
|
+
});
|
|
125773
|
+
callback();
|
|
125774
|
+
}
|
|
125775
|
+
};
|
|
125776
|
+
exports2.VSCodeTransport = VSCodeTransport;
|
|
125777
|
+
function getVSCodeInstance() {
|
|
125778
|
+
return require("vscode");
|
|
125779
|
+
}
|
|
125780
|
+
}
|
|
125781
|
+
});
|
|
125782
|
+
|
|
125783
|
+
// node_modules/@sap-ux/logger/dist/winston-logger/adapter.js
|
|
125784
|
+
var require_adapter3 = __commonJS({
|
|
125785
|
+
"node_modules/@sap-ux/logger/dist/winston-logger/adapter.js"(exports2) {
|
|
125786
|
+
"use strict";
|
|
125787
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
125788
|
+
if (k2 === void 0)
|
|
125789
|
+
k2 = k;
|
|
125790
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
125791
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
125792
|
+
desc = { enumerable: true, get: function() {
|
|
125793
|
+
return m[k];
|
|
125794
|
+
} };
|
|
125795
|
+
}
|
|
125796
|
+
Object.defineProperty(o, k2, desc);
|
|
125797
|
+
} : function(o, m, k, k2) {
|
|
125798
|
+
if (k2 === void 0)
|
|
125799
|
+
k2 = k;
|
|
125800
|
+
o[k2] = m[k];
|
|
125801
|
+
});
|
|
125802
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
125803
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
125804
|
+
} : function(o, v) {
|
|
125805
|
+
o["default"] = v;
|
|
125806
|
+
});
|
|
125807
|
+
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
125808
|
+
if (mod && mod.__esModule)
|
|
125809
|
+
return mod;
|
|
125810
|
+
var result2 = {};
|
|
125811
|
+
if (mod != null) {
|
|
125812
|
+
for (var k in mod)
|
|
125813
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
125814
|
+
__createBinding(result2, mod, k);
|
|
125815
|
+
}
|
|
125816
|
+
__setModuleDefault(result2, mod);
|
|
125817
|
+
return result2;
|
|
125818
|
+
};
|
|
125819
|
+
var __rest = exports2 && exports2.__rest || function(s, e) {
|
|
125820
|
+
var t = {};
|
|
125821
|
+
for (var p in s)
|
|
125822
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
125823
|
+
t[p] = s[p];
|
|
125824
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
125825
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
125826
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
125827
|
+
t[p[i]] = s[p[i]];
|
|
125828
|
+
}
|
|
125829
|
+
return t;
|
|
125830
|
+
};
|
|
125831
|
+
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
125832
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
125833
|
+
};
|
|
125834
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
125835
|
+
exports2.toWinstonTransport = exports2.toWinstonLogLevel = void 0;
|
|
125836
|
+
var types_1 = require_types18();
|
|
125837
|
+
var winston_1 = __importStar(require_winston());
|
|
125838
|
+
var transports_1 = require_transports4();
|
|
125839
|
+
var null_transport_1 = require_null_transport3();
|
|
125840
|
+
var vscode_output_channel_transport_1 = require_vscode_output_channel_transport3();
|
|
125841
|
+
var util_1 = require("util");
|
|
125842
|
+
var chalk_1 = __importDefault(require_source7());
|
|
125843
|
+
function toWinstonLogLevel(logLevel) {
|
|
125844
|
+
return logLevel === void 0 ? void 0 : types_1.LogLevel[logLevel].toLowerCase();
|
|
125845
|
+
}
|
|
125846
|
+
exports2.toWinstonLogLevel = toWinstonLogLevel;
|
|
125847
|
+
var toWinstonTransportOptions = (transportOptions) => {
|
|
125848
|
+
const { logLevel } = transportOptions, opts = __rest(transportOptions, ["logLevel"]);
|
|
125849
|
+
return Object.assign({}, opts, { level: toWinstonLogLevel(logLevel) });
|
|
125850
|
+
};
|
|
125851
|
+
var levelColor = {
|
|
125852
|
+
info: "green",
|
|
125853
|
+
warn: "yellow",
|
|
125854
|
+
error: "red",
|
|
125855
|
+
verbose: "blue",
|
|
125856
|
+
silly: "magenta",
|
|
125857
|
+
debug: "cyan"
|
|
125858
|
+
};
|
|
125859
|
+
var hasColorSupport = () => process.stdout.isTTY;
|
|
125860
|
+
var colorFn = (color) => {
|
|
125861
|
+
try {
|
|
125862
|
+
return color ? chalk_1.default.keyword(color) : void 0;
|
|
125863
|
+
} catch (_a2) {
|
|
125864
|
+
return void 0;
|
|
125865
|
+
}
|
|
125866
|
+
};
|
|
125867
|
+
var ui5ToolingFormat = (moduleName) => winston_1.format.combine(winston_1.format.colorize(), winston_1.format.label({ label: moduleName }), winston_1.format.printf(({ level, message, label }) => {
|
|
125868
|
+
let msg = typeof message === "string" ? message : (0, util_1.inspect)(message);
|
|
125869
|
+
msg = msg.split(/\r?\n/).join(`
|
|
125870
|
+
${level} ${chalk_1.default.magenta(label)} `);
|
|
125871
|
+
return `${level} ${chalk_1.default.magenta(label)} ${msg}`;
|
|
125872
|
+
}));
|
|
125873
|
+
var decorateLevel = (level) => {
|
|
125874
|
+
const padded = level.padEnd(7);
|
|
125875
|
+
if (hasColorSupport()) {
|
|
125876
|
+
const decorator = colorFn(levelColor[level]);
|
|
125877
|
+
if (decorator) {
|
|
125878
|
+
return decorator(padded);
|
|
125879
|
+
}
|
|
125880
|
+
}
|
|
125881
|
+
return padded;
|
|
125882
|
+
};
|
|
125883
|
+
var decorateLabel = (label, labelColor) => {
|
|
125884
|
+
let l = label !== null && label !== void 0 ? label : "";
|
|
125885
|
+
if (hasColorSupport() && label && typeof labelColor === "string") {
|
|
125886
|
+
const decorator = colorFn(labelColor);
|
|
125887
|
+
if (decorator) {
|
|
125888
|
+
l = decorator(label);
|
|
125889
|
+
}
|
|
125890
|
+
}
|
|
125891
|
+
return l;
|
|
125892
|
+
};
|
|
125893
|
+
var consoleFormat = winston_1.format.combine(winston_1.format.timestamp({ format: "YYYY-MM-DD HH:mm:ss" }), winston_1.format.printf((_a2) => {
|
|
125894
|
+
var { timestamp, level, message, label, labelColor } = _a2, meta = __rest(_a2, ["timestamp", "level", "message", "label", "labelColor"]);
|
|
125895
|
+
const msg = typeof message === "string" ? message : (0, util_1.inspect)(message);
|
|
125896
|
+
const lvl = decorateLevel(level);
|
|
125897
|
+
return `${timestamp} ${lvl} ${decorateLabel(label, labelColor)}: ${msg} ${Object.keys(meta).length ? (0, util_1.inspect)(meta) : ""}`;
|
|
125898
|
+
}));
|
|
125899
|
+
function toWinstonTransport(transport) {
|
|
125900
|
+
if (transport instanceof transports_1.NullTransport) {
|
|
125901
|
+
return new null_transport_1.NullTransport();
|
|
125902
|
+
} else if (transport instanceof transports_1.ConsoleTransport) {
|
|
125903
|
+
return new winston_1.default.transports.Console(Object.assign(Object.assign({}, toWinstonTransportOptions(transport.options)), { format: consoleFormat }));
|
|
125904
|
+
} else if (transport instanceof transports_1.FileTransport) {
|
|
125905
|
+
return new winston_1.default.transports.File(toWinstonTransportOptions(transport.options));
|
|
125906
|
+
} else if (transport instanceof transports_1.VSCodeTransport) {
|
|
125907
|
+
return new vscode_output_channel_transport_1.VSCodeTransport(toWinstonTransportOptions(transport.options));
|
|
125908
|
+
} else if (transport instanceof transports_1.UI5ToolingTransport) {
|
|
125909
|
+
return new winston_1.default.transports.Console(Object.assign(Object.assign({}, toWinstonTransportOptions(transport.options)), { format: ui5ToolingFormat(transport.options.moduleName) }));
|
|
125910
|
+
} else if (transport instanceof transports_1.ArrayTransport) {
|
|
125911
|
+
return transport;
|
|
125912
|
+
} else {
|
|
125913
|
+
throw new Error("Unrecognized transport type");
|
|
125914
|
+
}
|
|
125915
|
+
}
|
|
125916
|
+
exports2.toWinstonTransport = toWinstonTransport;
|
|
125917
|
+
}
|
|
125918
|
+
});
|
|
125919
|
+
|
|
125920
|
+
// node_modules/@sap-ux/logger/dist/winston-logger/utils.js
|
|
125921
|
+
var require_utils17 = __commonJS({
|
|
125922
|
+
"node_modules/@sap-ux/logger/dist/winston-logger/utils.js"(exports2) {
|
|
125923
|
+
"use strict";
|
|
125924
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
125925
|
+
exports2.nextColor = void 0;
|
|
125926
|
+
function* color() {
|
|
125927
|
+
const colors = ["magenta", "cyan", "blue", "yellow", "green", "red"];
|
|
125928
|
+
let current = 0;
|
|
125929
|
+
while (true) {
|
|
125930
|
+
if (current === colors.length) {
|
|
125931
|
+
current = 0;
|
|
125932
|
+
}
|
|
125933
|
+
yield colors[current++];
|
|
125934
|
+
}
|
|
125935
|
+
}
|
|
125936
|
+
var colorGenerator = color();
|
|
125937
|
+
var nextColor = () => colorGenerator.next().value;
|
|
125938
|
+
exports2.nextColor = nextColor;
|
|
125939
|
+
}
|
|
125940
|
+
});
|
|
125941
|
+
|
|
125942
|
+
// node_modules/@sap-ux/logger/dist/winston-logger/logger.js
|
|
125943
|
+
var require_logger6 = __commonJS({
|
|
125944
|
+
"node_modules/@sap-ux/logger/dist/winston-logger/logger.js"(exports2) {
|
|
125945
|
+
"use strict";
|
|
125946
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
125947
|
+
if (k2 === void 0)
|
|
125948
|
+
k2 = k;
|
|
125949
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
125950
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
125951
|
+
desc = { enumerable: true, get: function() {
|
|
125952
|
+
return m[k];
|
|
125953
|
+
} };
|
|
125954
|
+
}
|
|
125955
|
+
Object.defineProperty(o, k2, desc);
|
|
125956
|
+
} : function(o, m, k, k2) {
|
|
125957
|
+
if (k2 === void 0)
|
|
125958
|
+
k2 = k;
|
|
125959
|
+
o[k2] = m[k];
|
|
125960
|
+
});
|
|
125961
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
125962
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
125963
|
+
} : function(o, v) {
|
|
125964
|
+
o["default"] = v;
|
|
125965
|
+
});
|
|
125966
|
+
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
125967
|
+
if (mod && mod.__esModule)
|
|
125968
|
+
return mod;
|
|
125969
|
+
var result2 = {};
|
|
125970
|
+
if (mod != null) {
|
|
125971
|
+
for (var k in mod)
|
|
125972
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
125973
|
+
__createBinding(result2, mod, k);
|
|
125974
|
+
}
|
|
125975
|
+
__setModuleDefault(result2, mod);
|
|
125976
|
+
return result2;
|
|
125977
|
+
};
|
|
125978
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
125979
|
+
exports2.WinstonLogger = void 0;
|
|
125980
|
+
var transports_1 = require_transports4();
|
|
125981
|
+
var types_1 = require_types18();
|
|
125982
|
+
var winston_1 = __importStar(require_winston());
|
|
125983
|
+
var adapter_1 = require_adapter3();
|
|
125984
|
+
var utils_1 = require_utils17();
|
|
125985
|
+
var util_1 = require("util");
|
|
125986
|
+
var defaultLoggerOptions = {
|
|
125987
|
+
transports: [new transports_1.ConsoleTransport()]
|
|
125988
|
+
};
|
|
125989
|
+
var BaseWinstonLogger = class {
|
|
125990
|
+
initialize({ logger, transportMap, metadataOverride, winstonLevel, logPrefix }) {
|
|
125991
|
+
this._logger = logger;
|
|
125992
|
+
this.transportMap = transportMap;
|
|
125993
|
+
this.winstonLevel = winstonLevel;
|
|
125994
|
+
this.logPrefix = logPrefix;
|
|
125995
|
+
this.metadataOverride = metadataOverride;
|
|
125996
|
+
}
|
|
125997
|
+
info(message) {
|
|
125998
|
+
this.log({ level: types_1.LogLevel.Info, message });
|
|
125999
|
+
}
|
|
126000
|
+
warn(message) {
|
|
126001
|
+
this.log({ level: types_1.LogLevel.Warn, message });
|
|
126002
|
+
}
|
|
126003
|
+
error(message) {
|
|
126004
|
+
this.log({ level: types_1.LogLevel.Error, message });
|
|
126005
|
+
}
|
|
126006
|
+
debug(message) {
|
|
126007
|
+
this.log({ level: types_1.LogLevel.Debug, message });
|
|
126008
|
+
}
|
|
126009
|
+
log(data2) {
|
|
126010
|
+
var _a2;
|
|
126011
|
+
if (!this.transportMap.size) {
|
|
126012
|
+
return;
|
|
126013
|
+
}
|
|
126014
|
+
if (typeof data2 === "string") {
|
|
126015
|
+
this.winstonLog({ level: this.winstonLevel, message: data2, metadata: this.metadataOverride });
|
|
126016
|
+
} else {
|
|
126017
|
+
const level = (_a2 = (0, adapter_1.toWinstonLogLevel)(data2.level)) !== null && _a2 !== void 0 ? _a2 : this._logger.level;
|
|
126018
|
+
this.winstonLog({ level, message: data2.message, metadata: this.metadataOverride });
|
|
126019
|
+
}
|
|
126020
|
+
}
|
|
126021
|
+
winstonLog({ level, message, metadata }) {
|
|
126022
|
+
const msg = typeof message === "string" ? message : (0, util_1.inspect)(message);
|
|
126023
|
+
this._logger.log(level, msg, metadata);
|
|
126024
|
+
}
|
|
126025
|
+
addToMap(transportMap, transport) {
|
|
126026
|
+
const winstonTransport = (0, adapter_1.toWinstonTransport)(transport);
|
|
126027
|
+
if (!transportMap.has(transport)) {
|
|
126028
|
+
transportMap.set(transport, winstonTransport);
|
|
126029
|
+
return winstonTransport;
|
|
126030
|
+
}
|
|
126031
|
+
return void 0;
|
|
126032
|
+
}
|
|
126033
|
+
add(transport) {
|
|
126034
|
+
const winstonTransport = this.addToMap(this.transportMap, transport);
|
|
126035
|
+
if (winstonTransport) {
|
|
126036
|
+
this._logger.add(winstonTransport);
|
|
126037
|
+
}
|
|
126038
|
+
return this;
|
|
126039
|
+
}
|
|
126040
|
+
remove(transport) {
|
|
126041
|
+
const winstonTransport = this.transportMap.get(transport);
|
|
126042
|
+
if (winstonTransport) {
|
|
126043
|
+
this._logger.remove(winstonTransport);
|
|
126044
|
+
this.transportMap.delete(transport);
|
|
126045
|
+
return this;
|
|
126046
|
+
} else {
|
|
126047
|
+
throw new Error("Cannot remove non-existent transport");
|
|
126048
|
+
}
|
|
126049
|
+
}
|
|
126050
|
+
transports() {
|
|
126051
|
+
return Array.from(this.transportMap.keys());
|
|
126052
|
+
}
|
|
126053
|
+
child({ logPrefix }) {
|
|
126054
|
+
const childLogPrefix = `${this.logPrefix}.${logPrefix}`;
|
|
126055
|
+
const metadataOverride = { label: childLogPrefix, labelColor: (0, utils_1.nextColor)() };
|
|
126056
|
+
const childWinstonLogger = this._logger.child(metadataOverride);
|
|
126057
|
+
const childLogger = new BaseWinstonLogger();
|
|
126058
|
+
childLogger.initialize({
|
|
126059
|
+
logger: childWinstonLogger,
|
|
126060
|
+
transportMap: this.transportMap,
|
|
126061
|
+
winstonLevel: this.winstonLevel,
|
|
126062
|
+
logPrefix: childLogPrefix,
|
|
126063
|
+
metadataOverride
|
|
126064
|
+
});
|
|
126065
|
+
return childLogger;
|
|
126066
|
+
}
|
|
126067
|
+
};
|
|
126068
|
+
var WinstonLogger = class extends BaseWinstonLogger {
|
|
126069
|
+
constructor({ logLevel = types_1.LogLevel.Info, transports = [], logPrefix = "main" } = defaultLoggerOptions) {
|
|
126070
|
+
super();
|
|
126071
|
+
const transportMap = /* @__PURE__ */ new Map();
|
|
126072
|
+
transports.forEach((t) => this.addToMap(transportMap, t));
|
|
126073
|
+
const level = (0, adapter_1.toWinstonLogLevel)(logLevel);
|
|
126074
|
+
const logger = winston_1.default.createLogger({
|
|
126075
|
+
level,
|
|
126076
|
+
transports: Array.from(transportMap.values()),
|
|
126077
|
+
format: winston_1.format.combine(winston_1.format.timestamp(), winston_1.format.json()),
|
|
126078
|
+
defaultMeta: { label: logPrefix, labelColor: (0, utils_1.nextColor)() }
|
|
126079
|
+
});
|
|
126080
|
+
const winstonLevel = level !== null && level !== void 0 ? level : logger.level;
|
|
126081
|
+
this.initialize({ logger, transportMap, winstonLevel, logPrefix });
|
|
126082
|
+
}
|
|
126083
|
+
};
|
|
126084
|
+
exports2.WinstonLogger = WinstonLogger;
|
|
126085
|
+
}
|
|
126086
|
+
});
|
|
126087
|
+
|
|
126088
|
+
// node_modules/@sap-ux/logger/dist/winston-logger/index.js
|
|
126089
|
+
var require_winston_logger3 = __commonJS({
|
|
126090
|
+
"node_modules/@sap-ux/logger/dist/winston-logger/index.js"(exports2) {
|
|
126091
|
+
"use strict";
|
|
126092
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
126093
|
+
exports2.WinstonLogger = void 0;
|
|
126094
|
+
var logger_1 = require_logger6();
|
|
126095
|
+
Object.defineProperty(exports2, "WinstonLogger", { enumerable: true, get: function() {
|
|
126096
|
+
return logger_1.WinstonLogger;
|
|
126097
|
+
} });
|
|
126098
|
+
}
|
|
126099
|
+
});
|
|
126100
|
+
|
|
126101
|
+
// node_modules/@sap-ux/logger/dist/index.js
|
|
126102
|
+
var require_dist23 = __commonJS({
|
|
126103
|
+
"node_modules/@sap-ux/logger/dist/index.js"(exports2) {
|
|
126104
|
+
"use strict";
|
|
126105
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
126106
|
+
if (k2 === void 0)
|
|
126107
|
+
k2 = k;
|
|
126108
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
126109
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
126110
|
+
desc = { enumerable: true, get: function() {
|
|
126111
|
+
return m[k];
|
|
126112
|
+
} };
|
|
126113
|
+
}
|
|
126114
|
+
Object.defineProperty(o, k2, desc);
|
|
126115
|
+
} : function(o, m, k, k2) {
|
|
126116
|
+
if (k2 === void 0)
|
|
126117
|
+
k2 = k;
|
|
126118
|
+
o[k2] = m[k];
|
|
126119
|
+
});
|
|
126120
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
126121
|
+
for (var p in m)
|
|
126122
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
126123
|
+
__createBinding(exports3, m, p);
|
|
126124
|
+
};
|
|
126125
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
126126
|
+
exports2.ToolsLogger = void 0;
|
|
126127
|
+
__exportStar(require_types18(), exports2);
|
|
126128
|
+
__exportStar(require_transports4(), exports2);
|
|
126129
|
+
var winston_logger_1 = require_winston_logger3();
|
|
126130
|
+
Object.defineProperty(exports2, "ToolsLogger", { enumerable: true, get: function() {
|
|
126131
|
+
return winston_logger_1.WinstonLogger;
|
|
126132
|
+
} });
|
|
126133
|
+
}
|
|
126134
|
+
});
|
|
126135
|
+
|
|
125402
126136
|
// src/cli/index.ts
|
|
125403
126137
|
var cli_exports = {};
|
|
125404
126138
|
__export(cli_exports, {
|
|
@@ -125716,6 +126450,9 @@ function mergeConfigAndParams(config2, params) {
|
|
|
125716
126450
|
config2.ignoreCertError = false;
|
|
125717
126451
|
config2.strictSsl = true;
|
|
125718
126452
|
}
|
|
126453
|
+
if (params.config) {
|
|
126454
|
+
config2.configPath = params.config;
|
|
126455
|
+
}
|
|
125719
126456
|
handleConfigDeployment(config2, params);
|
|
125720
126457
|
config2.cli = !!params.noConfig;
|
|
125721
126458
|
}
|
|
@@ -127407,7 +128144,7 @@ var i18n_default = {
|
|
|
127407
128144
|
ARCHIVE_PATH_SUCCESSFULLY_GENERATED: "Archive successfully generated for deployment.",
|
|
127408
128145
|
ARCHIVE_PATH_CREATED: "Archive path created {{-archivePath}}",
|
|
127409
128146
|
ARCHIVE_PATH_AVAILABLE: "Archive read from {{-archivePath}}",
|
|
127410
|
-
|
|
128147
|
+
ERROR_UPDATE_DEPLOY_CONFIG: "Error while updating config file, error was: {{-error}}",
|
|
127411
128148
|
TELEMETRY_CALL_FAILED: "Error while sending telemetry data"
|
|
127412
128149
|
};
|
|
127413
128150
|
|
|
@@ -129754,7 +130491,7 @@ function help(args) {
|
|
|
129754
130491
|
|
|
129755
130492
|
// src/tasks/deploy/index.ts
|
|
129756
130493
|
var import_btp_utils4 = __toESM(require_dist10());
|
|
129757
|
-
var
|
|
130494
|
+
var import_logger4 = __toESM(require_logger4());
|
|
129758
130495
|
var import_prompts = __toESM(require_prompts3());
|
|
129759
130496
|
|
|
129760
130497
|
// src/tasks/deploy/steps.ts
|
|
@@ -129814,7 +130551,7 @@ async function validateTargetSystemUi5Version(config2) {
|
|
|
129814
130551
|
// src/tasks/deploy/index.ts
|
|
129815
130552
|
init_i18next();
|
|
129816
130553
|
var import_ux_telemetry2 = __toESM(require_src13());
|
|
129817
|
-
var
|
|
130554
|
+
var import_fs10 = require("fs");
|
|
129818
130555
|
|
|
129819
130556
|
// src/tasks/deploy/util.ts
|
|
129820
130557
|
var import_deploy_tooling2 = __toESM(require_dist22());
|
|
@@ -129825,7 +130562,7 @@ var import_deploy_tooling = __toESM(require_dist22());
|
|
|
129825
130562
|
var import_btp_utils3 = __toESM(require_dist10());
|
|
129826
130563
|
var commands = { runDeploy: import_deploy_tooling.runDeploy, runUndeploy: import_deploy_tooling.runUndeploy };
|
|
129827
130564
|
var configureCliParamsUsingUI5Config = (config2) => {
|
|
129828
|
-
var _a2, _b, _c, _d, _e, _f, _g
|
|
130565
|
+
var _a2, _b, _c, _d, _e, _f, _g;
|
|
129829
130566
|
const isDestinationEnabled = (0, import_btp_utils3.isAppStudio)() && ((_a2 = config2.target) == null ? void 0 : _a2.destination);
|
|
129830
130567
|
if (isDestinationEnabled) {
|
|
129831
130568
|
process.argv.push(...["--destination", config2.target.destination]);
|
|
@@ -129840,17 +130577,17 @@ var configureCliParamsUsingUI5Config = (config2) => {
|
|
|
129840
130577
|
process.argv.push(...["--cloud", config2.target.cloud.toString()]);
|
|
129841
130578
|
}
|
|
129842
130579
|
if ((_e = config2.app) == null ? void 0 : _e.transport) {
|
|
129843
|
-
process.argv.push(...["--transport",
|
|
130580
|
+
process.argv.push(...["--transport", config2.app.transport]);
|
|
129844
130581
|
}
|
|
129845
|
-
if ((
|
|
129846
|
-
process.argv.push(...["--name",
|
|
130582
|
+
if ((_f = config2.app) == null ? void 0 : _f.name) {
|
|
130583
|
+
process.argv.push(...["--name", config2.app.name]);
|
|
129847
130584
|
}
|
|
129848
|
-
if ((
|
|
130585
|
+
if ((_g = config2.app) == null ? void 0 : _g.description) {
|
|
129849
130586
|
process.argv.push["--description"] = config2.app.description;
|
|
129850
130587
|
}
|
|
129851
130588
|
};
|
|
129852
130589
|
function configureCliParams(config2) {
|
|
129853
|
-
var _a2;
|
|
130590
|
+
var _a2, _b, _c;
|
|
129854
130591
|
configureCliParamsUsingUI5Config(config2);
|
|
129855
130592
|
const updatedArgs = [];
|
|
129856
130593
|
const { params, args } = parseCliArgs(process.argv, paramMap, defaultParams);
|
|
@@ -129863,6 +130600,12 @@ function configureCliParams(config2) {
|
|
|
129863
130600
|
if (config2.retry) {
|
|
129864
130601
|
params["no-retry"] = true;
|
|
129865
130602
|
}
|
|
130603
|
+
if ((_a2 = config2.credentials) == null ? void 0 : _a2.username) {
|
|
130604
|
+
updatedArgs.push(...["--username"], config2.credentials.username);
|
|
130605
|
+
}
|
|
130606
|
+
if ((_b = config2.credentials) == null ? void 0 : _b.password) {
|
|
130607
|
+
updatedArgs.push(...["--password"], config2.credentials.password);
|
|
130608
|
+
}
|
|
129866
130609
|
if (params[UAA_URL]) {
|
|
129867
130610
|
process.env.SERVICE_UAA_URL = params[UAA_URL].replace("oauth/token", "").replace(/([^:]\/)\/+/g, "$1");
|
|
129868
130611
|
}
|
|
@@ -129878,11 +130621,11 @@ function configureCliParams(config2) {
|
|
|
129878
130621
|
if (params[UAA_SECRET]) {
|
|
129879
130622
|
process.env.SERVICE_CLIENT_SECRET = params[UAA_SECRET];
|
|
129880
130623
|
}
|
|
129881
|
-
if ((
|
|
129882
|
-
updatedArgs.push(...[
|
|
130624
|
+
if ((_c = config2.credentials) == null ? void 0 : _c.serviceInfo) {
|
|
130625
|
+
updatedArgs.push(...["--cloud-service-env"], true);
|
|
129883
130626
|
}
|
|
129884
130627
|
if (config2.strictSsl === false) {
|
|
129885
|
-
updatedArgs.push(...[
|
|
130628
|
+
updatedArgs.push(...["--no-strict-ssl"], true);
|
|
129886
130629
|
}
|
|
129887
130630
|
[
|
|
129888
130631
|
"config",
|
|
@@ -129909,6 +130652,10 @@ async function runCliCommand(config2, command) {
|
|
|
129909
130652
|
}
|
|
129910
130653
|
|
|
129911
130654
|
// src/tasks/deploy/util.ts
|
|
130655
|
+
var import_yaml6 = __toESM(require_dist3());
|
|
130656
|
+
var import_logger3 = __toESM(require_dist23());
|
|
130657
|
+
var import_fs9 = require("fs");
|
|
130658
|
+
var CREATE_TR_DURING_DEPLOY = "REPLACE_WITH_TRANSPORT";
|
|
129912
130659
|
async function deployToABAP(workspace, options3, log8 = console, archivePath) {
|
|
129913
130660
|
var _a2;
|
|
129914
130661
|
if (log8 && archivePath) {
|
|
@@ -129920,12 +130667,42 @@ async function deployToABAP(workspace, options3, log8 = console, archivePath) {
|
|
|
129920
130667
|
await (0, import_deploy_tooling2.task)({ workspace, options: options3 });
|
|
129921
130668
|
}
|
|
129922
130669
|
}
|
|
130670
|
+
async function createTransport(options3, config2) {
|
|
130671
|
+
var _a2, _b;
|
|
130672
|
+
if (((_a2 = config2.app) == null ? void 0 : _a2.transport) === CREATE_TR_DURING_DEPLOY) {
|
|
130673
|
+
const logger = new import_logger3.ToolsLogger({
|
|
130674
|
+
transports: [new import_logger3.UI5ToolingTransport({ moduleName: `${import_deploy_tooling2.NAME} ${options3.projectName}` })],
|
|
130675
|
+
logLevel: ((_b = options3.configuration) == null ? void 0 : _b.log) ?? import_logger3.LogLevel.Info
|
|
130676
|
+
});
|
|
130677
|
+
const transport = await (0, import_deploy_tooling2.createTransportRequest)({
|
|
130678
|
+
app: config2 == null ? void 0 : config2.app,
|
|
130679
|
+
target: config2 == null ? void 0 : config2.target,
|
|
130680
|
+
credentials: config2 == null ? void 0 : config2.credentials
|
|
130681
|
+
}, logger);
|
|
130682
|
+
options3.configuration.app.transport = transport;
|
|
130683
|
+
await updateTransportDeployConfig(options3.configuration.app.transport, config2);
|
|
130684
|
+
}
|
|
130685
|
+
}
|
|
130686
|
+
async function updateTransportDeployConfig(transport, config2, log8 = console) {
|
|
130687
|
+
var _a2, _b, _c, _d;
|
|
130688
|
+
try {
|
|
130689
|
+
const yamlContent = import_yaml6.default.parseDocument(await import_fs9.promises.readFile(config2.configPath, { encoding: "utf8" })).toJSON();
|
|
130690
|
+
if ((_d = (_c = (_b = (_a2 = yamlContent.builder) == null ? void 0 : _a2.customTasks[0]) == null ? void 0 : _b.configuration) == null ? void 0 : _c.app) == null ? void 0 : _d.transport) {
|
|
130691
|
+
yamlContent.builder.customTasks[0].configuration.app.transport = transport;
|
|
130692
|
+
await import_fs9.promises.writeFile(config2.configPath, import_yaml6.default.stringify(yamlContent), {
|
|
130693
|
+
encoding: "utf8"
|
|
130694
|
+
});
|
|
130695
|
+
}
|
|
130696
|
+
} catch (e) {
|
|
130697
|
+
log8.error(i18next_default.t("ERROR_UPDATE_DEPLOY_CONFIG", { error: e }));
|
|
130698
|
+
}
|
|
130699
|
+
}
|
|
129923
130700
|
|
|
129924
130701
|
// package.json
|
|
129925
130702
|
var package_default = {
|
|
129926
130703
|
name: "@sap/ux-ui5-tooling",
|
|
129927
130704
|
displayName: "SAP Fiori Tools \u2013 UI5 Tooling",
|
|
129928
|
-
version: "1.10.
|
|
130705
|
+
version: "1.10.4",
|
|
129929
130706
|
description: "SAP Fiori Tools \u2013 UI5 Tooling",
|
|
129930
130707
|
publisher: "SAPSE",
|
|
129931
130708
|
license: "SEE LICENSE IN LICENSE",
|
|
@@ -129973,19 +130750,19 @@ var package_default = {
|
|
|
129973
130750
|
devDependencies: {
|
|
129974
130751
|
"@sap-ux/backend-proxy-middleware": "0.6.57",
|
|
129975
130752
|
"@sap-ux/btp-utils": "0.11.6",
|
|
129976
|
-
"@sap-ux/deploy-tooling": "0.
|
|
130753
|
+
"@sap-ux/deploy-tooling": "0.7.1",
|
|
129977
130754
|
"@sap-ux/logger": "0.3.6",
|
|
129978
130755
|
"@sap-ux/store": "0.3.11",
|
|
129979
130756
|
"@sap-ux/ui5-config": "0.18.2",
|
|
129980
130757
|
"@sap-ux/ui5-proxy-middleware": "1.1.31",
|
|
129981
|
-
"@sap/ux-app-templates": "1.10.
|
|
129982
|
-
"@sap/ux-cds": "1.10.
|
|
129983
|
-
"@sap/ux-common-utils": "1.10.
|
|
129984
|
-
"@sap/ux-control-property-editor": "1.10.
|
|
129985
|
-
"@sap/ux-odata-client": "1.10.
|
|
129986
|
-
"@sap/ux-telemetry": "1.10.
|
|
129987
|
-
"@sap/ux-ui5-info": "1.10.
|
|
129988
|
-
"@sapux/project-spec": "1.10.
|
|
130758
|
+
"@sap/ux-app-templates": "1.10.4",
|
|
130759
|
+
"@sap/ux-cds": "1.10.4",
|
|
130760
|
+
"@sap/ux-common-utils": "1.10.4",
|
|
130761
|
+
"@sap/ux-control-property-editor": "1.10.4",
|
|
130762
|
+
"@sap/ux-odata-client": "1.10.4",
|
|
130763
|
+
"@sap/ux-telemetry": "1.10.4",
|
|
130764
|
+
"@sap/ux-ui5-info": "1.10.4",
|
|
130765
|
+
"@sapux/project-spec": "1.10.4",
|
|
129989
130766
|
"@types/marked": "4.0.1",
|
|
129990
130767
|
"@types/prompts": "2.0.14",
|
|
129991
130768
|
"@types/supertest": "2.0.12",
|
|
@@ -130060,7 +130837,7 @@ var package_default = {
|
|
|
130060
130837
|
var chalk = require_source7();
|
|
130061
130838
|
async function task2({ workspace, options: options3 }) {
|
|
130062
130839
|
await initI18n();
|
|
130063
|
-
const log8 = (0,
|
|
130840
|
+
const log8 = (0, import_logger4.getLogger)("builder:custom deploy-to-abap");
|
|
130064
130841
|
const config2 = await validateConfigProperties(options3 == null ? void 0 : options3.configuration);
|
|
130065
130842
|
const isValidDist = await validateDistDir(config2.archivePath);
|
|
130066
130843
|
if (!isValidDist) {
|
|
@@ -130084,13 +130861,14 @@ async function task2({ workspace, options: options3 }) {
|
|
|
130084
130861
|
}
|
|
130085
130862
|
let archivePath;
|
|
130086
130863
|
if (config2.archivePath) {
|
|
130087
|
-
if (!(0,
|
|
130864
|
+
if (!(0, import_fs10.existsSync)(config2.archivePath)) {
|
|
130088
130865
|
throw new Error(i18next_default.t("ERROR_ARCHIVE_FROM_EXTERNAL_FILEPATH"));
|
|
130089
130866
|
}
|
|
130090
130867
|
archivePath = config2.archivePath;
|
|
130091
130868
|
} else if (!config2.archivePath && !config2.archiveUrl) {
|
|
130092
130869
|
await generateIndexFile(options3.configuration, log8);
|
|
130093
130870
|
}
|
|
130871
|
+
await createTransport(options3, config2);
|
|
130094
130872
|
await deployToABAP(finalWorkspace, options3, log8, archivePath);
|
|
130095
130873
|
trackEvent(executionTime, config2, log8);
|
|
130096
130874
|
} catch (e) {
|
|
@@ -130269,7 +131047,7 @@ async function executeCmd3(args) {
|
|
|
130269
131047
|
}
|
|
130270
131048
|
|
|
130271
131049
|
// src/cli/cmd/verifyBeforeDeploy.ts
|
|
130272
|
-
var
|
|
131050
|
+
var import_fs11 = __toESM(require("fs"));
|
|
130273
131051
|
var import_path8 = __toESM(require("path"));
|
|
130274
131052
|
init_i18next();
|
|
130275
131053
|
var chalk2 = require_source7();
|
|
@@ -130282,7 +131060,7 @@ async function verify(args) {
|
|
|
130282
131060
|
}
|
|
130283
131061
|
async function executeCmd4() {
|
|
130284
131062
|
const deployConfigPath = import_path8.default.join(process.cwd(), "ui5-deploy.yaml");
|
|
130285
|
-
if (!
|
|
131063
|
+
if (!import_fs11.default.existsSync(deployConfigPath)) {
|
|
130286
131064
|
await initI18n();
|
|
130287
131065
|
console.log(chalk2.yellow(i18next_default.t("NO_DEPLOY_CONFIG")));
|
|
130288
131066
|
}
|
|
@@ -130294,7 +131072,7 @@ init_i18next();
|
|
|
130294
131072
|
// src/tasks/undeploy/index.ts
|
|
130295
131073
|
var import_btp_utils5 = __toESM(require_dist10());
|
|
130296
131074
|
var import_ux_odata_client = __toESM(require_dist8());
|
|
130297
|
-
var
|
|
131075
|
+
var import_logger5 = __toESM(require_logger4());
|
|
130298
131076
|
var import_prompts2 = __toESM(require_prompts3());
|
|
130299
131077
|
init_i18next();
|
|
130300
131078
|
var import_ux_telemetry3 = __toESM(require_src13());
|
|
@@ -130359,7 +131137,7 @@ function trackEvent2(executionTime, config2, log8) {
|
|
|
130359
131137
|
async function task3(deploymentConfig) {
|
|
130360
131138
|
await initI18n();
|
|
130361
131139
|
await (0, import_ux_telemetry3.initTelemetrySettings)({ modulePackageJson: package_default });
|
|
130362
|
-
const log8 = (0,
|
|
131140
|
+
const log8 = (0, import_logger5.getLogger)("undeploy-abap");
|
|
130363
131141
|
const markName = import_ux_telemetry3.PerformanceMeasurementAPI.startMark("LOADING_TIME");
|
|
130364
131142
|
if (isConfirmationRequired(deploymentConfig.yes) && !await confirmUndeploy(deploymentConfig)) {
|
|
130365
131143
|
log8.info(i18next_default.t("DEPLOY_CANCELED"));
|
|
@@ -130427,14 +131205,14 @@ async function executeCmd5(args) {
|
|
|
130427
131205
|
|
|
130428
131206
|
// src/tasks/cf-deploy/index.ts
|
|
130429
131207
|
var import_path9 = require("path");
|
|
130430
|
-
var
|
|
131208
|
+
var import_fs12 = require("fs");
|
|
130431
131209
|
var import_child_process4 = require("child_process");
|
|
130432
131210
|
var import_ux_telemetry4 = __toESM(require_src13());
|
|
130433
131211
|
var import_ux_odata_client2 = __toESM(require_dist8());
|
|
130434
|
-
var
|
|
131212
|
+
var import_logger6 = __toESM(require_logger4());
|
|
130435
131213
|
init_i18next();
|
|
130436
|
-
var
|
|
130437
|
-
var log7 = (0,
|
|
131214
|
+
var import_yaml7 = __toESM(require_dist3());
|
|
131215
|
+
var log7 = (0, import_logger6.getLogger)("cf spaces");
|
|
130438
131216
|
async function task4(args = []) {
|
|
130439
131217
|
await (0, import_ux_telemetry4.initTelemetrySettings)({ modulePackageJson: package_default });
|
|
130440
131218
|
const markName = import_ux_telemetry4.PerformanceMeasurementAPI.startMark("LOADING_TIME");
|
|
@@ -130448,7 +131226,7 @@ async function task4(args = []) {
|
|
|
130448
131226
|
const defaultMtaDir = "mta_archives";
|
|
130449
131227
|
let archiveName = "archive.mtar";
|
|
130450
131228
|
try {
|
|
130451
|
-
const mtaArchives = (0,
|
|
131229
|
+
const mtaArchives = (0, import_fs12.readdirSync)(defaultMtaDir);
|
|
130452
131230
|
if (mtaArchives.length === 1 && mtaArchives[0].includes(".mtar")) {
|
|
130453
131231
|
archiveName = mtaArchives[0];
|
|
130454
131232
|
}
|
|
@@ -130501,9 +131279,9 @@ async function _reportDeployTelemetry(exitCode, markName) {
|
|
|
130501
131279
|
const executionTime = import_ux_telemetry4.PerformanceMeasurementAPI.getMeasurementDuration(markName);
|
|
130502
131280
|
let scp, authType;
|
|
130503
131281
|
try {
|
|
130504
|
-
if ((0,
|
|
131282
|
+
if ((0, import_fs12.existsSync)("xs-app.json")) {
|
|
130505
131283
|
let destination;
|
|
130506
|
-
const xsAppConfig = JSON.parse((0,
|
|
131284
|
+
const xsAppConfig = JSON.parse((0, import_fs12.readFileSync)("xs-app.json", "utf-8"));
|
|
130507
131285
|
const xsAppRoutes = xsAppConfig["routes"].filter((route) => route.destination && route.destination !== "ui5");
|
|
130508
131286
|
if (xsAppRoutes.length === 1) {
|
|
130509
131287
|
destination = xsAppRoutes[0].destination;
|
|
@@ -130531,8 +131309,8 @@ async function _getMtaAppName() {
|
|
|
130531
131309
|
let mtaId;
|
|
130532
131310
|
try {
|
|
130533
131311
|
const mtaYamlPath = (0, import_path9.join)(process.cwd(), "mta.yaml");
|
|
130534
|
-
if ((0,
|
|
130535
|
-
const mtaYaml =
|
|
131312
|
+
if ((0, import_fs12.existsSync)(mtaYamlPath)) {
|
|
131313
|
+
const mtaYaml = import_yaml7.default.parseDocument(await import_fs12.promises.readFile(mtaYamlPath, { encoding: "utf8" })).toJSON();
|
|
130536
131314
|
if (mtaYaml) {
|
|
130537
131315
|
mtaId = mtaYaml == null ? void 0 : mtaYaml.ID;
|
|
130538
131316
|
}
|
|
@@ -130544,7 +131322,7 @@ async function _getMtaAppName() {
|
|
|
130544
131322
|
async function _showHelpGuide() {
|
|
130545
131323
|
try {
|
|
130546
131324
|
const mtaId = await _getMtaAppName();
|
|
130547
|
-
if (mtaId && (0,
|
|
131325
|
+
if (mtaId && (0, import_fs12.existsSync)("xs-app.json")) {
|
|
130548
131326
|
log7.info(i18next_default.t("DEPLOYMENT_MSG"));
|
|
130549
131327
|
log7.info(` ${i18next_default.t("DEPLOYMENT_MANAGED_CF_URL", { mtaId })}`);
|
|
130550
131328
|
} else {
|