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 CHANGED
@@ -8,6 +8,11 @@ Legend
8
8
  + : added
9
9
  - : removed
10
10
 
11
+ 2025-04-28 v4.4.1
12
+ -------------------
13
+
14
+ * node-r3trans version read
15
+
11
16
  2025-04-28 v4.4.0
12
17
  -------------------
13
18
 
@@ -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'))) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trm-client",
3
- "version": "4.4.0",
3
+ "version": "4.4.1",
4
4
  "description": "TRM (Transport Request Manager) Client",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",