New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

promise-callbacks

Package Overview
Dependencies
Maintainers
23
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promise-callbacks - npm Package Compare versions

Comparing version 3.2.1 to 3.2.2

1

CHANGELOG.md
## 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`

2

package.json
{
"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;
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc