Socket
Socket
Sign inDemoInstall

thenify

Package Overview
Dependencies
1
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.1 to 3.2.0

2

index.js
var Promise = require('native-or-bluebird')
var Promise = require('any-promise')
var assert = require('assert')

@@ -4,0 +4,0 @@

{
"name": "thenify",
"description": "Promisify a callback-based function",
"version": "3.1.1",
"version": "3.2.0",
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)",

@@ -9,8 +9,8 @@ "license": "MIT",

"dependencies": {
"native-or-bluebird": "1"
"any-promise": "^1.0.0"
},
"devDependencies": {
"bluebird": "2",
"istanbul": "0",
"mocha": "2"
"bluebird": "^3.1.1",
"istanbul": "^0.4.0",
"mocha": "^2.0.0"
},

@@ -17,0 +17,0 @@ "scripts": {

@@ -11,6 +11,6 @@

Promisify a callback-based function.
Promisify a callback-based function using [`any-promise`](https://github.com/kevinbeaty/any-promise).
- Preserves function names
- Uses a native promise implementation if available and tries to fall back to `bluebird`
- Uses a native promise implementation if available and tries to fall back to a promise implementation such as `bluebird`
- Converts multiple arguments from the callback into an `Array`

@@ -17,0 +17,0 @@ - Resulting function never deoptimizes

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc