@linux-remote/manage 4.15.0 → 4.17.0
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/lib/util/version-map.js +3 -3
- package/package.json +1 -1
package/lib/util/version-map.js
CHANGED
|
@@ -3,7 +3,7 @@ const https = require('https');
|
|
|
3
3
|
const path = require('path');
|
|
4
4
|
const { homeDir } = require('../constant');
|
|
5
5
|
const fs = require('fs');
|
|
6
|
-
const sourceUrl = 'https://linux-remote.
|
|
6
|
+
const sourceUrl = 'https://linux-remote.github.io/linux-remote/version-map.json';
|
|
7
7
|
const cachePath = path.join(homeDir, '.version-map.json');
|
|
8
8
|
const {warnLog} = require('./util');
|
|
9
9
|
const keepedMap = {
|
|
@@ -153,7 +153,7 @@ function initCacheMap(deps, newMap){
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
function tipsCLI(newCLIVersion, oldVersion){
|
|
156
|
-
if(_getMinorV(newCLIVersion)
|
|
156
|
+
if(_getMinorV(newCLIVersion) >= _getMinorV(oldVersion)){
|
|
157
157
|
return;
|
|
158
158
|
}
|
|
159
159
|
console.log(`The cli new minor version ${newCLIVersion} was published, you can:`);
|
|
@@ -178,5 +178,5 @@ function _getMinorV(v){
|
|
|
178
178
|
if(v.length > 2){
|
|
179
179
|
v.splice(2);
|
|
180
180
|
}
|
|
181
|
-
return v.join('.');
|
|
181
|
+
return Number(v.join('.'));
|
|
182
182
|
}
|