trm-client 7.4.0 → 7.4.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/changelog.txt
CHANGED
|
@@ -8,6 +8,15 @@ Legend
|
|
|
8
8
|
+ : added
|
|
9
9
|
- : removed
|
|
10
10
|
|
|
11
|
+
2026-03-04 v7.4.2
|
|
12
|
+
-------------------
|
|
13
|
+
* fix cache expiry
|
|
14
|
+
|
|
15
|
+
2026-03-03 v7.4.1
|
|
16
|
+
-------------------
|
|
17
|
+
! trm-core ^8.4.1
|
|
18
|
+
* fix version not satisfied in info command
|
|
19
|
+
|
|
11
20
|
2026-03-03 v7.4.0
|
|
12
21
|
-------------------
|
|
13
22
|
! trm-core ^8.4.0
|
|
@@ -95,6 +95,7 @@ class Info extends AbstractCommand_1.AbstractCommand {
|
|
|
95
95
|
const trmDependencies = (0, trm_core_1.getCoreTrmDependencies)(globalNodeModulesPath);
|
|
96
96
|
const trmDependenciesInstances = (yield this.getTrmDependenciesCheck()).dependencies;
|
|
97
97
|
const trmMissingDependencies = (yield this.getTrmDependenciesCheck()).missingDependencies;
|
|
98
|
+
const trmNotSatisfiedDependencies = (yield this.getTrmDependenciesCheck()).versionNotSatisfiedDependencies;
|
|
98
99
|
const nodeRfcPackage = (0, utils_1.getNodeRfcPackage)();
|
|
99
100
|
const packages = yield this.getSystemPackages();
|
|
100
101
|
const trmRest = packages.find(o => o.compareName("trm-rest") && o.compareRegistry(trm_core_1.RegistryProvider.getRegistry()));
|
|
@@ -110,7 +111,7 @@ class Info extends AbstractCommand_1.AbstractCommand {
|
|
|
110
111
|
if (trmDependencies) {
|
|
111
112
|
for (const d of Object.keys(trmDependencies)) {
|
|
112
113
|
var dText = ``;
|
|
113
|
-
const oTrmPackage = trmDependenciesInstances.find(o => o.compareName(d));
|
|
114
|
+
const oTrmPackage = trmDependenciesInstances.concat(trmNotSatisfiedDependencies).find(o => o.compareName(d));
|
|
114
115
|
if (oTrmPackage) {
|
|
115
116
|
var dInstalledVersion;
|
|
116
117
|
try {
|
|
@@ -133,7 +134,7 @@ class Info extends AbstractCommand_1.AbstractCommand {
|
|
|
133
134
|
}
|
|
134
135
|
}
|
|
135
136
|
else {
|
|
136
|
-
dText += ` ${chalk_1.default.bold('v' + dLatestVersion + ' available')}`;
|
|
137
|
+
dText += ` ${chalk_1.default.bold('v' + dLatestVersion.dist_tags.latest + ' available')}`;
|
|
137
138
|
}
|
|
138
139
|
}
|
|
139
140
|
catch (e) {
|
|
@@ -142,13 +143,7 @@ class Info extends AbstractCommand_1.AbstractCommand {
|
|
|
142
143
|
}
|
|
143
144
|
}
|
|
144
145
|
else {
|
|
145
|
-
const missingDependency = trmMissingDependencies.find(o =>
|
|
146
|
-
if (typeof (o) === 'string') {
|
|
147
|
-
if (o === d) {
|
|
148
|
-
return o;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
});
|
|
146
|
+
const missingDependency = trmMissingDependencies.find(o => o === d);
|
|
152
147
|
if (missingDependency) {
|
|
153
148
|
try {
|
|
154
149
|
dText = ` -> ${chalk_1.default.bgRed(missingDependency.manifest.get().version)}`;
|
|
@@ -173,12 +173,14 @@ class GlobalContext {
|
|
|
173
173
|
}
|
|
174
174
|
setGlobalNpmPathInternal() {
|
|
175
175
|
const globalNpmPathCache = this._cache.globalNpmPath;
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
trm_commons_1.Logger.log(`Npm global modules path set to ${path}`, true);
|
|
180
|
-
this.setCache('globalNpmPath', path);
|
|
176
|
+
const isValid = !!globalNpmPathCache && !!globalNpmPathCache.ts && (Date.now() - globalNpmPathCache.ts) < this.getSettings().npmGlobalPathCheckCache * 1000;
|
|
177
|
+
if (isValid) {
|
|
178
|
+
return globalNpmPathCache.data;
|
|
181
179
|
}
|
|
180
|
+
trm_commons_1.Logger.loading(`Cache expired, setting npm global modules path...`, true);
|
|
181
|
+
const path = (0, trm_commons_1.getGlobalNodeModules)();
|
|
182
|
+
trm_commons_1.Logger.log(`Npm global modules path set to ${path}`, true);
|
|
183
|
+
this.setCache('globalNpmPath', path);
|
|
182
184
|
}
|
|
183
185
|
getSettingsInternal() {
|
|
184
186
|
const defaultSettings = this.getDefaultSettings();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trm-client",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.2",
|
|
4
4
|
"description": "TRM (Transport Request Manager) Client",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"lodash": "^4.17.21",
|
|
48
48
|
"semver": "^7.7.4",
|
|
49
49
|
"trm-commons": "^3.5.1",
|
|
50
|
-
"trm-core": "^8.4.
|
|
50
|
+
"trm-core": "^8.4.1",
|
|
51
51
|
"trm-registry-types": "^2.1.0",
|
|
52
52
|
"xml2js": "^0.6.2"
|
|
53
53
|
},
|