trm-client 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/view.js +3 -2
- package/dist/index.js +1 -0
- package/dist/utils/logError.js +4 -4
- package/package.json +6 -4
package/dist/commands/view.js
CHANGED
|
@@ -22,16 +22,17 @@ const _printVersionSection = (systemPackage, registryView) => {
|
|
|
22
22
|
if (!systemPackage && !registryView) {
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
var oSystemManifest;
|
|
26
26
|
trm_core_1.Logger.log('');
|
|
27
27
|
if (systemPackage) {
|
|
28
|
+
oSystemManifest = systemPackage.manifest.get();
|
|
28
29
|
trm_core_1.Logger.success(`Installed on ${trm_core_1.SystemConnector.getDest()}: Yes`);
|
|
29
30
|
trm_core_1.Logger.info(`Installed version: ${oSystemManifest.version}`);
|
|
30
31
|
}
|
|
31
32
|
else {
|
|
32
33
|
trm_core_1.Logger.info(`Installed on ${trm_core_1.SystemConnector.getDest()}: No`);
|
|
33
34
|
}
|
|
34
|
-
if (registryView.release) {
|
|
35
|
+
if (registryView && registryView.release) {
|
|
35
36
|
trm_core_1.Logger.info(`Latest version available: ${registryView.release.version}`);
|
|
36
37
|
if (oSystemManifest) {
|
|
37
38
|
if ((0, semver_1.eq)(oSystemManifest.version, registryView.release.version)) {
|
package/dist/index.js
CHANGED
|
@@ -70,6 +70,7 @@ When a release is already published, the latest available manifest is used but c
|
|
|
70
70
|
Translation transport is only generated for packages that contain one or more objects with translations (unless skipped by flag).
|
|
71
71
|
Customizing transport is only generated if a valid list of customizing transports is provided (unless skipped by flag).
|
|
72
72
|
If a default manifest with dependencies is provided in conjunction with the automatic dependency generation, results will be merged.`)
|
|
73
|
+
.option(`-p, --private`, `Publish package with private visibility.`)
|
|
73
74
|
.option(`-np, --noPrompts`, `No prompts (will force some decisions).`, false)
|
|
74
75
|
.option(`-km, --keepLatestReleaseManifestValues`, `Keep the latest release (if exists) manifest values as defaults.`, true)
|
|
75
76
|
.option(`-nl, --noLanguageTransport`, `Skip language (translations) transport publish.`, false)
|
package/dist/utils/logError.js
CHANGED
|
@@ -38,14 +38,14 @@ function logError(err) {
|
|
|
38
38
|
}
|
|
39
39
|
else if (originalException.name === 'TrmRegistryError') {
|
|
40
40
|
if (originalException.status) {
|
|
41
|
-
sError = `${chalk_1.default.bgRed(originalException.status)} ${sError}`;
|
|
41
|
+
sError = `${chalk_1.default.black.bgRed(originalException.status)} ${sError}`;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
else if (originalException.name === 'TrmRFCClient') {
|
|
45
45
|
if (originalException.rfcError && originalException.rfcError) {
|
|
46
|
-
sError = `${chalk_1.default.bgRed(originalException.rfcError.key)} ${sError}`;
|
|
46
|
+
sError = `${chalk_1.default.black.bgRed(originalException.rfcError.key)} ${sError}`;
|
|
47
47
|
if (originalException.rfcError.key === "TRM_RFC_UNAUTHORIZED") {
|
|
48
|
-
aError.push(chalk_1.default.bgRed(`\nUser "${trm_core_1.SystemConnector.getLogonUser()}" is not authorized to execute TRM RFC functions. Follow this guide https://docs.trmregistry.com/#/server/docs/setup?id=user-authorization-maintenance.`));
|
|
48
|
+
aError.push(chalk_1.default.black.bgRed(`\nUser "${trm_core_1.SystemConnector.getLogonUser()}" is not authorized to execute TRM RFC functions. Follow this guide https://docs.trmregistry.com/#/server/docs/setup?id=user-authorization-maintenance.`));
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -60,7 +60,7 @@ function logError(err) {
|
|
|
60
60
|
if (originalException.status === 404) {
|
|
61
61
|
aError.push(`Service cannot be reached (Check if trm-rest is installed and activated correctly).`);
|
|
62
62
|
}
|
|
63
|
-
sError = `${chalk_1.default.bgRed(originalException.status)} ${sError}`;
|
|
63
|
+
sError = `${chalk_1.default.black.bgRed(originalException.status)} ${sError}`;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
aError.push(sError);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trm-client",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "TRM (Transport Request Manager) Client",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"trm": "dist/index.js"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
|
-
"
|
|
15
|
+
"cleanBuild": "rimraf dist/",
|
|
16
|
+
"build": "npm run cleanBuild && tsc --sourceMap false",
|
|
16
17
|
"prepublishOnly": "npm run build"
|
|
17
18
|
},
|
|
18
19
|
"keywords": [
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
"ini": "^4.1.1",
|
|
43
44
|
"node-html-parser": "^6.1.13",
|
|
44
45
|
"semver": "^7.5.4",
|
|
45
|
-
"trm-core": "^6.1.
|
|
46
|
+
"trm-core": "^6.1.17",
|
|
46
47
|
"trm-registry-types": "^1.2.0",
|
|
47
48
|
"xml2js": "^0.6.2"
|
|
48
49
|
},
|
|
@@ -50,6 +51,7 @@
|
|
|
50
51
|
"@types/ini": "^1.3.31",
|
|
51
52
|
"@types/node": "^20.4.8",
|
|
52
53
|
"@types/semver": "^7.5.3",
|
|
53
|
-
"@types/xml2js": "^0.4.11"
|
|
54
|
+
"@types/xml2js": "^0.4.11",
|
|
55
|
+
"rimraf": "^6.0.1"
|
|
54
56
|
}
|
|
55
57
|
}
|