trm-client 4.4.0 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.txt +5 -0
- package/dist/commands/info.js +11 -2
- package/package.json +1 -1
package/changelog.txt
CHANGED
package/dist/commands/info.js
CHANGED
|
@@ -31,7 +31,7 @@ const _getDependencyVersion = (moduleName, rootModule = 'trm-client') => {
|
|
|
31
31
|
file = (0, fs_1.readFileSync)(path_1.default.join(get_root_path_1.rootPath, `/node_modules/${moduleName}/package.json`));
|
|
32
32
|
}
|
|
33
33
|
if (!file) {
|
|
34
|
-
trm_commons_1.Logger.warning(`Library ${moduleName} was not found!`, true);
|
|
34
|
+
trm_commons_1.Logger.warning(`Library ${moduleName} (root ${rootModule}) was not found!`, true);
|
|
35
35
|
}
|
|
36
36
|
else {
|
|
37
37
|
return JSON.parse(file.toString()).version;
|
|
@@ -77,9 +77,18 @@ function info(commandArgs) {
|
|
|
77
77
|
const trmDependenciesInstances = commons_1.CommandContext.trmDependencies;
|
|
78
78
|
const trmMissingDependencies = commons_1.CommandContext.missingTrmDependencies;
|
|
79
79
|
const nodeRfcVersion = _getNodeRfcVersion(npmGlobal);
|
|
80
|
-
const nodeR3transVersion = _getDependencyVersion("node-r3trans", "trm-core");
|
|
81
80
|
const packages = yield commons_1.CommandContext.getSystemPackages();
|
|
82
81
|
const trmRest = packages.find(o => o.compareName("trm-rest") && o.compareRegistry(new trm_core_1.Registry(trm_core_1.PUBLIC_RESERVED_KEYWORD)));
|
|
82
|
+
var nodeR3transVersion;
|
|
83
|
+
try {
|
|
84
|
+
nodeR3transVersion = _getDependencyVersion("node-r3trans", "trm-core");
|
|
85
|
+
if (!nodeR3transVersion) {
|
|
86
|
+
throw new Error();
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
catch (e) {
|
|
90
|
+
nodeR3transVersion = _getDependencyVersion("node-r3trans");
|
|
91
|
+
}
|
|
83
92
|
var clientDependenciesTree = [];
|
|
84
93
|
if (clientDependencies) {
|
|
85
94
|
for (const d of Object.keys(clientDependencies).filter(k => k.startsWith('trm'))) {
|