Skip to content

Commit

Permalink
docs: Fix contents of function description
Browse files Browse the repository at this point in the history
The old version was wrong, the new is correct.
  • Loading branch information
RSeidelsohn committed Apr 11, 2023
1 parent 3c35163 commit cb0e96a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,8 @@ const recursivelyCollectAllDependencies = (options) => {
* ! This function has a wanted sideeffect, as it modifies the json object that is passed by reference.
*
* The depth attribute set in the options parameter here - which is defined by setting the `--direct` flag - is of
* no use with npm > 2, as the newer npm versions flatten all dependencies into one single directory. So in
* order to making `--direct` work with newer versions of npm, we need to filter out all non-dependencies from
* no use with npm < 3, as the older npm versions flattened all dependencies into one single directory. So in
* order to making `--direct` work with older versions of npm, we need to filter out all non-dependencies from
* the json result.
*/
// TODO: Add tests for this function
Expand Down

0 comments on commit cb0e96a

Please sign in to comment.