Skip to content

Commit

Permalink
Release 6.5.0 (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnturner committed Jan 3, 2023
1 parent bafb168 commit 7be7002
Show file tree
Hide file tree
Showing 5 changed files with 1,084 additions and 1,328 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test/yarn-berry.cjs
14 changes: 12 additions & 2 deletions audit-ci.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
{
"$schema": "https://github.com/IBM/audit-ci/raw/main/docs/schema.json",
// audit-ci supports reading JSON, JSONC, and JSON5 config files.
// Add a $schema property to enable JSON schema validation.
"$schema": "https://github.com/IBM/audit-ci/raw/main/docs/schema.json",
// You only need one of ["low", "moderate", "high", "critical"].
"low": true,
"allowlist": []
"allowlist": [
{
"GHSA-9c47-m6qq-7p4h|eslint-plugin-import>tsconfig-paths>json5": {
"active": true, // This field is optional and defaults to true.
"expiry": "", // There's no need to set an expiry date because we are unaffected.
"notes": "Transitive development-only dependency for linting doesn't impact the security of this application in production or for developers."
}
}
]
}
4 changes: 2 additions & 2 deletions lib/pnpm-auditer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function printReport(
reportType: "full" | "important" | "summary",
outputFormat: "text" | "json"
) {
const printReportObject = (text, object) => {
const printReportObject = (text: string, object: unknown) => {
if (outputFormat === "text") {
console.log(blue, text);
}
Expand All @@ -78,7 +78,7 @@ function printReport(
(advisory) => levels[advisories[advisory].severity]
);

const relevantAdvisories = {};
const relevantAdvisories: Record<string, PNPMAuditReport.Advisory> = {};
for (const advisory of relevantAdvisoryLevels) {
relevantAdvisories[advisory] = advisories[advisory];
}
Expand Down

0 comments on commit 7be7002

Please sign in to comment.