Comparing version 0.4.2 to 0.4.3
@@ -1,3 +0,9 @@ | ||
# [Unreleased](https://github.com/G-Rath/audit-app/compare/v0.4.2...HEAD) (YYYY-MM-DD) | ||
# [Unreleased](https://github.com/G-Rath/audit-app/compare/v0.4.3...HEAD) (YYYY-MM-DD) | ||
# [0.4.3](https://github.com/G-Rath/audit-app/compare/v0.4.2...v0.4.3) (2021-01-06) | ||
### Bug fixes | ||
- update schema to be valid in strict mode ([d5c5fd0e][]) | ||
# [0.4.2](https://github.com/G-Rath/audit-app/compare/v0.4.1...v0.4.2) (2020-09-26) | ||
@@ -56,2 +62,3 @@ | ||
[d5c5fd0e]: https://github.com/G-Rath/audit-app/commit/d5c5fd0e | ||
[86083810]: https://github.com/G-Rath/audit-app/commit/86083810 | ||
@@ -58,0 +65,0 @@ [90ae6214]: https://github.com/G-Rath/audit-app/commit/90ae6214 |
{ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"title": "JSONConfig", | ||
"type": "object", | ||
"definitions": { | ||
@@ -23,3 +24,3 @@ "SupportedPackageManagerOrAuto": { | ||
"type": "string", | ||
"pattern": "^\\d+\\|((?:@[a-z\\d-*~][a-z\\d-*._~]*/)?[a-z\\d-~][a-z\\d-._~]*>)+((?:@[a-z\\d-*~][a-z\\d-*._~]*/)?[a-z\\d-~][a-z\\d-._~]*)$" | ||
"pattern": "^\\d+\\|((?:@[a-z\\d*~-][a-z\\d*._~-]*/)?[a-z\\d~-][a-z\\d._~-]*>)+((?:@[a-z\\d*~-][a-z\\d*._~-]*/)?[a-z\\d~-][a-z\\d._~-]*)$" | ||
} | ||
@@ -26,0 +27,0 @@ } |
@@ -63,3 +63,3 @@ "use strict"; | ||
}; | ||
exports.audit = async (dir, packageManager) => { | ||
const audit = async (dir, packageManager) => { | ||
const resultsCollector = packageManager === 'yarn' | ||
@@ -76,1 +76,2 @@ ? collectYarnAuditResults | ||
}; | ||
exports.audit = audit; |
@@ -143,2 +143,3 @@ "use strict"; | ||
}; | ||
exports.formatReport = (format, report) => formatters[format](report); | ||
const formatReport = (format, report) => formatters[format](report); | ||
exports.formatReport = formatReport; |
@@ -35,3 +35,3 @@ "use strict"; | ||
}; | ||
exports.generateReport = (ignores, results) => { | ||
const generateReport = (ignores, results) => { | ||
const [vulnerable, // | ||
@@ -58,1 +58,2 @@ ignored, missing] = Object.entries(results.advisories) | ||
}; | ||
exports.generateReport = generateReport; |
@@ -7,3 +7,3 @@ "use strict"; | ||
const generateReport_1 = require("./generateReport"); | ||
exports.auditApp = async (options) => { | ||
const auditApp = async (options) => { | ||
if (options.debug) { | ||
@@ -26,1 +26,2 @@ console.log(`auditing with ${options.packageManager}...`); | ||
}; | ||
exports.auditApp = auditApp; |
@@ -90,2 +90,3 @@ "use strict"; | ||
}; | ||
exports.parseArgs = (args) => parseWithConfig(args); | ||
const parseArgs = (args) => parseWithConfig(args); | ||
exports.parseArgs = parseArgs; |
{ | ||
"name": "audit-app", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "A cli tool for auditing apps & packages using their respective package managers.", | ||
@@ -54,28 +54,28 @@ "keywords": [ | ||
"devDependencies": { | ||
"@jest/types": "^26.3.0", | ||
"@types/eslint": "^7.2.2", | ||
"@types/jest": "^26.0.14", | ||
"@types/node": "^14.11.1", | ||
"@jest/types": "^26.6.2", | ||
"@types/eslint": "^7.2.6", | ||
"@types/jest": "^26.0.19", | ||
"@types/node": "^14.14.20", | ||
"@types/readline-transform": "^1.0.0", | ||
"@types/yargs": "^15.0.5", | ||
"@typescript-eslint/eslint-plugin": "^4.1.1", | ||
"@typescript-eslint/parser": "^4.1.1", | ||
"eslint": "^7.9.0", | ||
"eslint-config-ackama": "^2.0.0", | ||
"@types/yargs": "^15.0.12", | ||
"@typescript-eslint/eslint-plugin": "^4.12.0", | ||
"@typescript-eslint/parser": "^4.12.0", | ||
"eslint": "^7.17.0", | ||
"eslint-config-ackama": "^2.0.1", | ||
"eslint-plugin-eslint-comments": "^3.2.0", | ||
"eslint-plugin-import": "^2.21.2", | ||
"eslint-plugin-jest": "^24.0.1", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-jest": "^24.1.3", | ||
"eslint-plugin-jest-formatting": "^2.0.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"jest": "^26.4.2", | ||
"eslint-plugin-prettier": "^3.3.1", | ||
"jest": "^26.6.3", | ||
"memfs": "^3.2.0", | ||
"prettier": "^2.1.2", | ||
"prettier": "^2.2.1", | ||
"prettier-config-ackama": "^0.1.2", | ||
"ts-jest": "^26.3.0", | ||
"ts-node": "^9.0.0", | ||
"ts-jest": "^26.4.4", | ||
"ts-node": "^9.1.1", | ||
"ttypescript": "^1.5.12", | ||
"typescript": "^4.0.2", | ||
"typescript": "^4.1.3", | ||
"unionfs": "^4.4.0" | ||
} | ||
} |
39359
546