Socket
Socket
Sign inDemoInstall

@lerna/command

Package Overview
Dependencies
Maintainers
4
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lerna/command - npm Package Compare versions

Comparing version 3.1.0 to 3.1.2

12

CHANGELOG.md

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

<a name="3.1.2"></a>
## [3.1.2](https://github.com/lerna/lerna/compare/v3.1.1...v3.1.2) (2018-08-20)
### Bug Fixes
* **command:** Remove redundant filteredPackages calculation ([e0a361f](https://github.com/lerna/lerna/commit/e0a361f))
<a name="3.1.0"></a>

@@ -8,0 +20,0 @@ # [3.1.0](https://github.com/lerna/lerna/compare/v3.0.6...v3.1.0) (2018-08-17)

33

index.js

@@ -11,4 +11,2 @@ "use strict";

const writeLogFile = require("@lerna/write-log-file");
const collectUpdates = require("@lerna/collect-updates");
const filterPackages = require("@lerna/filter-packages");
const ValidationError = require("@lerna/validation-error");

@@ -211,35 +209,4 @@

this.packageGraph = new PackageGraph(packages);
this.filteredPackages = filterPackages(
packages,
this.options.scope,
this.options.ignore,
this.options.private
);
});
// collectUpdates requires that filteredPackages be present prior to checking for
// updates. That's okay because it further filters based on what's already been filtered.
if (this.options.since !== undefined) {
chain = chain.then(() =>
collectUpdates(this.filteredPackages, this.packageGraph, this.execOpts, this.options)
);
chain = chain.then(updates => {
const updated = new Set(updates.map(({ pkg }) => pkg.name));
this.filteredPackages = this.filteredPackages.filter(pkg => updated.has(pkg.name));
});
}
if (this.options.includeFilteredDependents) {
chain = chain.then(() => {
this.filteredPackages = this.packageGraph.addDependents(this.filteredPackages);
});
}
if (this.options.includeFilteredDependencies) {
chain = chain.then(() => {
this.filteredPackages = this.packageGraph.addDependencies(this.filteredPackages);
});
}
return chain;

@@ -246,0 +213,0 @@ }

8

package.json
{
"name": "@lerna/command",
"version": "3.1.0",
"version": "3.1.2",
"description": "Lerna's internal base class for commands",

@@ -35,5 +35,3 @@ "keywords": [

"@lerna/child-process": "^3.0.0",
"@lerna/collect-updates": "^3.1.0",
"@lerna/filter-packages": "^3.0.0",
"@lerna/package-graph": "^3.0.0",
"@lerna/package-graph": "^3.1.2",
"@lerna/project": "^3.0.0",

@@ -47,3 +45,3 @@ "@lerna/validation-error": "^3.0.0",

},
"gitHead": "7f97c7bca038c690e2dd5d897e222fb5bca0a5e8"
"gitHead": "6abc0c95ae6fc6e613e74618d86a060ae218938c"
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc