File tree 9 files changed +17
-17
lines changed 9 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ import { yellow } from "./colors.js";
2
2
import { ReportConfig } from "./common.js" ;
3
3
import type { AuditCiFullConfig } from "./config.js" ;
4
4
import type { Summary } from "./model.js" ;
5
- import * as npmAuditer from "./npm-auditer .js" ;
6
- import * as pnpmAuditer from "./pnpm-auditer .js" ;
7
- import * as yarnAuditer from "./yarn-auditer .js" ;
5
+ import * as npmAuditor from "./npm-auditor .js" ;
6
+ import * as pnpmAuditor from "./pnpm-auditor .js" ;
7
+ import * as yarnAuditor from "./yarn-auditor .js" ;
8
8
9
9
const PARTIAL_RETRY_ERROR_MSG = {
10
10
// The three ENOAUDIT error messages for NPM are:
@@ -20,16 +20,16 @@ const PARTIAL_RETRY_ERROR_MSG = {
20
20
21
21
function getAuditor (
22
22
packageManager : "npm" | "yarn" | "pnpm" ,
23
- ) : typeof yarnAuditer | typeof npmAuditer | typeof pnpmAuditer {
23
+ ) : typeof yarnAuditor | typeof npmAuditor | typeof pnpmAuditor {
24
24
switch ( packageManager ) {
25
25
case "yarn" : {
26
- return yarnAuditer ;
26
+ return yarnAuditor ;
27
27
}
28
28
case "npm" : {
29
- return npmAuditer ;
29
+ return npmAuditor ;
30
30
}
31
31
case "pnpm" : {
32
- return pnpmAuditer ;
32
+ return pnpmAuditor ;
33
33
}
34
34
default : {
35
35
throw new Error ( `Invalid package manager: ${ packageManager } ` ) ;
Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ export {
12
12
type VulnerabilityLevels ,
13
13
} from "./map-vulnerability.js" ;
14
14
export type { Summary } from "./model.js" ;
15
- export { audit as npmAudit } from "./npm-auditer .js" ;
16
- export { audit as pnpmAudit } from "./pnpm-auditer .js" ;
17
- export { audit as yarnAudit } from "./yarn-auditer .js" ;
15
+ export { audit as npmAudit } from "./npm-auditor .js" ;
16
+ export { audit as pnpmAudit } from "./pnpm-auditor .js" ;
17
+ export { audit as yarnAudit } from "./yarn-auditor .js" ;
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
import { NPMAuditReportV1 } from "audit-types" ;
2
2
import { describe , expect , it } from "vitest" ;
3
3
import Allowlist from "../lib/allowlist.js" ;
4
- import { auditWithFullConfig , report } from "../lib/npm-auditer .js" ;
4
+ import { auditWithFullConfig , report } from "../lib/npm-auditor .js" ;
5
5
import {
6
6
config as baseConfig ,
7
7
summaryWithDefault ,
@@ -36,7 +36,7 @@ function config(
36
36
37
37
// To modify what slow times are, need to use
38
38
// function() {} instead of () => {}
39
- describe ( "npm-auditer " , ( ) => {
39
+ describe ( "npm-auditor " , ( ) => {
40
40
it ( "prints full report with critical severity" , ( ) => {
41
41
const summary = report (
42
42
reportNpmCritical ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { NPMAuditReportV2 } from "audit-types";
2
2
import semver from "semver" ;
3
3
import { describe , expect , it } from "vitest" ;
4
4
import Allowlist from "../lib/allowlist.js" ;
5
- import { auditWithFullConfig , report } from "../lib/npm-auditer .js" ;
5
+ import { auditWithFullConfig , report } from "../lib/npm-auditor .js" ;
6
6
import {
7
7
config as baseConfig ,
8
8
summaryWithDefault ,
@@ -38,7 +38,7 @@ function config(
38
38
return baseConfig ( { ...additions , "package-manager" : "npm" } ) ;
39
39
}
40
40
41
- describe ( "npm7-auditer " , ( ) => {
41
+ describe ( "npm7-auditor " , ( ) => {
42
42
it ( "prints full report with critical severity" , ( ) => {
43
43
const summary = report (
44
44
reportNpmCritical ,
Original file line number Diff line number Diff line change 1
1
import { describe , expect , it } from "vitest" ;
2
2
import Allowlist from "../lib/allowlist.js" ;
3
- import { report } from "../lib/pnpm-auditer .js" ;
3
+ import { report } from "../lib/pnpm-auditor .js" ;
4
4
import {
5
5
config as baseConfig ,
6
6
summaryWithDefault ,
@@ -23,7 +23,7 @@ function config(
23
23
24
24
// To modify what slow times are, need to use
25
25
// function() {} instead of () => {}
26
- describe ( "pnpm-auditer " , ( ) => {
26
+ describe ( "pnpm-auditor " , ( ) => {
27
27
it ( "prints full report with critical severity" , ( ) => {
28
28
const summary = report (
29
29
reportPnpmCritical ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const canRunYarnBerry = semver.gte(
24
24
// To modify what slow times are, need to use
25
25
// function() {} instead of () => {}
26
26
describe (
27
- "yarn-auditer " ,
27
+ "yarn-auditor " ,
28
28
( ) => {
29
29
it ( "prints full report with critical severity" , async ( ) => {
30
30
const summary = await audit (
You can’t perform that action at this time.
0 commit comments