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.10.1 to 3.11.0

14

CHANGELOG.md

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

# [3.11.0](https://github.com/lerna/lerna/compare/v3.10.8...v3.11.0) (2019-02-08)
### Bug Fixes
* **collect-updates:** Improve logging, making ignored globs explicit ([42e4a5c](https://github.com/lerna/lerna/commit/42e4a5c))
* **collect-updates:** Match dotfiles when ignoring changes ([99eadc6](https://github.com/lerna/lerna/commit/99eadc6))
* **deps:** Explicit npmlog ^4.1.2 ([571c2e2](https://github.com/lerna/lerna/commit/571c2e2))
* **deps:** Remove unused libnpm (replaced by direct sub-packages) ([1caeb28](https://github.com/lerna/lerna/commit/1caeb28))
## [3.10.1](https://github.com/lerna/lerna/compare/v3.10.0...v3.10.1) (2019-01-09)

@@ -8,0 +22,0 @@

2

collect-updates.js
"use strict";
const log = require("libnpm/log");
const log = require("npmlog");
const describeRef = require("@lerna/describe-ref");

@@ -5,0 +5,0 @@

"use strict";
const childProcess = require("@lerna/child-process");
const log = require("libnpm/log");
const log = require("npmlog");

@@ -6,0 +6,0 @@ module.exports = hasTags;

"use strict";
const childProcess = require("@lerna/child-process");
const log = require("libnpm/log");
const log = require("npmlog");
const minimatch = require("minimatch");

@@ -12,4 +12,16 @@ const path = require("path");

function makeDiffPredicate(committish, execOpts, ignorePatterns = []) {
const ignoreFilters = new Set(ignorePatterns.map(p => minimatch.filter(`!${p}`, { matchBase: true })));
const ignoreFilters = new Set(
ignorePatterns.map(p =>
minimatch.filter(`!${p}`, {
matchBase: true,
// dotfiles inside ignored directories should also match
dot: true,
})
)
);
if (ignoreFilters.size) {
log.info("ignoring diff in paths matching", ignorePatterns);
}
return function hasDiffSinceThatIsntIgnored(node) {

@@ -19,5 +31,7 @@ const diff = diffSinceIn(committish, node.location, execOpts);

if (diff === "") {
log.silly("", "no diff found in %s", node.name);
return false;
}
log.silly("found diff in", diff);
let changedFiles = diff.split("\n");

@@ -31,2 +45,8 @@

if (changedFiles.length) {
log.verbose("filtered diff", changedFiles);
} else {
log.verbose("", "no diff found in %s (after filtering)", node.name);
}
return changedFiles.length > 0;

@@ -45,8 +65,4 @@ };

log.silly("diffSinceIn", committish, formattedLocation);
const diff = childProcess.execSync("git", args, opts);
log.silly("diff", diff);
return diff;
log.silly("checking diff", formattedLocation);
return childProcess.execSync("git", args, opts);
}
{
"name": "@lerna/collect-updates",
"version": "3.10.1",
"version": "3.11.0",
"description": "An internal Lerna tool",

@@ -35,8 +35,8 @@ "keywords": [

"@lerna/child-process": "3.3.0",
"@lerna/describe-ref": "3.10.0",
"libnpm": "^2.0.1",
"@lerna/describe-ref": "3.11.0",
"minimatch": "^3.0.4",
"npmlog": "^4.1.2",
"slash": "^1.0.0"
},
"gitHead": "d13e9016c79f4244f84100993aecae3edba957d6"
"gitHead": "45a05acf2d52a46f553fc1efadf9a32312aca82b"
}
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