catch-and-match
Advanced tools
Comparing version 0.2.5 to 0.2.7
{ | ||
"name": "catch-and-match", | ||
"version": "0.2.5", | ||
"version": "0.2.7", | ||
"description": "Assert an error thrown (a)synchronously by a function.", | ||
@@ -12,6 +12,6 @@ "author": "Sam Gluck <sdgluck@gmail.com>", | ||
"scripts": { | ||
"test": "node ./node_modules/mocha/bin/_mocha test", | ||
"lint": "eslint ./src", | ||
"test": "npm run -s lint && node ./node_modules/mocha/bin/_mocha test", | ||
"lint": "standard", | ||
"build": "babel ./src --out-dir ./", | ||
"prepublish": "npm run -s lint && npm run build" | ||
"prepublish": "npm run -s lint && npm test && npm run build" | ||
}, | ||
@@ -41,26 +41,8 @@ "bugs": { | ||
"babel-preset-stage-0": "^6.3.13", | ||
"eslint": "^1.10.3", | ||
"eslint-config-airbnb": "^2.1.1", | ||
"eslint-config-airplus": "^1.0.6", | ||
"eslint-plugin-react": "^3.13.1", | ||
"mocha": "^2.3.4" | ||
"mocha": "^2.3.4", | ||
"standard": "^6.0.5" | ||
}, | ||
"eslintConfig": { | ||
"root": true, | ||
"extends": [ | ||
"airbnb", | ||
"airplus" | ||
], | ||
"env": { | ||
"browser": true, | ||
"node": false | ||
}, | ||
"rules": { | ||
"space-before-function-paren": [2, "always"], | ||
"padded-blocks": [1, "never"], | ||
"object-curly-spacing": [2, "always"], | ||
"brace-style": [2, "stroustrup"], | ||
"consistent-return": 0 | ||
} | ||
"standard": { | ||
"parser": "babel-eslint" | ||
} | ||
} |
@@ -9,2 +9,3 @@ # catch-and-match | ||
<a href="https://travis-ci.org/sdgluck/catch-and-match"><img alt="CI build status" src="https://travis-ci.org/sdgluck/catch-and-match.svg"></a> | ||
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/) | ||
@@ -37,3 +38,3 @@ ## Install | ||
}); | ||
Replace catching a rejected Promise | ||
@@ -47,3 +48,3 @@ | ||
throw err; | | ||
} | | ||
} | | ||
}); | | ||
@@ -142,2 +143,1 @@ }); | ||
}); | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
16619
6
9
218