hard-rejection
Advanced tools
Comparing version 0.1.0 to 1.0.0
@@ -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) |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4469
0
78