broccoli-merge-trees
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -5,4 +5,7 @@ # master | ||
* Upgrade to node-merge-trees ^2.0.0; this requires Node 6.0.0 or greater | ||
* Upgrade to node-merge-trees ^2.0.0; this reduces code complexity and fixes an | ||
obscure bug | ||
* Bump minimum Node version to 6.0.0 | ||
# 2.0.0 | ||
@@ -9,0 +12,0 @@ |
13
index.js
@@ -21,2 +21,3 @@ 'use strict'; | ||
}); | ||
this.inputNodes = inputNodes; | ||
this.options = options; | ||
@@ -35,3 +36,13 @@ } | ||
this.mergeTrees.merge(); | ||
try { | ||
this.mergeTrees.merge(); | ||
} catch(err) { | ||
if (err !== null && typeof err === 'object') { | ||
let nodesList = this.inputNodes.map((node, i) => ` ${i+1}. ${node.toString()}`).join('\n'); | ||
let message = `${this.toString()} error while merging the following:\n${nodesList}`; | ||
err.message = `${message}\n${err.message}`; | ||
} | ||
throw err; | ||
} | ||
}; |
{ | ||
"name": "broccoli-merge-trees", | ||
"description": "Broccoli plugin to merge multiple trees into one", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"author": "Jo Liss <joliss42@gmail.com>", | ||
@@ -28,7 +28,7 @@ "main": "index.js", | ||
"devDependencies": { | ||
"broccoli-fixture": "^0.1.0", | ||
"chai": "^3.4.0", | ||
"chai-as-promised": "^5.1.0", | ||
"mocha": "^2.3.3", | ||
"mocha-eslint": "^3.0.1" | ||
"broccoli-fixture": "^1.0.0", | ||
"chai": "^4.1.2", | ||
"chai-as-promised": "^7.1.1", | ||
"mocha": "^5.0.1", | ||
"mocha-eslint": "^4.1.0" | ||
}, | ||
@@ -35,0 +35,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6955
41