Socket
Socket
Sign inDemoInstall

@lerna/run-lifecycle

Package Overview
Dependencies
Maintainers
2
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lerna/run-lifecycle - npm Package Compare versions

Comparing version 3.3.0 to 3.3.1

12

CHANGELOG.md

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

<a name="3.3.1"></a>
## [3.3.1](https://github.com/lerna/lerna/compare/v3.3.0...v3.3.1) (2018-09-11)
### Bug Fixes
* **run-lifecycle:** Remove repetitive error logging ([b8915e7](https://github.com/lerna/lerna/commit/b8915e7))
<a name="3.3.0"></a>

@@ -8,0 +20,0 @@ # [3.3.0](https://github.com/lerna/lerna/compare/v3.2.1...v3.3.0) (2018-09-06)

4

package.json
{
"name": "@lerna/run-lifecycle",
"version": "3.3.0",
"version": "3.3.1",
"description": "An internal Lerna tool",

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

},
"gitHead": "901e6d54a47151dfed3d6ed2912804b97d05c6b5"
"gitHead": "5da13190852897ac37349a28a0b24470ec7bd833"
}

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

err => {
// propagate the exit code
const exitCode = err.errno || 1;
// error logging has already occurred on stderr, but we need to stop the chain
log.error("lifecycle", "%j errored in %j, ejecting", stage, pkg.name);
log.error("lifecycle", "%j errored in %j, exiting %d", stage, pkg.name, exitCode);
// ensure clean logging...
err.pkg = pkg;
// ensure clean logging, avoiding spurious log dump
err.name = "ValidationError";
// ...propagate the exit code...
const exitCode = err.errno;
// (using the property our yargs.fail() handler expects :P)
// our yargs.fail() handler expects a numeric .code, not .errno
err.code = exitCode;
process.exitCode = exitCode;
// ...and send it on its merry way
// stop the chain
throw err;

@@ -56,0 +56,0 @@ }

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