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.2 to 3.1.3

12

CHANGELOG.md

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

<a name="3.1.3"></a>
## [3.1.3](https://github.com/lerna/lerna/compare/v3.1.2...v3.1.3) (2018-08-21)
### Bug Fixes
* **global-options:** Move env defaults to command superclass ([6d8e405](https://github.com/lerna/lerna/commit/6d8e405)), closes [#1449](https://github.com/lerna/lerna/issues/1449)
<a name="3.1.2"></a>

@@ -8,0 +20,0 @@ ## [3.1.2](https://github.com/lerna/lerna/compare/v3.1.1...v3.1.2) (2018-08-20)

34

index.js

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

});
chain = chain.then(() => this.configureEnvironment());
chain = chain.then(() => this.configureOptions());

@@ -95,2 +96,3 @@ chain = chain.then(() => this.configureProperties());

this.then = (onResolved, onRejected) => runner.then(onResolved, onRejected);
/* istanbul ignore next */
this.catch = onRejected => runner.catch(onRejected);

@@ -109,2 +111,28 @@ }

configureEnvironment() {
// eslint-disable-next-line global-require
const ci = require("is-ci");
let loglevel;
let progress;
/* istanbul ignore next */
if (ci || !process.stderr.isTTY) {
log.disableColor();
progress = false;
} else if (!process.stdout.isTTY) {
// stdout is being piped, don't log non-errors or progress bars
progress = false;
loglevel = "error";
} else if (process.stderr.isTTY) {
log.enableColor();
log.enableUnicode();
}
this._env = {
ci,
progress,
loglevel,
};
}
configureOptions() {

@@ -124,3 +152,5 @@ // Command config object normalized to "command" namespace

// Global options from `lerna.json`
this.project.config
this.project.config,
// Environmental defaults prepared in previous step
this._env
);

@@ -158,3 +188,3 @@ }

enableProgressBar() {
// istanbul ignore else
/* istanbul ignore next */
if (this.options.progress) {

@@ -161,0 +191,0 @@ this.logger.enableProgress();

5

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

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

"execa": "^0.10.0",
"is-ci": "^1.0.10",
"lodash": "^4.17.5",
"npmlog": "^4.1.2"
},
"gitHead": "6abc0c95ae6fc6e613e74618d86a060ae218938c"
"gitHead": "a656a0136d7d5d8b8bb709e2da2b8b2582036fe7"
}
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