node-semvers 0.5.6 → 0.6.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/constants.js +1 -1
- package/lib/index.js +3 -3
- package/package.json +6 -7
package/lib/constants.js
CHANGED
|
@@ -3,5 +3,5 @@ var path = require('path');
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
CACHE_DIRECTORY: path.resolve(path.join(__dirname, '..', '.cache')),
|
|
5
5
|
DISTS_URL: 'https://nodejs.org/dist/index.json',
|
|
6
|
-
SCHEDULES_URL: 'https://
|
|
6
|
+
SCHEDULES_URL: 'https://raw.githubusercontent.com/nodejs/Release/master/schedule.json'
|
|
7
7
|
};
|
package/lib/index.js
CHANGED
|
@@ -52,11 +52,11 @@ NodeVersions.load = function load(options, callback) {
|
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
NodeVersions.
|
|
55
|
+
NodeVersions.loadSync = function loadSync(options) {
|
|
56
56
|
options = options || {};
|
|
57
57
|
var cache = new Cache(options.cacheDirectory || constants.CACHE_DIRECTORY);
|
|
58
|
-
var versions = cache.
|
|
59
|
-
var schedule = cache.
|
|
58
|
+
var versions = cache.getSync(constants.DISTS_URL);
|
|
59
|
+
var schedule = cache.getSync(constants.SCHEDULES_URL);
|
|
60
60
|
if (!versions || !schedule) return null;
|
|
61
61
|
return new NodeVersions(versions, schedule);
|
|
62
62
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-semvers",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Utilities for managing versions of node including looking up codenames",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node",
|
|
@@ -29,23 +29,22 @@
|
|
|
29
29
|
"format": "prettier --write .",
|
|
30
30
|
"postinstall": "node bin/cache.js",
|
|
31
31
|
"lint": "eslint .",
|
|
32
|
-
"prepublishOnly": "
|
|
32
|
+
"prepublishOnly": "npm run lint && depcheck",
|
|
33
33
|
"test": "mocha-compat test/spec/**/*.test.js --no-timeouts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"exit": "^0.1.2",
|
|
37
|
-
"fetch-json-cache": "^0.
|
|
37
|
+
"fetch-json-cache": "^0.2.0",
|
|
38
38
|
"getopts-compat": "^2.2.5",
|
|
39
39
|
"isarray": "^2.0.5",
|
|
40
40
|
"semver": "^5.7.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@typescript-eslint/parser": "^5.30.
|
|
43
|
+
"@typescript-eslint/parser": "^5.30.7",
|
|
44
44
|
"cr": "^0.1.0",
|
|
45
|
-
"cross-spawn-cb": "^0.
|
|
45
|
+
"cross-spawn-cb": "^0.6.3",
|
|
46
46
|
"depcheck": "^1.4.3",
|
|
47
|
-
"
|
|
48
|
-
"eslint": "^8.19.0",
|
|
47
|
+
"eslint": "^8.20.0",
|
|
49
48
|
"eslint-config-prettier": "^8.5.0",
|
|
50
49
|
"eslint-config-standard": "^17.0.0",
|
|
51
50
|
"eslint-plugin-import": "^2.26.0",
|