@capawesome/cli 1.4.0-dev.62a72e4.1741443606 → 1.4.0-dev.62a72e4.1741443824
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/dist/index.js +1 -1
- package/dist/services/update.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -51,7 +51,7 @@ const main = (0, citty_1.defineCommand)({
|
|
|
51
51
|
// No op
|
|
52
52
|
},
|
|
53
53
|
cleanup() {
|
|
54
|
-
|
|
54
|
+
return update_1.default.checkForUpdate();
|
|
55
55
|
},
|
|
56
56
|
subCommands: {
|
|
57
57
|
whoami: Promise.resolve().then(() => __importStar(require('./commands/whoami'))).then((mod) => mod.default),
|
package/dist/services/update.js
CHANGED
|
@@ -49,7 +49,7 @@ class UpdateServiceImpl {
|
|
|
49
49
|
const response = yield this.httpClient.get(`https://registry.npmjs.org/${package_json_1.default.name}/latest`);
|
|
50
50
|
const latestVersion = response.data.version;
|
|
51
51
|
if (semver.gt(latestVersion, package_json_1.default.version)) {
|
|
52
|
-
consola_1.default.
|
|
52
|
+
consola_1.default.info(`New version of Capawesome CLI available: ${package_json_1.default.name}@${latestVersion}. Please update to receive the latest features and bug fixes.`);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capawesome/cli",
|
|
3
|
-
"version": "1.4.0-dev.62a72e4.
|
|
3
|
+
"version": "1.4.0-dev.62a72e4.1741443824",
|
|
4
4
|
"description": "The Capawesome Cloud Command Line Interface (CLI) to manage Live Updates and more.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "patch-package && rimraf ./dist && tsc",
|