Socket
Socket
Sign inDemoInstall

@lerna/listable

Package Overview
Dependencies
49
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 3.6.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [3.6.0](https://github.com/lerna/lerna/compare/v3.5.1...v3.6.0) (2018-12-07)
### Features
* **listable:** Add --toposort option ([b387881](https://github.com/lerna/lerna/commit/b387881)), closes [#1652](https://github.com/lerna/lerna/issues/1652)
<a name="3.0.0"></a>

@@ -8,0 +19,0 @@ # [3.0.0](https://github.com/lerna/lerna/compare/v3.0.0-rc.0...v3.0.0) (2018-08-10)

16

lib/listable-format.js

@@ -6,2 +6,3 @@ "use strict";

const path = require("path");
const batchPackages = require("@lerna/batch-packages");

@@ -36,7 +37,20 @@ module.exports = listableFormat;

showParseable: options.parseable,
isTopological: options.toposort,
};
}
function flatBatched(pkgList) {
const batches = batchPackages(pkgList);
return batches.reduce((acc, batch) => acc.concat(batch), []);
}
function filterResultList(pkgList, viewOptions) {
return viewOptions.showAll ? pkgList.slice() : pkgList.filter(pkg => !pkg.private);
let result = viewOptions.showAll ? pkgList.slice() : pkgList.filter(pkg => !pkg.private);
if (viewOptions.isTopological) {
result = flatBatched(result);
}
return result;
}

@@ -43,0 +57,0 @@

@@ -30,3 +30,8 @@ "use strict";

},
toposort: {
group: "Command Options:",
describe: "Sort packages in topological order instead of lexical by directory",
type: "boolean",
},
});
}

5

package.json
{
"name": "@lerna/listable",
"version": "3.0.0",
"version": "3.6.0",
"description": "Shared logic for listing package information",

@@ -31,6 +31,7 @@ "keywords": [

"dependencies": {
"@lerna/batch-packages": "^3.6.0",
"chalk": "^2.3.1",
"columnify": "^1.5.4"
},
"gitHead": "0c40a17a7cd4e9acd8e7ec33ffacd1c1acef5dc6"
"gitHead": "8cc3196014f6fe8c9b41477b975c527d017a3daf"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc