diff --git a/lib/index.js b/lib/index.js index 2002f23..dcd676b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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