-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update console output and add some tests
- Loading branch information
Showing
3 changed files
with
183 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,15 +109,15 @@ audited 1 package in 0s | |
@npmcli/[email protected] (https://verdaccio-clone.org) | ||
Someone might have tampered with the package since it was published on the registry (monster-in-the-middle attack)! | ||
Someone might have tampered with this package since it was published on the registry! | ||
` | ||
|
||
exports[`test/lib/commands/audit.js TAP audit signatures third-party registry with keys and missing signatures errors > must match snapshot 1`] = ` | ||
audited 1 package in 0s | ||
1 package has a missing registry signature but the registry is providing signing keys | ||
run \`npm audit signatures --missing\` for details | ||
run \`npm audit signatures --log-missing-names\` for details | ||
` | ||
|
||
exports[`test/lib/commands/audit.js TAP audit signatures third-party registry with keys and signatures > must match snapshot 1`] = ` | ||
|
@@ -133,13 +133,13 @@ exports[`test/lib/commands/audit.js TAP audit signatures with both invalid and m | |
audited 2 packages in xxx | ||
1 package has a missing registry signature but the registry is providing signing keys | ||
run \`npm audit signatures --missing\` for details | ||
run \`npm audit signatures --log-missing-names\` for details | ||
1 package has an invalid registry signature: | ||
[email protected] | ||
Someone might have tampered with the package since it was published on the registry (monster-in-the-middle attack)! | ||
Someone might have tampered with this package since it was published on the registry! | ||
` | ||
|
||
|
@@ -151,10 +151,10 @@ verified registry signatures, audited 1 package in 0s | |
exports[`test/lib/commands/audit.js TAP audit signatures with color output enabled with both valid and missing signatures > must match snapshot 1`] = ` | ||
audited 2 packages in xxx | ||
1 packages have [1mverified[22m registry signatures | ||
1 package has a [1mverified[22m registry signature | ||
1 package has a [1m[35mmissing[39m[22m registry signature but the registry is providing signing keys | ||
run \`npm audit signatures --missing\` for details | ||
run \`npm audit signatures --log-missing-names\` for details | ||
` | ||
|
||
exports[`test/lib/commands/audit.js TAP audit signatures with color output enabled with invalid signatures > must match snapshot 1`] = ` | ||
|
@@ -164,7 +164,7 @@ audited 1 package in 0s | |
[[email protected][39m | ||
Someone might have tampered with the package since it was published on the registry (monster-in-the-middle attack)! | ||
Someone might have tampered with this package since it was published on the registry! | ||
` | ||
|
||
|
@@ -176,15 +176,15 @@ audited 2 packages in xxx | |
[[email protected][39m | ||
[[email protected][39m | ||
Someone might have tampered with the packages since it was published on the registry (monster-in-the-middle attack)! | ||
Someone might have tampered with these packages since they where published on the registry! | ||
` | ||
|
||
exports[`test/lib/commands/audit.js TAP audit signatures with color output enabled with multiple missing signatures > must match snapshot 1`] = ` | ||
audited 2 packages in xxx | ||
2 packages have [1m[35mmissing[39m[22m registry signatures but the registry is providing signing keys | ||
run \`npm audit signatures --missing\` for details | ||
run \`npm audit signatures --log-missing-names\` for details | ||
` | ||
|
||
exports[`test/lib/commands/audit.js TAP audit signatures with invalid signatures > must match snapshot 1`] = ` | ||
|
@@ -194,15 +194,15 @@ audited 1 package in 0s | |
[email protected] | ||
Someone might have tampered with the package since it was published on the registry (monster-in-the-middle attack)! | ||
Someone might have tampered with this package since it was published on the registry! | ||
` | ||
|
||
exports[`test/lib/commands/audit.js TAP audit signatures with keys but missing signature > must match snapshot 1`] = ` | ||
audited 1 package in 0s | ||
1 package has a missing registry signature but the registry is providing signing keys | ||
run \`npm audit signatures --missing\` for details | ||
run \`npm audit signatures --log-missing-names\` for details | ||
` | ||
|
||
exports[`test/lib/commands/audit.js TAP audit signatures with multiple invalid signatures > must match snapshot 1`] = ` | ||
|
@@ -213,24 +213,37 @@ audited 2 packages in xxx | |
[email protected] | ||
[email protected] | ||
Someone might have tampered with the packages since it was published on the registry (monster-in-the-middle attack)! | ||
Someone might have tampered with these packages since they where published on the registry! | ||
` | ||
|
||
exports[`test/lib/commands/audit.js TAP audit signatures with multiple missing signatures > must match snapshot 1`] = ` | ||
audited 2 packages in xxx | ||
2 packages have missing registry signatures but the registry is providing signing keys | ||
run \`npm audit signatures --missing\` for details | ||
run \`npm audit signatures --log-missing-names\` for details | ||
` | ||
|
||
exports[`test/lib/commands/audit.js TAP audit signatures with multiple valid signatures and one invalid > must match snapshot 1`] = ` | ||
audited 3 packages in xxx | ||
2 packages have verified registry signatures | ||
1 package has an invalid registry signature: | ||
[email protected] | ||
Someone might have tampered with this package since it was published on the registry! | ||
` | ||
|
||
exports[`test/lib/commands/audit.js TAP audit signatures with valid and missing signatures > must match snapshot 1`] = ` | ||
audited 2 packages in xxx | ||
1 packages have verified registry signatures | ||
1 package has a verified registry signature | ||
1 package has a missing registry signature but the registry is providing signing keys | ||
run \`npm audit signatures --missing\` for details | ||
run \`npm audit signatures --log-missing-names\` for details | ||
` | ||
|
||
exports[`test/lib/commands/audit.js TAP audit signatures with valid signatures > must match snapshot 1`] = ` | ||
|
Oops, something went wrong.