Socket
Socket
Sign inDemoInstall

catch-and-match

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.5 to 0.2.7

src/index.js

34

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc