trm-client 7.1.0 → 7.1.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-11-10 v7.1.1
12
+ -------------------
13
+ + success message on dist-tag and deprecate
14
+ - cli update check on update command
15
+
11
16
  2025-11-10 v7.1.0
12
17
  -------------------
13
18
  * commands with subcommands
@@ -332,7 +332,9 @@ class AbstractCommand {
332
332
  if (process.platform !== 'win32' && process.platform !== 'darwin') {
333
333
  Commons.Logger.warning(`Running on untested OS "${process.platform}"! Some features aren't tested yet.`);
334
334
  }
335
- yield this.getCliVersionStatus();
335
+ if (!this.registerOpts.noClientVersionCheck) {
336
+ yield this.getCliVersionStatus();
337
+ }
336
338
  if (this.registerOpts.requiresRegistry) {
337
339
  var registryAlias;
338
340
  var registry;
@@ -9,4 +9,5 @@ export interface RegisterCommandOpts {
9
9
  noSystemAlias?: boolean;
10
10
  ignoreRegistryUnreachable?: boolean;
11
11
  requiresR3trans?: boolean;
12
+ noClientVersionCheck?: boolean;
12
13
  }
@@ -10,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Deprecate = void 0;
13
+ const trm_commons_1 = require("trm-commons");
13
14
  const AbstractCommand_1 = require("../AbstractCommand");
14
15
  class Deprecate extends AbstractCommand_1.AbstractCommand {
15
16
  init() {
@@ -27,6 +28,7 @@ class Deprecate extends AbstractCommand_1.AbstractCommand {
27
28
  yield this.getRegistry().deprecate(this.args.package, this.args.version, {
28
29
  deprecate_note: this.args.note
29
30
  });
31
+ trm_commons_1.Logger.success(`${this.args.package} v${this.args.version} has just been deprecated`);
30
32
  });
31
33
  }
32
34
  }
@@ -10,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.DistTag = void 0;
13
+ const trm_commons_1 = require("trm-commons");
13
14
  const AbstractCommand_1 = require("../AbstractCommand");
14
15
  class DistTag extends AbstractCommand_1.AbstractCommand {
15
16
  init() {
@@ -33,11 +34,13 @@ class DistTag extends AbstractCommand_1.AbstractCommand {
33
34
  version: this.args.version,
34
35
  tag: this.args.tag
35
36
  });
37
+ trm_commons_1.Logger.success(`${this.args.package} v${this.args.version} tagged "${this.args.tag}"`);
36
38
  }
37
39
  else if (this.subcommand === 'rm') {
38
40
  yield this.getRegistry().rmDistTag(this.args.package, {
39
41
  tag: this.args.tag
40
42
  });
43
+ trm_commons_1.Logger.success(`${this.args.package} removed tag "${this.args.tag}"`);
41
44
  }
42
45
  });
43
46
  }
@@ -124,7 +124,9 @@ class Install extends AbstractCommand_1.AbstractCommand {
124
124
  }
125
125
  onArgs() {
126
126
  if (this.name === 'update' && !this.args.package) {
127
- this.registerOpts = {};
127
+ this.registerOpts = {
128
+ noClientVersionCheck: true
129
+ };
128
130
  }
129
131
  }
130
132
  onTrmDepVersionNotSatisfied(trmPackage) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trm-client",
3
- "version": "7.1.0",
3
+ "version": "7.1.1",
4
4
  "description": "TRM (Transport Request Manager) Client",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",