retire 3.0.2 → 3.0.6
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/CHANGELOG.md +32 -8
- package/bin/retire +3 -6
- package/lib/retire.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,67 +1,91 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [3.0.
|
|
3
|
+
## [3.0.6]
|
|
4
|
+
|
|
5
|
+
### Security
|
|
6
|
+
|
|
7
|
+
- Switch the `colors` package with `ansi-colors`
|
|
8
|
+
|
|
9
|
+
## [3.0.4] / [3.0.5]
|
|
10
|
+
|
|
11
|
+
### Security
|
|
12
|
+
|
|
13
|
+
- Pin colors dependency to avoid DOS from colors author
|
|
14
|
+
|
|
15
|
+
## [3.0.3]
|
|
16
|
+
|
|
17
|
+
### Bug
|
|
18
|
+
|
|
19
|
+
- Fix version number
|
|
20
|
+
|
|
21
|
+
## [3.0.2]
|
|
4
22
|
|
|
5
23
|
### Dependency update
|
|
24
|
+
|
|
6
25
|
- always output JSON to stdout, to avoid conflict with deprecation warning
|
|
7
26
|
|
|
8
27
|
## [3.0.1]
|
|
9
28
|
|
|
10
29
|
### Dependency update
|
|
30
|
+
|
|
11
31
|
- glob-parent, lodash and hosted-git-info had vulnerabilities and was updated
|
|
12
32
|
|
|
13
33
|
## [3.0.0]
|
|
14
34
|
|
|
15
35
|
### Deprecation notice
|
|
36
|
+
|
|
16
37
|
- The node scanner is deprecated: https://github.com/RetireJS/retire.js/wiki/Deprecating-the-node.js-scanner
|
|
17
38
|
|
|
18
39
|
## [2.2.5]
|
|
19
40
|
|
|
20
41
|
### Dependency update
|
|
42
|
+
|
|
21
43
|
- y18n had a vulnerability and was updated
|
|
22
44
|
|
|
23
45
|
## [2.2.4]
|
|
24
46
|
|
|
25
47
|
### Bugfix
|
|
48
|
+
|
|
26
49
|
- Fixes [#343](https://github.com/RetireJS/retire.js/pull/343) where symlink to nonexistent file causes it to crash with exception. Now it will log it as warn instead.
|
|
27
50
|
|
|
28
51
|
## [2.2.3]
|
|
29
52
|
|
|
30
53
|
### Bugfix
|
|
31
|
-
- Fixes [#337](https://github.com/RetireJS/retire.js/issues/337) where symlinks are not read
|
|
32
54
|
|
|
55
|
+
- Fixes [#337](https://github.com/RetireJS/retire.js/issues/337) where symlinks are not read
|
|
33
56
|
|
|
34
57
|
## [2.2.2]
|
|
35
58
|
|
|
36
59
|
### Bugfix
|
|
37
|
-
- Fixes [#334](https://github.com/RetireJS/retire.js/issues/334) where detected libraries without vulnerabilities show in output even when verbose is not specified
|
|
38
60
|
|
|
61
|
+
- Fixes [#334](https://github.com/RetireJS/retire.js/issues/334) where detected libraries without vulnerabilities show in output even when verbose is not specified
|
|
39
62
|
|
|
40
63
|
## [2.2.1]
|
|
41
64
|
|
|
42
65
|
### Bugfix
|
|
66
|
+
|
|
43
67
|
- Fixes [#321](https://github.com/RetireJS/retire.js/issues/321) where write output to file did not always work as expected
|
|
44
68
|
|
|
45
|
-
## [2.2.0]
|
|
69
|
+
## [2.2.0]
|
|
46
70
|
|
|
47
71
|
### Added
|
|
48
|
-
- Support `--cacert <path>` or `--insecure` when loading the repos (thanks to [adamcohen](https://github.com/adamcohen)) [PR#322](https://github.com/RetireJS/retire.js/pull/322)
|
|
49
72
|
|
|
73
|
+
- Support `--cacert <path>` or `--insecure` when loading the repos (thanks to [adamcohen](https://github.com/adamcohen)) [PR#322](https://github.com/RetireJS/retire.js/pull/322)
|
|
50
74
|
|
|
51
75
|
## [2.1.1] - 2020-03-20
|
|
52
76
|
|
|
53
77
|
### Bugfix
|
|
54
|
-
- Fix compatibility with node 6
|
|
55
78
|
|
|
79
|
+
- Fix compatibility with node 6
|
|
56
80
|
|
|
57
81
|
## [2.1.1] - 2020-03-16
|
|
58
82
|
|
|
59
83
|
### Modified
|
|
60
|
-
- Remove `request` as it is deprecated
|
|
61
84
|
|
|
85
|
+
- Remove `request` as it is deprecated
|
|
62
86
|
|
|
63
87
|
## [2.1.0] - 2020-03-16
|
|
64
88
|
|
|
65
89
|
### Modified
|
|
66
|
-
- Support ** and * in ignore paths (** = any number of folders)
|
|
67
90
|
|
|
91
|
+
- Support ** and \* in ignore paths (** = any number of folders)
|
package/bin/retire
CHANGED
|
@@ -12,7 +12,7 @@ var utils = require('../lib/utils'),
|
|
|
12
12
|
os = require('os'),
|
|
13
13
|
path = require('path'),
|
|
14
14
|
fs = require('fs'),
|
|
15
|
-
colors = require('colors
|
|
15
|
+
colors = require('ansi-colors'),
|
|
16
16
|
emitter = new require('events').EventEmitter;
|
|
17
17
|
|
|
18
18
|
var events = new emitter();
|
|
@@ -32,9 +32,6 @@ var severityLevels = {
|
|
|
32
32
|
critical: 4
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
colors.setTheme({
|
|
36
|
-
warn: 'red'
|
|
37
|
-
});
|
|
38
35
|
|
|
39
36
|
|
|
40
37
|
/*
|
|
@@ -80,7 +77,7 @@ if (!config.nocache && !config.cachedir) {
|
|
|
80
77
|
|
|
81
78
|
config.ignore = config.ignore ? utils.map(config.ignore.split(','), function(e) { return path.resolve(e); }) : [];
|
|
82
79
|
config.ignore = { paths : config.ignore, descriptors: [] };
|
|
83
|
-
config.colorwarn = config.colors ? colors.
|
|
80
|
+
config.colorwarn = config.colors ? colors.red : x => x;
|
|
84
81
|
|
|
85
82
|
if (!config.ignorefile) {
|
|
86
83
|
config.ignorefile = defaultIgnoreFiles.filter(function(x){ return fs.existsSync(x); })[0];
|
|
@@ -203,7 +200,7 @@ events.on('scan-js', function() {
|
|
|
203
200
|
});
|
|
204
201
|
|
|
205
202
|
events.on('scan-node', function() {
|
|
206
|
-
console.warn('DEPRECATION NOTICE: The node scanning is deprecated and will be removed soon. See https://github.com/RetireJS/retire.js/wiki/Deprecating-the-node.js-scanner ')
|
|
203
|
+
console.warn('DEPRECATION NOTICE: The node scanning is deprecated and will be removed soon. See https://github.com/RetireJS/retire.js/wiki/Deprecating-the-node.js-scanner ');
|
|
207
204
|
resolve.getNodeDependencies(config.nodepath || config.path, config.package).on('done', function(dependencies) {
|
|
208
205
|
scanner.scanDependencies(dependencies, nodeRepo, config);
|
|
209
206
|
events.emit('scan-done');
|
package/lib/retire.js
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "Erlend Oftedal <erlend@oftedal.no>",
|
|
3
3
|
"name": "retire",
|
|
4
4
|
"description": "Retire is a tool for detecting use of vulnerable libraries",
|
|
5
|
-
"version": "3.0.
|
|
5
|
+
"version": "3.0.6",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
},
|
|
14
14
|
"main": "./lib/retire.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"colors": "^1.1
|
|
16
|
+
"ansi-colors": "^4.1.1",
|
|
17
17
|
"commander": "2.5.x",
|
|
18
18
|
"https-proxy-agent": "^5.0.0",
|
|
19
19
|
"read-installed": "^4.0.3",
|
|
20
20
|
"walkdir": "0.4.1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"chai": "^4.
|
|
23
|
+
"chai": "^4.3.4",
|
|
24
24
|
"jshint": "^2.12.0",
|
|
25
|
-
"mocha": "^
|
|
25
|
+
"mocha": "^9.1.3"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"test": "./test"
|