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 +5 -0
- package/dist/command/AbstractCommand.js +3 -1
- package/dist/command/RegisterCommandOpts.d.ts +1 -0
- package/dist/command/implementations/Deprecate.js +2 -0
- package/dist/command/implementations/DistTag.js +3 -0
- package/dist/command/implementations/Install.js +3 -1
- package/package.json +1 -1
package/changelog.txt
CHANGED
|
@@ -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
|
-
|
|
335
|
+
if (!this.registerOpts.noClientVersionCheck) {
|
|
336
|
+
yield this.getCliVersionStatus();
|
|
337
|
+
}
|
|
336
338
|
if (this.registerOpts.requiresRegistry) {
|
|
337
339
|
var registryAlias;
|
|
338
340
|
var registry;
|
|
@@ -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) {
|