bluefeather
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -34,3 +34,12 @@ 'use strict'; | ||
var _suppress = require('./suppress'); | ||
Object.defineProperty(exports, 'suppress', { | ||
enumerable: true, | ||
get: function () { | ||
return _interopRequireDefault(_suppress).default; | ||
} | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
//# sourceMappingURL=index.js.map |
@@ -15,17 +15,17 @@ { | ||
"devDependencies": { | ||
"ava": "^0.18.2", | ||
"babel-cli": "^6.23.0", | ||
"babel-plugin-istanbul": "^4.0.0", | ||
"babel-plugin-transform-es2015-modules-commonjs": "^6.23.0", | ||
"ava": "^0.19.1", | ||
"babel-cli": "^6.24.1", | ||
"babel-plugin-istanbul": "^4.1.1", | ||
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.1", | ||
"babel-plugin-transform-flow-strip-types": "^6.22.0", | ||
"babel-plugin-transform-object-rest-spread": "^6.23.0", | ||
"babel-preset-env": "^1.1.8", | ||
"babel-register": "^6.23.0", | ||
"coveralls": "^2.11.16", | ||
"eslint": "^3.16.0", | ||
"eslint-config-canonical": "^7.1.0", | ||
"flow-bin": "^0.39.0", | ||
"babel-preset-env": "^1.4.0", | ||
"babel-register": "^6.24.1", | ||
"coveralls": "^2.13.0", | ||
"eslint": "^3.19.0", | ||
"eslint-config-canonical": "^8.1.1", | ||
"flow-bin": "^0.44.0", | ||
"flow-copy-source": "^1.1.0", | ||
"husky": "^0.13.1", | ||
"nyc": "^10.1.2", | ||
"husky": "^0.13.3", | ||
"nyc": "^10.2.0", | ||
"semantic-release": "^6.3.6" | ||
@@ -65,3 +65,3 @@ }, | ||
}, | ||
"version": "2.2.0" | ||
"version": "2.3.0" | ||
} |
@@ -14,2 +14,3 @@ # Bluefeather | ||
* [`promisify`](#promisify) | ||
* [`suppress`](#suppress) | ||
@@ -63,1 +64,16 @@ ## Utility functions | ||
``` | ||
### `suppress` | ||
```js | ||
type SuppressType = <T: *>( | ||
ErrorConstructor: Class<Error>, | ||
promise: Promise<T> | ||
) => Promise<T | void>; | ||
/** | ||
* Suppresses errors that are instance of ErrorConstructor. | ||
*/ | ||
const suppress: SuppressType; | ||
``` |
@@ -6,1 +6,2 @@ // @flow | ||
export {default as promisify} from './promisify'; | ||
export {default as suppress} from './suppress'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
18404
23
197
78