flora-errors
Advanced tools
Comparing version 0.9.0 to 0.9.1
@@ -103,8 +103,7 @@ 'use strict'; | ||
error.message = err.message; | ||
error.stack = err.stack.split(/\r?\n/); | ||
if (err.stack) error.stack = err.stack.split(/\r?\n/); | ||
if (err.info) { | ||
Object.keys(err.info).forEach((key) => { | ||
if (!has(error, key) | ||
&& has(err.info, key)) error[key] = err.info[key]; | ||
Object.keys(err.info).forEach(key => { | ||
if (!has(error, key) && has(err.info, key)) error[key] = err.info[key]; | ||
}); | ||
@@ -111,0 +110,0 @@ } |
{ | ||
"name": "flora-errors", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"description": "Error definitions for Flora", | ||
"main": "index.js", | ||
"scripts": { | ||
"bamboo": "mocha -R mocha-bamboo-reporter", | ||
"test": "mocha", | ||
"lint": "eslint index.js" | ||
"test": "eslint . && mocha", | ||
"lint": "eslint ." | ||
}, | ||
"pre-commit": "test", | ||
"author": { | ||
@@ -36,9 +36,10 @@ "name": "BörseGo AG", | ||
"devDependencies": { | ||
"@types/chai": "^4.1.2", | ||
"@types/chai": "^4.1.7", | ||
"chai": "^4.1.7", | ||
"eslint": "^5.8.0", | ||
"eslint-config-airbnb-base": "^13.1.0", | ||
"eslint-plugin-import": "^2.7.0", | ||
"eslint-config-prettier": "^3.3.0", | ||
"eslint-plugin-prettier": "^3.0.0", | ||
"mocha": "^5.0.4", | ||
"mocha-bamboo-reporter": "^1.1.0" | ||
"pre-commit": "^1.2.2", | ||
"prettier": "^1.15.2" | ||
}, | ||
@@ -45,0 +46,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
9
7543
8
104