Socket
Socket
Sign inDemoInstall

@lerna/collect-updates

Package Overview
Dependencies
Maintainers
2
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lerna/collect-updates - npm Package Compare versions

Comparing version 3.16.5 to 3.18.0

11

CHANGELOG.md

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

# [3.18.0](https://github.com/lerna/lerna/compare/v3.17.0...v3.18.0) (2019-10-15)
### Features
* **filter-options:** Add `--exclude-dependents` option ([ff50e29](https://github.com/lerna/lerna/commit/ff50e299aa990b121e1bd987548252376177c68a)), closes [#2198](https://github.com/lerna/lerna/issues/2198)
## [3.16.5](https://github.com/lerna/lerna/compare/v3.16.4...v3.16.5) (2019-10-07)

@@ -8,0 +19,0 @@

4

collect-updates.js

@@ -16,3 +16,3 @@ "use strict";

function collectUpdates(filteredPackages, packageGraph, execOpts, commandOptions) {
const { forcePublish, conventionalCommits, conventionalGraduate } = commandOptions;
const { forcePublish, conventionalCommits, conventionalGraduate, excludeDependents } = commandOptions;

@@ -73,2 +73,3 @@ // If --conventional-commits and --conventional-graduate are both set, ignore --force-publish

onInclude: name => log.verbose("updated", name),
excludeDependents,
});

@@ -91,3 +92,4 @@ }

onInclude: name => log.verbose("updated", name),
excludeDependents,
});
}

@@ -7,3 +7,3 @@ "use strict";

function collectPackages(packages, { isCandidate = () => true, onInclude } = {}) {
function collectPackages(packages, { isCandidate = () => true, onInclude, excludeDependents } = {}) {
const candidates = new Set();

@@ -17,4 +17,5 @@

const dependents = collectDependents(candidates);
dependents.forEach(node => candidates.add(node));
if (!excludeDependents) {
collectDependents(candidates).forEach(node => candidates.add(node));
}

@@ -21,0 +22,0 @@ // The result should always be in the same order as the input

{
"name": "@lerna/collect-updates",
"version": "3.16.5",
"version": "3.18.0",
"description": "An internal Lerna tool",

@@ -41,3 +41,3 @@ "keywords": [

},
"gitHead": "f0574092a2db90142b3a27ec1a4941cddbdcdf62"
"gitHead": "0ea8fb136f408fb4de3fd39bb7069d976235d53d"
}
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