promise-callbacks
Advanced tools
Comparing version 3.2.1 to 3.2.2
## Release History | ||
* 3.2.2 Actually use explicit exports per #16. | ||
* 3.2.1 Use explicit exports per #16. | ||
@@ -4,0 +5,0 @@ * 3.2.0 Add `defer` function, similar to `$.Deferred` |
{ | ||
"name": "promise-callbacks", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "Utilities to help convert a callback-using codebase to promises.", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -8,2 +8,3 @@ 'use strict'; | ||
const promisify = require('./promisify'); | ||
const statics = require('./statics'); | ||
@@ -20,11 +21,18 @@ function patchPromise() { | ||
module.exports = Object.assign({ | ||
patchPromise, | ||
unpatchPromise, | ||
deferred, | ||
defer, | ||
promisify, | ||
promisifyMethod: promisify.method, | ||
promisifyMethods: promisify.methods, | ||
promisifyAll: promisify.all, | ||
}, require('./statics')); | ||
// For some reason, rollup-plugin-commonjs wants this form instead of one embedded in the | ||
// module.exports object definition. | ||
exports.patchPromise = patchPromise; | ||
exports.unpatchPromise = unpatchPromise; | ||
exports.deferred = deferred; | ||
exports.defer = defer; | ||
exports.promisify = promisify; | ||
exports.promisifyMethod = promisify.method, | ||
exports.promisifyMethods = promisify.methods, | ||
exports.promisifyAll = promisify.all, | ||
exports.asCallback = statics.asCallback; | ||
exports.delay = statics.delay; | ||
exports.immediate = statics.immediate; | ||
exports.nextTick = statics.nextTick; | ||
exports.waitOn = statics.waitOn; | ||
exports.withTimeout = statics.withTimeout; | ||
exports.wrapAsync = statics.wrapAsync; |
40814
894