Socket
Socket
Sign inDemoInstall

hard-rejection

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 1.0.0

2

index.js

@@ -20,4 +20,4 @@ 'use strict';

log(err.stack);
process.exit(1); // eslint-disable-line xo/no-process-exit
process.exit(1); // eslint-disable-line unicorn/no-process-exit
});
};
{
"name": "hard-rejection",
"version": "0.1.0",
"version": "1.0.0",
"description": "Make unhandled promise rejections fail hard right away instead of the default silent fail",

@@ -42,5 +42,5 @@ "license": "MIT",

"ava": "*",
"execa": "^0.4.0",
"execa": "^0.6.0",
"xo": "*"
}
}

@@ -25,3 +25,3 @@ # hard-rejection [![Build Status](https://travis-ci.org/sindresorhus/hard-rejection.svg?branch=master)](https://travis-ci.org/sindresorhus/hard-rejection)

const hardRejection = require('hard-rejection');
const promiseFn = require('promise-fn');
const promiseFn = require('some-promise-fn');

@@ -37,3 +37,3 @@ // install the handler

```js
const promiseFn = require('promise-fn');
const promiseFn = require('some-promise-fn');

@@ -71,4 +71,10 @@ function error(err) {

## Related
- [loud-rejection](https://github.com/sindresorhus/loud-rejection) - Make unhandled promise rejections fail loudly instead of the default silent fail
- [More…](https://github.com/sindresorhus/promise-fun)
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)
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