@sap-ux/environment-check 0.19.4 → 1.0.0
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/archive/index.d.ts.map +1 -1
- package/dist/archive/index.js +21 -59
- package/dist/archive/index.js.map +1 -1
- package/dist/checks/destination.d.ts +2 -2
- package/dist/checks/destination.d.ts.map +1 -1
- package/dist/checks/destination.js +31 -39
- package/dist/checks/destination.js.map +1 -1
- package/dist/checks/endpoint.d.ts +1 -1
- package/dist/checks/endpoint.d.ts.map +1 -1
- package/dist/checks/endpoint.js +16 -20
- package/dist/checks/endpoint.js.map +1 -1
- package/dist/checks/environment.d.ts +1 -1
- package/dist/checks/environment.d.ts.map +1 -1
- package/dist/checks/environment.js +72 -77
- package/dist/checks/environment.js.map +1 -1
- package/dist/checks/get-installed.d.ts +1 -1
- package/dist/checks/get-installed.d.ts.map +1 -1
- package/dist/checks/get-installed.js +30 -36
- package/dist/checks/get-installed.js.map +1 -1
- package/dist/checks/index.d.ts +4 -4
- package/dist/checks/index.d.ts.map +1 -1
- package/dist/checks/index.js +4 -15
- package/dist/checks/index.js.map +1 -1
- package/dist/checks/service-checks.d.ts +1 -1
- package/dist/checks/service-checks.d.ts.map +1 -1
- package/dist/checks/service-checks.js +43 -50
- package/dist/checks/service-checks.js.map +1 -1
- package/dist/checks/stored-system.d.ts +1 -1
- package/dist/checks/stored-system.d.ts.map +1 -1
- package/dist/checks/stored-system.js +19 -23
- package/dist/checks/stored-system.js.map +1 -1
- package/dist/checks/workspace.d.ts +1 -1
- package/dist/checks/workspace.d.ts.map +1 -1
- package/dist/checks/workspace.js +22 -58
- package/dist/checks/workspace.js.map +1 -1
- package/dist/cli/index.js +34 -35
- package/dist/cli/index.js.map +1 -1
- package/dist/command.js +7 -14
- package/dist/command.js.map +1 -1
- package/dist/formatter.js +4 -10
- package/dist/formatter.js.map +1 -1
- package/dist/i18n.js +8 -16
- package/dist/i18n.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -25
- package/dist/index.js.map +1 -1
- package/dist/logger.d.ts +1 -1
- package/dist/logger.d.ts.map +1 -1
- package/dist/logger.js +6 -9
- package/dist/logger.js.map +1 -1
- package/dist/output/index.d.ts +3 -3
- package/dist/output/index.d.ts.map +1 -1
- package/dist/output/index.js +3 -19
- package/dist/output/index.js.map +1 -1
- package/dist/output/markdown.d.ts +1 -1
- package/dist/output/markdown.d.ts.map +1 -1
- package/dist/output/markdown.js +59 -62
- package/dist/output/markdown.js.map +1 -1
- package/dist/output/string.d.ts +1 -1
- package/dist/output/string.d.ts.map +1 -1
- package/dist/output/string.js +3 -6
- package/dist/output/string.js.map +1 -1
- package/dist/output/zip.d.ts +1 -1
- package/dist/output/zip.d.ts.map +1 -1
- package/dist/output/zip.js +8 -44
- package/dist/output/zip.js.map +1 -1
- package/dist/types.js +35 -14
- package/dist/types.js.map +1 -1
- package/package.json +11 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/archive/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/archive/index.ts"],"names":[],"mappings":"AAWA,UAAU,qBAAqB;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAAC,EACjC,WAAW,EACX,YAAY,EACZ,cAAc,EACjB,EAAE,qBAAqB,GAAG,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAiCjE"}
|
package/dist/archive/index.js
CHANGED
|
@@ -1,49 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.archiveProject = archiveProject;
|
|
40
|
-
const node_fs_1 = require("node:fs");
|
|
41
|
-
const node_path_1 = require("node:path");
|
|
42
|
-
const archiver = __importStar(require("archiver"));
|
|
43
|
-
const glob_gitignore_1 = require("glob-gitignore");
|
|
44
|
-
const ignore_1 = __importDefault(require("ignore"));
|
|
45
|
-
const i18n_1 = require("../i18n");
|
|
46
|
-
const formatter_1 = require("../formatter");
|
|
1
|
+
import { createWriteStream, existsSync, promises } from 'node:fs';
|
|
2
|
+
import { basename, dirname, join } from 'node:path';
|
|
3
|
+
import * as archiver from 'archiver';
|
|
4
|
+
import { glob } from 'glob-gitignore';
|
|
5
|
+
import ignoreModule from 'ignore';
|
|
6
|
+
const ignore = typeof ignoreModule === 'function' ? ignoreModule : ignoreModule.default;
|
|
7
|
+
import { t } from '../i18n.js';
|
|
8
|
+
import { byteNumberToSizeString } from '../formatter.js';
|
|
47
9
|
/**
|
|
48
10
|
* Archive a project to zip file. Result file is written to parent of the project root folder.
|
|
49
11
|
*
|
|
@@ -53,9 +15,9 @@ const formatter_1 = require("../formatter");
|
|
|
53
15
|
* @param options.targetFileName - optional file name, defaults to project folder + timestamp + .zip
|
|
54
16
|
* @returns {*} {Promise<{ path: string; size: string }>}
|
|
55
17
|
*/
|
|
56
|
-
async function archiveProject({ projectRoot, targetFolder, targetFileName }) {
|
|
57
|
-
if (!
|
|
58
|
-
throw new Error(
|
|
18
|
+
export async function archiveProject({ projectRoot, targetFolder, targetFileName }) {
|
|
19
|
+
if (!existsSync(projectRoot)) {
|
|
20
|
+
throw new Error(t('error.noProjectRoot', { projectRoot }));
|
|
59
21
|
}
|
|
60
22
|
const fileList = await getFileList(projectRoot);
|
|
61
23
|
return new Promise((resolve, reject) => {
|
|
@@ -68,20 +30,20 @@ async function archiveProject({ projectRoot, targetFolder, targetFileName }) {
|
|
|
68
30
|
: targetFileName + '.zip';
|
|
69
31
|
}
|
|
70
32
|
else {
|
|
71
|
-
targetName = `${
|
|
33
|
+
targetName = `${basename(projectRoot)}-${new Date()
|
|
72
34
|
.toISOString()
|
|
73
35
|
.replace('T', '')
|
|
74
36
|
.replace(':', '')
|
|
75
37
|
.substring(0, 14)}.zip`;
|
|
76
38
|
}
|
|
77
|
-
const targetPath = targetFolder ?
|
|
78
|
-
const writeStream =
|
|
39
|
+
const targetPath = targetFolder ? join(targetFolder, targetName) : join(dirname(projectRoot), targetName);
|
|
40
|
+
const writeStream = createWriteStream(targetPath);
|
|
79
41
|
zip.pipe(writeStream);
|
|
80
42
|
zip.on('error', (error) => reject(error));
|
|
81
43
|
for (const file of fileList) {
|
|
82
|
-
zip.file(
|
|
44
|
+
zip.file(join(projectRoot, file), { name: file });
|
|
83
45
|
}
|
|
84
|
-
writeStream.on('close', () => resolve({ path: targetPath, size:
|
|
46
|
+
writeStream.on('close', () => resolve({ path: targetPath, size: byteNumberToSizeString(zip.pointer()) }));
|
|
85
47
|
zip.finalize().catch((error) => reject(error));
|
|
86
48
|
}
|
|
87
49
|
catch (error) {
|
|
@@ -97,18 +59,18 @@ async function archiveProject({ projectRoot, targetFolder, targetFileName }) {
|
|
|
97
59
|
* @returns - list of files to add to the archive, relative to cwd
|
|
98
60
|
*/
|
|
99
61
|
async function getFileList(cwd) {
|
|
100
|
-
const gitignorePath =
|
|
101
|
-
const hasGitignore =
|
|
62
|
+
const gitignorePath = join(cwd, '.gitignore');
|
|
63
|
+
const hasGitignore = existsSync(gitignorePath);
|
|
102
64
|
const globPattern = hasGitignore ? ['**'] : ['**', '.cdsrc.json', '.extconfig.json'];
|
|
103
65
|
const dot = hasGitignore;
|
|
104
66
|
const ignores = hasGitignore
|
|
105
|
-
? `${(await
|
|
67
|
+
? `${(await promises.readFile(gitignorePath)).toString()}\n**/.git`
|
|
106
68
|
: ['**/.env', '**/.git', '**/node_modules'];
|
|
107
69
|
const skip = hasGitignore ? undefined : ['**/node_modules/**'];
|
|
108
|
-
const files = await
|
|
70
|
+
const files = await glob(globPattern, {
|
|
109
71
|
cwd,
|
|
110
72
|
dot,
|
|
111
|
-
ignore: (
|
|
73
|
+
ignore: ignore().add(ignores),
|
|
112
74
|
mark: true,
|
|
113
75
|
skip
|
|
114
76
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/archive/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/archive/index.ts"],"names":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K,CAAC,CAAC;QAClB,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC;AAED;;;;;;GAMG;AACH,KAAK,UAAU,WAAW,CAAC,GAAW;IAClC,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;IAC9C,MAAM,YAAY,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IAC/C,MAAM,WAAW,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,aAAa,EAAE,iBAAiB,CAAC,CAAC;IACrF,MAAM,GAAG,GAAG,YAAY,CAAC;IACzB,MAAM,OAAO,GAAG,YAAY;QACxB,CAAC,CAAC,GAAG,CAAC,MAAM,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,EAAE,WAAW;QACnE,CAAC,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,iBAAiB,CAAC,CAAC;IAChD,MAAM,IAAI,GAAG,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC;IAE/D,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,WAAW,EAAE;QAClC,GAAG;QACH,GAAG;QACH,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC;QAC7B,IAAI,EAAE,IAAI;QACV,IAAI;KACP,CAAC,CAAC;IACH,OAAO,KAAK,CAAC;AACjB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Endpoint, ResultMessage, EndpointResults } from '../types';
|
|
2
|
-
import { UrlServiceType } from '../types';
|
|
1
|
+
import type { Endpoint, ResultMessage, EndpointResults } from '../types.js';
|
|
2
|
+
import { UrlServiceType } from '../types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Check a BAS destination, like catalog service v2 & v4.
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"destination.d.ts","sourceRoot":"","sources":["../../src/checks/destination.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"destination.d.ts","sourceRoot":"","sources":["../../src/checks/destination.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAI5E,OAAO,EAAE,cAAc,EAAY,MAAM,aAAa,CAAC;AAIvD;;;;;;;GAOG;AACH,wBAAsB,mBAAmB,CACrC,WAAW,EAAE,QAAQ,EACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,EAC7B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,GAC9B,OAAO,CAAC;IAAE,QAAQ,EAAE,aAAa,EAAE,CAAC;IAAC,kBAAkB,EAAE,eAAe,CAAA;CAAE,CAAC,CAsC7E;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,QAAQ,GAAG,OAAO,CAEpE;AAED;;;;GAIG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC;IAClD,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,YAAY,EAAE,QAAQ,EAAE,CAAC;CAC5B,CAAC,CAgDD;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,QAAQ,GAAG,cAAc,CAc9E"}
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.needsUsernamePassword = needsUsernamePassword;
|
|
8
|
-
exports.checkBASDestinations = checkBASDestinations;
|
|
9
|
-
exports.getUrlServiceTypeForDest = getUrlServiceTypeForDest;
|
|
10
|
-
const axios_1 = __importDefault(require("axios"));
|
|
11
|
-
const btp_utils_1 = require("@sap-ux/btp-utils");
|
|
12
|
-
const logger_1 = require("../logger");
|
|
13
|
-
const i18n_1 = require("../i18n");
|
|
14
|
-
const service_checks_1 = require("./service-checks");
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
import { getAppStudioProxyURL, listDestinations } from '@sap-ux/btp-utils';
|
|
3
|
+
import { getLogger } from '../logger.js';
|
|
4
|
+
import { UrlServiceType, Severity } from '../types.js';
|
|
5
|
+
import { t } from '../i18n.js';
|
|
6
|
+
import { getServiceProvider, checkCatalogServices } from './service-checks.js';
|
|
15
7
|
/**
|
|
16
8
|
* Check a BAS destination, like catalog service v2 & v4.
|
|
17
9
|
*
|
|
@@ -20,24 +12,24 @@ const service_checks_1 = require("./service-checks");
|
|
|
20
12
|
* @param password - password
|
|
21
13
|
* @returns messages and destination results
|
|
22
14
|
*/
|
|
23
|
-
async function checkBASDestination(destination, username, password) {
|
|
24
|
-
const logger =
|
|
25
|
-
const abapServiceProvider =
|
|
15
|
+
export async function checkBASDestination(destination, username, password) {
|
|
16
|
+
const logger = getLogger();
|
|
17
|
+
const abapServiceProvider = getServiceProvider(destination, username, password);
|
|
26
18
|
// catalog service request
|
|
27
|
-
const { messages: catalogMsgs, result: catalogServiceResult } = await
|
|
19
|
+
const { messages: catalogMsgs, result: catalogServiceResult } = await checkCatalogServices(abapServiceProvider, destination.Name);
|
|
28
20
|
logger.push(...catalogMsgs);
|
|
29
21
|
const html5DynamicDestination = !!destination['HTML5.DynamicDestination'];
|
|
30
22
|
if (!html5DynamicDestination) {
|
|
31
23
|
logger.push({
|
|
32
|
-
severity:
|
|
33
|
-
text:
|
|
24
|
+
severity: Severity.Error,
|
|
25
|
+
text: t('error.missingDynamicDestProperty', { destination: destination.Name })
|
|
34
26
|
});
|
|
35
27
|
}
|
|
36
28
|
const html5TimeoutDestination = !!destination['HTML5.Timeout'];
|
|
37
29
|
if (!html5TimeoutDestination) {
|
|
38
30
|
logger.push({
|
|
39
|
-
severity:
|
|
40
|
-
text:
|
|
31
|
+
severity: Severity.Warning,
|
|
32
|
+
text: t('error.missingTimeoutDestProperty', { destination: destination.Name })
|
|
41
33
|
});
|
|
42
34
|
}
|
|
43
35
|
const destinationResults = {
|
|
@@ -56,7 +48,7 @@ async function checkBASDestination(destination, username, password) {
|
|
|
56
48
|
* @param destination - the destination to check
|
|
57
49
|
* @returns boolean if basic auth is required
|
|
58
50
|
*/
|
|
59
|
-
function needsUsernamePassword(destination) {
|
|
51
|
+
export function needsUsernamePassword(destination) {
|
|
60
52
|
return !!destination && destination.Authentication === 'NoAuthentication';
|
|
61
53
|
}
|
|
62
54
|
/**
|
|
@@ -64,25 +56,25 @@ function needsUsernamePassword(destination) {
|
|
|
64
56
|
*
|
|
65
57
|
* @returns messages, destinations
|
|
66
58
|
*/
|
|
67
|
-
async function checkBASDestinations() {
|
|
68
|
-
const logger =
|
|
59
|
+
export async function checkBASDestinations() {
|
|
60
|
+
const logger = getLogger();
|
|
69
61
|
const destinations = [];
|
|
70
62
|
let url;
|
|
71
63
|
// Reload request
|
|
72
64
|
try {
|
|
73
|
-
await
|
|
65
|
+
await axios.get(getAppStudioProxyURL() + '/reload');
|
|
74
66
|
}
|
|
75
67
|
catch (error) {
|
|
76
|
-
logger.warn(
|
|
77
|
-
logger.debug(
|
|
78
|
-
url: `${
|
|
68
|
+
logger.warn(t('warning.reloadFailure'));
|
|
69
|
+
logger.debug(t('info.urlRequestFailure', {
|
|
70
|
+
url: `${getAppStudioProxyURL() + '/reload'}`,
|
|
79
71
|
error: error.message,
|
|
80
72
|
errorObj: error.toJSON ? JSON.stringify(error.toJSON(), null, 4) : error
|
|
81
73
|
}));
|
|
82
74
|
}
|
|
83
75
|
// Destinations request
|
|
84
76
|
try {
|
|
85
|
-
const basDestinations = await
|
|
77
|
+
const basDestinations = await listDestinations();
|
|
86
78
|
for (const basDest in basDestinations) {
|
|
87
79
|
const destination = basDestinations[basDest];
|
|
88
80
|
destination.UrlServiceType = getUrlServiceTypeForDest(destination);
|
|
@@ -90,15 +82,15 @@ async function checkBASDestinations() {
|
|
|
90
82
|
}
|
|
91
83
|
const destinationNumber = Object.keys(destinations).length;
|
|
92
84
|
if (destinationNumber > 0) {
|
|
93
|
-
logger.info(
|
|
85
|
+
logger.info(t('info.numDestinationsFound', { destinationNumber }));
|
|
94
86
|
}
|
|
95
87
|
else {
|
|
96
|
-
logger.warn(
|
|
88
|
+
logger.warn(t('warning.noDestinationsFound'));
|
|
97
89
|
}
|
|
98
90
|
}
|
|
99
91
|
catch (error) {
|
|
100
|
-
logger.error(
|
|
101
|
-
logger.debug(
|
|
92
|
+
logger.error(t('error.retrievingDestinations', { error: error.message }));
|
|
93
|
+
logger.debug(t('info.urlRequestFailure', {
|
|
102
94
|
url: url,
|
|
103
95
|
error: error.message,
|
|
104
96
|
errorObj: error.toJSON ? JSON.stringify(error.toJSON(), null, 4) : error
|
|
@@ -115,19 +107,19 @@ async function checkBASDestinations() {
|
|
|
115
107
|
* @param destination - destination to check
|
|
116
108
|
* @returns - URL service type, like 'Full Service URL', 'Catalog Service', 'Partial URL'
|
|
117
109
|
*/
|
|
118
|
-
function getUrlServiceTypeForDest(destination) {
|
|
119
|
-
let urlServiceType =
|
|
110
|
+
export function getUrlServiceTypeForDest(destination) {
|
|
111
|
+
let urlServiceType = UrlServiceType.InvalidUrl;
|
|
120
112
|
const odataGen = !!destination.WebIDEUsage?.split(',').find((entry) => entry.trim() === 'odata_gen');
|
|
121
113
|
const odataAbap = !!destination.WebIDEUsage?.split(',').find((entry) => entry.trim() === 'odata_abap');
|
|
122
114
|
const fullUrl = destination.WebIDEAdditionalData === 'full_url';
|
|
123
115
|
if (odataGen && fullUrl && !odataAbap) {
|
|
124
|
-
urlServiceType =
|
|
116
|
+
urlServiceType = UrlServiceType.FullServiceUrl;
|
|
125
117
|
}
|
|
126
118
|
else if (!odataGen && !fullUrl && odataAbap) {
|
|
127
|
-
urlServiceType =
|
|
119
|
+
urlServiceType = UrlServiceType.CatalogServiceUrl;
|
|
128
120
|
}
|
|
129
121
|
else if (odataGen && !fullUrl && !odataAbap) {
|
|
130
|
-
urlServiceType =
|
|
122
|
+
urlServiceType = UrlServiceType.PartialUrl;
|
|
131
123
|
}
|
|
132
124
|
return urlServiceType;
|
|
133
125
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"destination.js","sourceRoot":"","sources":["../../src/checks/destination.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"destination.js","sourceRoot":"","sources":["../../src/checks/destination.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,CAAC,EAAE,MAAM,YAAY,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE/E;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACrC,WAAqB,EACrB,QAA6B,EAC7B,QAA6B;IAE7B,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,WAAW,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAEhF,0BAA0B;IAC1B,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,oBAAoB,EAAE,GAAG,MAAM,oBAAoB,CACtF,mBAAmB,EACnB,WAAW,CAAC,IAAI,CACnB,CAAC;IACF,MAAM,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC;IAE5B,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAAC,0BAA0B,CAAC,CAAC;IAC1E,IAAI,CAAC,uBAAuB,EAAE,CAAC;QAC3B,MAAM,CAAC,IAAI,CAAC;YACR,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ts","sourceRoot":"","sources":["../../src/checks/endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"endpoint.d.ts","sourceRoot":"","sources":["../../src/checks/endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAO5E;;;;GAIG;AACH,wBAAsB,cAAc,IAAI,OAAO,CAAC;IAC5C,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,SAAS,EAAE,QAAQ,EAAE,CAAC;CACzB,CAAC,CAkBD;AAED;;;;;;;GAOG;AACH,wBAAsB,aAAa,CAC/B,QAAQ,EAAE,QAAQ,EAClB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,EAC7B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,GAC9B,OAAO,CAAC;IAAE,QAAQ,EAAE,aAAa,EAAE,CAAC;IAAC,eAAe,EAAE,eAAe,CAAA;CAAE,CAAC,CAyB1E"}
|
package/dist/checks/endpoint.js
CHANGED
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const btp_utils_1 = require("@sap-ux/btp-utils");
|
|
7
|
-
const destination_1 = require("./destination");
|
|
8
|
-
const stored_system_1 = require("./stored-system");
|
|
9
|
-
const i18n_1 = require("../i18n");
|
|
1
|
+
import { getLogger } from '../logger.js';
|
|
2
|
+
import { isAppStudio } from '@sap-ux/btp-utils';
|
|
3
|
+
import { checkBASDestination, checkBASDestinations } from './destination.js';
|
|
4
|
+
import { checkStoredSystem, checkStoredSystems } from './stored-system.js';
|
|
5
|
+
import { t } from '../i18n.js';
|
|
10
6
|
/**
|
|
11
7
|
* Checks the endpoints (SAP Systems or BAS Destinations) and returns a list.
|
|
12
8
|
*
|
|
13
9
|
* @returns messages, SAP systems
|
|
14
10
|
*/
|
|
15
|
-
async function checkEndpoints() {
|
|
16
|
-
const logger =
|
|
11
|
+
export async function checkEndpoints() {
|
|
12
|
+
const logger = getLogger();
|
|
17
13
|
let endpoints = [];
|
|
18
|
-
if (
|
|
19
|
-
const { messages: basDestMsgs, destinations } = await
|
|
14
|
+
if (isAppStudio()) {
|
|
15
|
+
const { messages: basDestMsgs, destinations } = await checkBASDestinations();
|
|
20
16
|
endpoints = destinations;
|
|
21
17
|
logger.push(...basDestMsgs);
|
|
22
18
|
}
|
|
23
19
|
else {
|
|
24
|
-
const { messages: storedSysMsgs, storedSystems } = await
|
|
20
|
+
const { messages: storedSysMsgs, storedSystems } = await checkStoredSystems();
|
|
25
21
|
endpoints = storedSystems;
|
|
26
22
|
logger.push(...storedSysMsgs);
|
|
27
23
|
}
|
|
@@ -38,18 +34,18 @@ async function checkEndpoints() {
|
|
|
38
34
|
* @param password - destination password
|
|
39
35
|
* @returns messages and sapSystem results
|
|
40
36
|
*/
|
|
41
|
-
async function checkEndpoint(endpoint, username, password) {
|
|
42
|
-
const logger =
|
|
43
|
-
logger.info(
|
|
37
|
+
export async function checkEndpoint(endpoint, username, password) {
|
|
38
|
+
const logger = getLogger();
|
|
39
|
+
logger.info(t('info.checkingSapSystem', { sapSystem: endpoint.Name }));
|
|
44
40
|
let destinationResults;
|
|
45
41
|
let storedSystemResults;
|
|
46
|
-
if (
|
|
47
|
-
const checkBASDestinationResult = await
|
|
42
|
+
if (isAppStudio()) {
|
|
43
|
+
const checkBASDestinationResult = await checkBASDestination(endpoint, username, password);
|
|
48
44
|
destinationResults = checkBASDestinationResult.destinationResults;
|
|
49
45
|
logger.push(...checkBASDestinationResult.messages);
|
|
50
46
|
}
|
|
51
47
|
else {
|
|
52
|
-
const checkStoredSystemResult = await
|
|
48
|
+
const checkStoredSystemResult = await checkStoredSystem(endpoint);
|
|
53
49
|
storedSystemResults = checkStoredSystemResult.storedSystemResults;
|
|
54
50
|
logger.push(...checkStoredSystemResult.messages);
|
|
55
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoint.js","sourceRoot":"","sources":["../../src/checks/endpoint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"endpoint.js","sourceRoot":"","sources":["../../src/checks/endpoint.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,CAAC,EAAE,MAAM,YAAY,CAAC;AAE/B;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc;IAIhC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,IAAI,SAAS,GAAe,EAAE,CAAC;IAE/B,IAAI,WAAW,EAAE,EAAE,CAAC;QAChB,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,MAAM,oBAAoB,EAAE,CAAC;QAC7E,SAAS,GAAG,YAAY,CAAC;QACzB,MAAM,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC;IAChC,CAAC;SAAM,CAAC;QACJ,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,GAAG,MAAM,kBAAkB,EAAE,CAAC;QAC9E,SAAS,GAAG,aAAa,CAAC;QAC1B,MAAM,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;IAClC,CAAC;IAED,OAAO;QACH,QAAQ,EAAE,MAAM,CAAC,WAAW,EAAE;QAC9B,SAAS,EAAE,SAAS;KACvB,CAAC;AACN,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAC/B,QAAkB,EAClB,QAA6B,EAC7B,QAA6B;IAE7B,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,wBAAwB,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACvE,IAAI,kBAAmC,CAAC;IACxC,IAAI,mBAAoC,CAAC;IAEzC,IAAI,WAAW,EAAE,EAAE,CAAC;QAChB,MAAM,yBAAyB,GAAG,MAAM,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAC1F,kBAAkB,GAAG,yBAAyB,CAAC,kBAAkB,CAAC;QAClE,MAAM,CAAC,IAAI,CAAC,GAAG,yBAAyB,CAAC,QAAQ,CAAC,CAAC;IACvD,CAAC;SAAM,CAAC;QACJ,MAAM,uBAAuB,GAAG,MAAM,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAClE,mBAAmB,GAAG,uBAAuB,CAAC,mBAAmB,CAAC;QAClE,MAAM,CAAC,IAAI,CAAC,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IACrD,CAAC;IAED,MAAM,eAAe,GAAoB;QACrC,GAAG,kBAAkB;QACrB,GAAG,mBAAmB;KACzB,CAAC;IAEF,OAAO;QACH,QAAQ,EAAE,MAAM,CAAC,WAAW,EAAE;QAC9B,eAAe;KAClB,CAAC;AACN,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Extension } from 'vscode';
|
|
2
|
-
import type { CheckEnvironmentOptions, Environment, EnvironmentCheckResult, ResultMessage, EndpointResults, Endpoint } from '../types';
|
|
2
|
+
import type { CheckEnvironmentOptions, Environment, EnvironmentCheckResult, ResultMessage, EndpointResults, Endpoint } from '../types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Return the environment.
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../src/checks/environment.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,KAAK,EACR,uBAAuB,EACvB,WAAW,EACX,sBAAsB,EACtB,aAAa,EAEb,eAAe,EACf,QAAQ,EACX,MAAM,
|
|
1
|
+
{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../src/checks/environment.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,KAAK,EACR,uBAAuB,EACvB,WAAW,EACX,sBAAsB,EACtB,aAAa,EAEb,eAAe,EACf,QAAQ,EACX,MAAM,aAAa,CAAC;AAUrB;;;;;GAKG;AACH,wBAAsB,cAAc,CAChC,UAAU,CAAC,EAAE,SAAS,SAAS,CAAC,GAAG,CAAC,EAAE,GACvC,OAAO,CAAC;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,QAAQ,EAAE,aAAa,EAAE,CAAA;CAAE,CAAC,CA+BlE;AAoHD;;;;;;;GAOG;AACH,wBAAsB,mBAAmB,CACrC,iBAAiB,EAAE,GAAG,CAAC,MAAM,CAAC,EAC9B,SAAS,EAAE,QAAQ,EAAE,EACrB,kBAAkB,CAAC,EAAE,CAAC,WAAW,EAAE,QAAQ,KAAK,OAAO,CAAC;IACpD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC,GACH,OAAO,CAAC;IAAE,QAAQ,EAAE,aAAa,EAAE,CAAC;IAAC,aAAa,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAAA;KAAE,CAAA;CAAE,CAAC,CA2B5F;AAED;;;;;GAKG;AACH,wBAAsB,gBAAgB,CAAC,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CA8CzG"}
|