-
Notifications
You must be signed in to change notification settings - Fork 3.5k
fix(outdated): add dependent location in long output #8110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
wraithgar
merged 2 commits into
npm:latest
from
milaninfy:mm/outdated-include-dependent
Apr 11, 2025
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -15,6 +15,37 @@ Package Current Wanted Latest Location Depended by | |
cat:dog@^1.0.0 1.0.0 1.0.1 2.0.0 node_modules/cat prefix | ||
` | ||
|
||
exports[`test/lib/commands/outdated.js TAP dependent location --long --json > should display dependent location when using --long and --json 1`] = ` | ||
{ | ||
"dog": [ | ||
{ | ||
"current": "1.0.0", | ||
"wanted": "1.0.1", | ||
"latest": "2.0.0", | ||
"dependent": "a", | ||
"location": "{CWD}/prefix/node_modules/dog", | ||
"type": "dependencies", | ||
"dependedByLocation": "a" | ||
}, | ||
{ | ||
"current": "1.0.0", | ||
"wanted": "1.0.1", | ||
"latest": "2.0.0", | ||
"dependent": "a", | ||
"location": "{CWD}/prefix/node_modules/dog", | ||
"type": "dependencies", | ||
"dependedByLocation": "nest/a" | ||
} | ||
] | ||
} | ||
` | ||
|
||
exports[`test/lib/commands/outdated.js TAP dependent location --long > should display dependent location when using --long 1`] = ` | ||
Package Current Wanted Latest Location Depended by Package Type Homepage Depended By Location | ||
dog 1.0.0 1.0.1 2.0.0 node_modules/dog [email protected] dependencies a | ||
dog 1.0.0 1.0.1 2.0.0 node_modules/dog a@npm:[email protected] dependencies nest/a | ||
` | ||
|
||
exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --all > must match snapshot 1`] = ` | ||
Package Current Wanted Latest Location Depended by | ||
cat 1.0.0 1.0.1 1.0.1 node_modules/cat prefix | ||
|
@@ -31,29 +62,33 @@ exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated | |
"latest": "1.0.1", | ||
"dependent": "prefix", | ||
"location": "{CWD}/prefix/node_modules/cat", | ||
"type": "dependencies" | ||
"type": "dependencies", | ||
"dependedByLocation": "" | ||
}, | ||
"chai": { | ||
"current": "1.0.0", | ||
"wanted": "1.0.1", | ||
"latest": "1.0.1", | ||
"dependent": "prefix", | ||
"location": "{CWD}/prefix/node_modules/chai", | ||
"type": "peerDependencies" | ||
"type": "peerDependencies", | ||
"dependedByLocation": "" | ||
}, | ||
"dog": { | ||
"current": "1.0.1", | ||
"wanted": "1.0.1", | ||
"latest": "2.0.0", | ||
"dependent": "prefix", | ||
"location": "{CWD}/prefix/node_modules/dog", | ||
"type": "dependencies" | ||
"type": "dependencies", | ||
"dependedByLocation": "" | ||
}, | ||
"theta": { | ||
"wanted": "1.0.1", | ||
"latest": "1.0.1", | ||
"dependent": "prefix", | ||
"type": "dependencies" | ||
"type": "dependencies", | ||
"dependedByLocation": "" | ||
} | ||
} | ||
` | ||
|
@@ -90,7 +125,7 @@ exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated | |
` | ||
|
||
exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --long > must match snapshot 1`] = ` | ||
Package Current Wanted Latest Location Depended by Package Type Homepage | ||
Package Current Wanted Latest Location Depended by Package Type Homepage Depended By Location | ||
cat 1.0.0 1.0.1 1.0.1 node_modules/cat prefix dependencies | ||
chai 1.0.0 1.0.1 1.0.1 node_modules/chai prefix peerDependencies | ||
dog 1.0.1 1.0.1 2.0.0 node_modules/dog prefix dependencies | ||
|
@@ -120,10 +155,10 @@ exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated | |
` | ||
|
||
exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --parseable --long > must match snapshot 1`] = ` | ||
{CWD}/prefix/node_modules/cat:[email protected]:[email protected]:[email protected]:prefix:dependencies: | ||
{CWD}/prefix/node_modules/chai:[email protected]:[email protected]:[email protected]:prefix:peerDependencies: | ||
{CWD}/prefix/node_modules/dog:[email protected]:[email protected]:[email protected]:prefix:dependencies: | ||
:[email protected]:MISSING:[email protected]:prefix:dependencies: | ||
{CWD}/prefix/node_modules/cat:[email protected]:[email protected]:[email protected]:prefix:dependencies:: | ||
{CWD}/prefix/node_modules/chai:[email protected]:[email protected]:[email protected]:prefix:peerDependencies:: | ||
{CWD}/prefix/node_modules/dog:[email protected]:[email protected]:[email protected]:prefix:dependencies:: | ||
:[email protected]:MISSING:[email protected]:prefix:dependencies:: | ||
` | ||
|
||
exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --parseable > must match snapshot 1`] = ` | ||
|
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.