@sap-ux/deploy-tooling 0.15.18 → 0.15.19
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/base/archive.d.ts +0 -1
- package/dist/base/archive.js +1 -2
- package/dist/base/config.js +4 -5
- package/dist/base/deploy.d.ts +0 -1
- package/dist/base/deploy.js +3 -4
- package/dist/base/prompt.js +1 -2
- package/dist/base/validate.js +5 -5
- package/dist/cli/archive.d.ts +0 -1
- package/dist/cli/archive.js +1 -2
- package/dist/cli/config.js +3 -4
- package/dist/cli/index.js +3 -4
- package/dist/ui5/archive.d.ts +0 -2
- package/dist/ui5/archive.js +1 -2
- package/dist/ui5/index.d.ts +0 -1
- package/package.json +3 -3
package/dist/base/archive.d.ts
CHANGED
package/dist/base/archive.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getAppDescriptorVariant =
|
|
6
|
+
exports.getAppDescriptorVariant = getAppDescriptorVariant;
|
|
7
7
|
const adm_zip_1 = __importDefault(require("adm-zip"));
|
|
8
8
|
/**
|
|
9
9
|
* Check whether a given zip files contains an adaptation project and if yes returns the contained manisfest.appdesc_variant.
|
|
@@ -26,5 +26,4 @@ function getAppDescriptorVariant(archive) {
|
|
|
26
26
|
return undefined;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
exports.getAppDescriptorVariant = getAppDescriptorVariant;
|
|
30
29
|
//# sourceMappingURL=archive.js.map
|
package/dist/base/config.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getConfigForLogging = getConfigForLogging;
|
|
4
|
+
exports.throwConfigMissingError = throwConfigMissingError;
|
|
5
|
+
exports.isBspConfig = isBspConfig;
|
|
6
|
+
exports.validateConfig = validateConfig;
|
|
4
7
|
const btp_utils_1 = require("@sap-ux/btp-utils");
|
|
5
8
|
const system_access_1 = require("@sap-ux/system-access");
|
|
6
9
|
/**
|
|
@@ -20,7 +23,6 @@ function getConfigForLogging(config) {
|
|
|
20
23
|
return config;
|
|
21
24
|
}
|
|
22
25
|
}
|
|
23
|
-
exports.getConfigForLogging = getConfigForLogging;
|
|
24
26
|
/**
|
|
25
27
|
* Helper function for throwing a missing property error.
|
|
26
28
|
*
|
|
@@ -29,7 +31,6 @@ exports.getConfigForLogging = getConfigForLogging;
|
|
|
29
31
|
function throwConfigMissingError(property) {
|
|
30
32
|
throw new Error(`Invalid deployment configuration. Property ${property} is missing.`);
|
|
31
33
|
}
|
|
32
|
-
exports.throwConfigMissingError = throwConfigMissingError;
|
|
33
34
|
/**
|
|
34
35
|
* Validate the given target config. If anything mandatory is missing throw an error.
|
|
35
36
|
*
|
|
@@ -56,7 +57,6 @@ function validateTarget(target) {
|
|
|
56
57
|
function isBspConfig(config) {
|
|
57
58
|
return config.name !== undefined;
|
|
58
59
|
}
|
|
59
|
-
exports.isBspConfig = isBspConfig;
|
|
60
60
|
/**
|
|
61
61
|
* Validate the given config. If anything mandatory is missing throw an error.
|
|
62
62
|
*
|
|
@@ -78,5 +78,4 @@ function validateConfig(config) {
|
|
|
78
78
|
}
|
|
79
79
|
return config;
|
|
80
80
|
}
|
|
81
|
-
exports.validateConfig = validateConfig;
|
|
82
81
|
//# sourceMappingURL=config.js.map
|
package/dist/base/deploy.d.ts
CHANGED
package/dist/base/deploy.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.createTransportRequest = createTransportRequest;
|
|
4
|
+
exports.deploy = deploy;
|
|
5
|
+
exports.undeploy = undeploy;
|
|
4
6
|
const axios_extension_1 = require("@sap-ux/axios-extension");
|
|
5
7
|
const fs_1 = require("fs");
|
|
6
8
|
const config_1 = require("./config");
|
|
@@ -149,7 +151,6 @@ async function createTransportRequest(config, logger, provider) {
|
|
|
149
151
|
}
|
|
150
152
|
throw new Error(`Transport request could not be created for application ${ui5AppName}.`);
|
|
151
153
|
}
|
|
152
|
-
exports.createTransportRequest = createTransportRequest;
|
|
153
154
|
/**
|
|
154
155
|
* Create a service provider based on the given config.
|
|
155
156
|
*
|
|
@@ -254,7 +255,6 @@ async function deploy(archive, config, logger) {
|
|
|
254
255
|
logger.info(`Starting to deploy${config.test === true ? ' in test mode' : ''}.`);
|
|
255
256
|
await tryDeploy(provider, config, logger, archive);
|
|
256
257
|
}
|
|
257
|
-
exports.deploy = deploy;
|
|
258
258
|
/**
|
|
259
259
|
* Try executing the undeployment command and handle known errors.
|
|
260
260
|
*
|
|
@@ -304,5 +304,4 @@ async function undeploy(config, logger) {
|
|
|
304
304
|
logger.info(`Starting to undeploy ${config.test === true ? ' in test mode' : ''}.`);
|
|
305
305
|
await tryUndeploy(provider, config, logger);
|
|
306
306
|
}
|
|
307
|
-
exports.undeploy = undeploy;
|
|
308
307
|
//# sourceMappingURL=deploy.js.map
|
package/dist/base/prompt.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.promptConfirmation =
|
|
6
|
+
exports.promptConfirmation = promptConfirmation;
|
|
7
7
|
const prompts_1 = __importDefault(require("prompts"));
|
|
8
8
|
/**
|
|
9
9
|
* Prompt for confirmation.
|
|
@@ -26,5 +26,4 @@ async function promptConfirmation(message) {
|
|
|
26
26
|
});
|
|
27
27
|
return confirm && !abort;
|
|
28
28
|
}
|
|
29
|
-
exports.promptConfirmation = promptConfirmation;
|
|
30
29
|
//# sourceMappingURL=prompt.js.map
|
package/dist/base/validate.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.summaryMessage = exports.SummaryStatus = void 0;
|
|
4
|
+
exports.validateBeforeDeploy = validateBeforeDeploy;
|
|
5
|
+
exports.formatSummary = formatSummary;
|
|
6
|
+
exports.showAdditionalInfoForOnPrem = showAdditionalInfoForOnPrem;
|
|
7
|
+
exports.checkForCredentials = checkForCredentials;
|
|
4
8
|
const axios_extension_1 = require("@sap-ux/axios-extension");
|
|
5
9
|
const chalk_1 = require("chalk");
|
|
6
10
|
const project_input_validator_1 = require("@sap-ux/project-input-validator");
|
|
@@ -54,7 +58,6 @@ async function validateBeforeDeploy(config, provider, logger) {
|
|
|
54
58
|
await validateTransportRequestWithAdt(input, output, provider, logger);
|
|
55
59
|
return output;
|
|
56
60
|
}
|
|
57
|
-
exports.validateBeforeDeploy = validateBeforeDeploy;
|
|
58
61
|
/**
|
|
59
62
|
* Format a list of summary records that is ready to be printed on the console.
|
|
60
63
|
* The reduce function makes sure a EOL is added at the beginning of the output.
|
|
@@ -85,7 +88,6 @@ function formatSummary(summary) {
|
|
|
85
88
|
}, '');
|
|
86
89
|
return summaryStr;
|
|
87
90
|
}
|
|
88
|
-
exports.formatSummary = formatSummary;
|
|
89
91
|
/**
|
|
90
92
|
*
|
|
91
93
|
* @param input
|
|
@@ -343,7 +345,6 @@ async function showAdditionalInfoForOnPrem(destination) {
|
|
|
343
345
|
}
|
|
344
346
|
return showInfo;
|
|
345
347
|
}
|
|
346
|
-
exports.showAdditionalInfoForOnPrem = showAdditionalInfoForOnPrem;
|
|
347
348
|
/**
|
|
348
349
|
* Validates if the credentials are required for the destination based on the Authentication type.
|
|
349
350
|
*
|
|
@@ -362,7 +363,6 @@ async function checkForCredentials(destination, logger) {
|
|
|
362
363
|
}
|
|
363
364
|
return check;
|
|
364
365
|
}
|
|
365
|
-
exports.checkForCredentials = checkForCredentials;
|
|
366
366
|
/**
|
|
367
367
|
* Return a list of Destinations.
|
|
368
368
|
*
|
package/dist/cli/archive.d.ts
CHANGED
package/dist/cli/archive.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getArchive =
|
|
6
|
+
exports.getArchive = getArchive;
|
|
7
7
|
const axios_1 = __importDefault(require("axios"));
|
|
8
8
|
const fs_1 = require("fs");
|
|
9
9
|
const adm_zip_1 = __importDefault(require("adm-zip"));
|
|
@@ -91,5 +91,4 @@ async function getArchive(logger, options) {
|
|
|
91
91
|
return createArchiveFromFolder(logger, options.archiveFolder ?? process.cwd());
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
exports.getArchive = getArchive;
|
|
95
94
|
//# sourceMappingURL=archive.js.map
|
package/dist/cli/config.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getVersion = getVersion;
|
|
4
|
+
exports.getDeploymentConfig = getDeploymentConfig;
|
|
5
|
+
exports.mergeConfig = mergeConfig;
|
|
4
6
|
const ui5_config_1 = require("@sap-ux/ui5-config");
|
|
5
7
|
const fs_1 = require("fs");
|
|
6
8
|
const path_1 = require("path");
|
|
@@ -19,7 +21,6 @@ function getVersion() {
|
|
|
19
21
|
return '0.1';
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
|
-
exports.getVersion = getVersion;
|
|
23
24
|
/**
|
|
24
25
|
* Read the deployment configuration from a ui5*.yaml file.
|
|
25
26
|
*
|
|
@@ -35,7 +36,6 @@ async function getDeploymentConfig(path) {
|
|
|
35
36
|
}
|
|
36
37
|
return config;
|
|
37
38
|
}
|
|
38
|
-
exports.getDeploymentConfig = getDeploymentConfig;
|
|
39
39
|
/**
|
|
40
40
|
* Try reading a service key object from the given path an parse it as js object.
|
|
41
41
|
*
|
|
@@ -186,5 +186,4 @@ async function mergeConfig(taskConfig, options) {
|
|
|
186
186
|
}
|
|
187
187
|
return config;
|
|
188
188
|
}
|
|
189
|
-
exports.mergeConfig = mergeConfig;
|
|
190
189
|
//# sourceMappingURL=config.js.map
|
package/dist/cli/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.createCommand = createCommand;
|
|
4
|
+
exports.runDeploy = runDeploy;
|
|
5
|
+
exports.runUndeploy = runUndeploy;
|
|
4
6
|
const commander_1 = require("commander");
|
|
5
7
|
const logger_1 = require("@sap-ux/logger");
|
|
6
8
|
const base_1 = require("../base");
|
|
@@ -70,7 +72,6 @@ function createCommand(name) {
|
|
|
70
72
|
}
|
|
71
73
|
return command.version((0, config_1.getVersion)(), '-v, --version', 'version of the deploy tooling');
|
|
72
74
|
}
|
|
73
|
-
exports.createCommand = createCommand;
|
|
74
75
|
/**
|
|
75
76
|
* Prepare the run of the task based on on the configured command i.e. read and validate configuration and create logger.
|
|
76
77
|
*
|
|
@@ -113,7 +114,6 @@ async function runDeploy() {
|
|
|
113
114
|
cmd.error(error.message);
|
|
114
115
|
}
|
|
115
116
|
}
|
|
116
|
-
exports.runDeploy = runDeploy;
|
|
117
117
|
/**
|
|
118
118
|
* Function that is to be executed when the exposed undeploy command is executed.
|
|
119
119
|
*/
|
|
@@ -127,5 +127,4 @@ async function runUndeploy() {
|
|
|
127
127
|
cmd.error(error.message);
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
exports.runUndeploy = runUndeploy;
|
|
131
130
|
//# sourceMappingURL=index.js.map
|
package/dist/ui5/archive.d.ts
CHANGED
package/dist/ui5/archive.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.createUi5Archive =
|
|
6
|
+
exports.createUi5Archive = createUi5Archive;
|
|
7
7
|
const adm_zip_1 = __importDefault(require("adm-zip"));
|
|
8
8
|
/**
|
|
9
9
|
* Create an archive of files in the workspace.
|
|
@@ -30,5 +30,4 @@ async function createUi5Archive(logger, workspace, projectName, exclude = []) {
|
|
|
30
30
|
logger.info('Archive created.');
|
|
31
31
|
return zip.toBuffer();
|
|
32
32
|
}
|
|
33
|
-
exports.createUi5Archive = createUi5Archive;
|
|
34
33
|
//# sourceMappingURL=archive.js.map
|
package/dist/ui5/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Adeploy-tooling"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.15.
|
|
12
|
+
"version": "0.15.19",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"@sap-ux/axios-extension": "1.16.6",
|
|
36
36
|
"@sap-ux/btp-utils": "0.15.2",
|
|
37
37
|
"@sap-ux/logger": "0.6.0",
|
|
38
|
-
"@sap-ux/system-access": "0.5.
|
|
38
|
+
"@sap-ux/system-access": "0.5.12",
|
|
39
39
|
"@sap-ux/ui5-config": "0.25.0",
|
|
40
40
|
"@sap-ux/project-input-validator": "0.3.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/prompts": "2.4.4",
|
|
44
44
|
"@types/adm-zip": "0.5.5",
|
|
45
|
-
"@sap-ux/store": "0.9.
|
|
45
|
+
"@sap-ux/store": "0.9.2"
|
|
46
46
|
},
|
|
47
47
|
"ui5": {
|
|
48
48
|
"dependencies": []
|