node-semvers 0.5.2 → 0.5.3
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/{index.js → lib/index.js} +7 -7
- package/package.json +14 -14
- package/.github/dependabot.yml +0 -11
- package/.github/workflows/main.yml +0 -22
- package/bin/cache.js +0 -21
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var semver = require('semver');
|
|
2
2
|
var Cache = require('fetch-json-cache');
|
|
3
3
|
|
|
4
|
-
var constants = require('./
|
|
5
|
-
var keyFunctions = require('./
|
|
6
|
-
var lineFunctions = require('./
|
|
7
|
-
var normalizeSchedule = require('./
|
|
8
|
-
var normalizeVersion = require('./
|
|
9
|
-
var match = require('./
|
|
10
|
-
var parseExpression = require('./
|
|
4
|
+
var constants = require('./constants');
|
|
5
|
+
var keyFunctions = require('./keyFunctions');
|
|
6
|
+
var lineFunctions = require('./lineFunctions');
|
|
7
|
+
var normalizeSchedule = require('./normalizeSchedule');
|
|
8
|
+
var normalizeVersion = require('./normalizeVersion');
|
|
9
|
+
var match = require('./match');
|
|
10
|
+
var parseExpression = require('./parseExpression');
|
|
11
11
|
|
|
12
12
|
function NodeVersions(versions, schedule) {
|
|
13
13
|
if (!versions) throw new Error('Missing option: versions');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-semvers",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Utilities for managing versions of node including looking up codenames",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node",
|
|
@@ -17,17 +17,19 @@
|
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"author": "Kevin Malakoff <kmalakoff@gmail.com> (https://github.com/kmalakoff)",
|
|
20
|
-
"main": "index.js",
|
|
20
|
+
"main": "lib/index.js",
|
|
21
21
|
"bin": {
|
|
22
22
|
"nsv": "./bin/node-semvers.js"
|
|
23
23
|
},
|
|
24
|
+
"files": [
|
|
25
|
+
"lib"
|
|
26
|
+
],
|
|
24
27
|
"scripts": {
|
|
25
28
|
"format": "prettier --write .",
|
|
26
29
|
"postinstall": "node bin/cache.js",
|
|
27
30
|
"lint": "eslint .",
|
|
28
31
|
"prepublishOnly": "dtd \"npm run lint\" \"depcheck\"",
|
|
29
|
-
"test": "mocha-compat test/spec/**/*.test.js --no-timeouts"
|
|
30
|
-
"test:engines": "nvu engines npm test"
|
|
32
|
+
"test": "mocha-compat test/spec/**/*.test.js --no-timeouts"
|
|
31
33
|
},
|
|
32
34
|
"dependencies": {
|
|
33
35
|
"exit": "^0.1.2",
|
|
@@ -39,18 +41,16 @@
|
|
|
39
41
|
"devDependencies": {
|
|
40
42
|
"@typescript-eslint/parser": "^5.30.0",
|
|
41
43
|
"cr": "^0.1.0",
|
|
42
|
-
"cross-spawn-cb": "^0.5.
|
|
44
|
+
"cross-spawn-cb": "^0.5.9",
|
|
43
45
|
"depcheck": "^1.4.3",
|
|
44
|
-
"dis-dat": "^0.1.
|
|
45
|
-
"eslint": "^
|
|
46
|
-
"eslint-config-prettier": "^
|
|
47
|
-
"eslint-config-standard": "^
|
|
48
|
-
"eslint-plugin-import": "^2.
|
|
49
|
-
"eslint-plugin-
|
|
50
|
-
"eslint-plugin-promise": "^
|
|
51
|
-
"eslint-plugin-standard": "^4.0.1",
|
|
46
|
+
"dis-dat": "^0.1.6",
|
|
47
|
+
"eslint": "^8.18.0",
|
|
48
|
+
"eslint-config-prettier": "^8.5.0",
|
|
49
|
+
"eslint-config-standard": "^17.0.0",
|
|
50
|
+
"eslint-plugin-import": "^2.26.0",
|
|
51
|
+
"eslint-plugin-n": "^15.2.3",
|
|
52
|
+
"eslint-plugin-promise": "^6.0.0",
|
|
52
53
|
"mocha-compat": "^3.5.5",
|
|
53
|
-
"node-version-use": "^0.2.2",
|
|
54
54
|
"prettier": "^2.7.1",
|
|
55
55
|
"rimraf": "^2.7.1"
|
|
56
56
|
},
|
package/.github/dependabot.yml
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
on:
|
|
3
|
-
- push
|
|
4
|
-
- pull_request
|
|
5
|
-
jobs:
|
|
6
|
-
test:
|
|
7
|
-
name: Node.js ${{ matrix.node-version }} ${{ matrix.os }}
|
|
8
|
-
runs-on: ${{ matrix.os }}
|
|
9
|
-
strategy:
|
|
10
|
-
matrix:
|
|
11
|
-
node: ['latest']
|
|
12
|
-
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
13
|
-
steps:
|
|
14
|
-
- uses: actions/checkout@v2
|
|
15
|
-
- uses: actions/setup-node@v2.4.1
|
|
16
|
-
with:
|
|
17
|
-
node-version: ${{ matrix.node-version }}
|
|
18
|
-
- run: git config --global user.name "Github Actions"
|
|
19
|
-
- run: git config --global user.email "actions@users.noreply.github.com"
|
|
20
|
-
- run: npm ci
|
|
21
|
-
- run: npm run lint
|
|
22
|
-
- run: npm run test:engines
|
package/bin/cache.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
var Cache = require('fetch-json-cache');
|
|
4
|
-
var exit = require('exit');
|
|
5
|
-
var constants = require('../lib/constants');
|
|
6
|
-
|
|
7
|
-
var cache = new Cache(constants.CACHE_DIRECTORY);
|
|
8
|
-
|
|
9
|
-
function cacheJSON(callback) {
|
|
10
|
-
cache.get(constants.DISTS_URL, { force: true }, function (err) {
|
|
11
|
-
err ? callback(err) : cache.get(constants.SCHEDULES_URL, { force: true }, callback);
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
cacheJSON(function (err) {
|
|
16
|
-
if (err) {
|
|
17
|
-
console.log('Failed to cache dists and schedules. Error: ' + err.message);
|
|
18
|
-
return exit(err.code || -1);
|
|
19
|
-
}
|
|
20
|
-
exit(0);
|
|
21
|
-
});
|