retire 4.3.1 → 4.3.2
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 +6 -0
- package/README.md +1 -1
- package/lib/cli.js +1 -1
- package/lib/retire.d.ts +15 -0
- package/lib/retire.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ Options:
|
|
|
30
30
|
--exitwith <code> Custom exit code (default: 13) when vulnerabilities are found
|
|
31
31
|
--colors Enable color output (console output only)
|
|
32
32
|
--insecure Enable fetching remote jsrepo/noderepo files from hosts using an insecure or self-signed SSL (TLS) certificate
|
|
33
|
-
--ext <extensions>
|
|
33
|
+
--ext <extensions> Comma separated list of file extensions for JavaScript files. The default is "js"
|
|
34
34
|
--cacert <path> Use the specified certificate file to verify the peer used for fetching remote jsrepo/noderepo files
|
|
35
35
|
--includeOsv Include OSV advisories in the output
|
|
36
36
|
-h, --help display help for command
|
package/lib/cli.js
CHANGED
|
@@ -69,7 +69,7 @@ const prg = commander_1.program
|
|
|
69
69
|
.option('--exitwith <code>', 'Custom exit code (default: 13) when vulnerabilities are found')
|
|
70
70
|
.option('--colors', 'Enable color output (console output only)')
|
|
71
71
|
.option('--insecure', 'Enable fetching remote jsrepo/noderepo files from hosts using an insecure or self-signed SSL (TLS) certificate')
|
|
72
|
-
.option('--ext <extensions>', '
|
|
72
|
+
.option('--ext <extensions>', 'Comma separated list of file extensions for JavaScript files. The default is "js"')
|
|
73
73
|
.option('--cacert <path>', 'Use the specified certificate file to verify the peer used for fetching remote jsrepo/noderepo files')
|
|
74
74
|
.option('--includeOsv', 'Include OSV advisories in the output')
|
|
75
75
|
.parse()
|
package/lib/retire.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Repository, Component, Hasher } from './types';
|
|
2
|
+
|
|
3
|
+
export declare function check(component: string, version: string, repo: Repository): Component[];
|
|
4
|
+
|
|
5
|
+
export declare function replaceVersion(jsRepoJsonAsText: string): string;
|
|
6
|
+
|
|
7
|
+
export declare function isVulnerable(results: Component[]): boolean;
|
|
8
|
+
|
|
9
|
+
export declare function scanUri(uri: string, repo: Repository): Component[];
|
|
10
|
+
|
|
11
|
+
export declare function scanFileName(fileName: string, repo: Repository): Component[];
|
|
12
|
+
|
|
13
|
+
export declare function scanFileContent(content: string, repo: Repository, hasher: Hasher): Component[];
|
|
14
|
+
|
|
15
|
+
export declare const version: string;
|
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": "4.3.
|
|
5
|
+
"version": "4.3.2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"test": "./test",
|
|
39
|
-
"build": "tsc && chmod ugo+x lib/cli.js",
|
|
39
|
+
"build": "tsc && chmod ugo+x lib/cli.js && cp src/retire.d.ts lib/retire.d.ts",
|
|
40
40
|
"watch": "tsc --watch ",
|
|
41
41
|
"typecheck": "tsc --noEmit",
|
|
42
42
|
"lint": "eslint . --ext .ts --fix --ignore-path ../.gitignore",
|