Socket
Socket
Sign inDemoInstall

@lerna/collect-updates

Package Overview
Dependencies
Maintainers
4
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.0.0-beta.21 to 3.0.0-rc.0

LICENSE

17

CHANGELOG.md

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

<a name="3.0.0-rc.0"></a>
# [3.0.0-rc.0](https://github.com/lerna/lerna/compare/v3.0.0-beta.21...v3.0.0-rc.0) (2018-07-27)
### Code Refactoring
* **collect-updates:** Make argument signature explicit ([e6ba19f](https://github.com/lerna/lerna/commit/e6ba19f))
### BREAKING CHANGES
* **collect-updates:** Instead of an opaque command instance, distinct positional arguments are required.
<a name="3.0.0-beta.21"></a>

@@ -8,0 +25,0 @@ # [3.0.0-beta.21](https://github.com/lerna/lerna/compare/v3.0.0-beta.20...v3.0.0-beta.21) (2018-05-12)

25

collect-updates.js
"use strict";
const log = require("npmlog");
const childProcess = require("@lerna/child-process");

@@ -13,9 +14,3 @@ const semver = require("semver");

function collectUpdates({
filteredPackages,
packageGraph,
options: { canary, cdVersion, forcePublish, ignoreChanges, since },
execOpts,
logger,
}) {
function collectUpdates(filteredPackages, packageGraph, execOpts, commandOptions) {
const packages =

@@ -26,8 +21,6 @@ filteredPackages.length === packageGraph.size

logger.info("", "Checking for updated packages...");
let committish = commandOptions.since;
let committish = since;
if (hasTags(execOpts)) {
if (canary) {
if (commandOptions.canary) {
const sha = childProcess.execSync("git", ["rev-parse", "--short", "HEAD"], execOpts);

@@ -44,5 +37,5 @@

logger.info("", `Comparing with ${committish || "initial commit"}.`);
log.info("", `Looking for changed packages since ${committish || "initial commit"}.`);
const forced = getForcedPackages(forcePublish);
const forced = getForcedPackages(commandOptions.forcePublish);
let candidates;

@@ -55,4 +48,4 @@

const hasDiff = makeDiffPredicate(committish, execOpts, ignoreChanges);
const needsBump = (cdVersion || "").startsWith("pre")
const hasDiff = makeDiffPredicate(committish, execOpts, commandOptions.ignoreChanges);
const needsBump = (commandOptions.cdVersion || "").startsWith("pre")
? () => false

@@ -77,3 +70,3 @@ : /* skip packages that have not been previously prereleased */

if (candidates.has(node)) {
logger.verbose("updated", name);
log.verbose("updated", name);

@@ -80,0 +73,0 @@ updates.push(node);

{
"name": "@lerna/collect-updates",
"version": "3.0.0-beta.21",
"description": "TODO",
"version": "3.0.0-rc.0",
"description": "An internal Lerna tool",
"keywords": [

@@ -34,3 +34,3 @@ "lerna",

"dependencies": {
"@lerna/child-process": "^3.0.0-beta.21",
"@lerna/child-process": "^3.0.0-rc.0",
"minimatch": "^3.0.4",

@@ -41,3 +41,3 @@ "npmlog": "^4.1.2",

},
"gitHead": "ce5c4842e5c927beaa13779c6429a8d7c5b5a933"
"gitHead": "1ab24c152d3ff5c2b9453bcaafeb4b5e432b2410"
}
# `@lerna/collect-updates`
> description TODO
> An internal Lerna tool
## Usage
TODO
You probably shouldn't, at least directly.
Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
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