qtex 1.1.9 → 1.1.10
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/package.json +1 -1
- package/src/updater.js +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qtex",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.10",
|
|
4
4
|
"description": "Ultra-fast cloud LaTeX compiler. Compile .tex documents in milliseconds without installing TeXLive or MikTeX. Zero config, sub-second builds, live watch mode.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
package/src/updater.js
CHANGED
|
@@ -94,6 +94,11 @@ export async function selfUpdate(currentVersion) {
|
|
|
94
94
|
const latestVersion = data.tag_name.replace('v', '');
|
|
95
95
|
|
|
96
96
|
if (!isNewer(latestVersion, currentVersion)) {
|
|
97
|
+
if (isNewer(currentVersion, latestVersion)) {
|
|
98
|
+
ui.warn(`You are using a version (${colors.bold}v${currentVersion}${colors.reset}) that is ahead of the latest release (${colors.bold}v${latestVersion}${colors.reset}).`);
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
|
|
97
102
|
ui.success(`qtex is already up to date (${colors.bold}v${currentVersion}${colors.reset}).`);
|
|
98
103
|
return;
|
|
99
104
|
}
|