Socket
Socket
Sign inDemoInstall

thenify

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thenify - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

6

index.js

@@ -17,3 +17,3 @@

assert(typeof $$__fn__$$ === 'function')
return eval(createWraper($$__fn__$$.name))
return eval(createWrapper($$__fn__$$.name.replace(/\s|bound(?!$)/g,'')))
}

@@ -31,3 +31,3 @@

assert(typeof $$__fn__$$ === 'function')
return eval(createWraper($$__fn__$$.name, true))
return eval(createWrapper($$__fn__$$.name, true))
}

@@ -46,3 +46,3 @@

function createWraper(name, withCallback) {
function createWrapper(name, withCallback) {
withCallback = withCallback ?

@@ -49,0 +49,0 @@ 'var lastType = typeof arguments[len - 1]\n'

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

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -10,3 +10,2 @@

[![Downloads][downloads-image]][downloads-url]
[![Gittip][gittip-image]][gittip-url]

@@ -38,3 +37,3 @@ Promisify a callback-based function.

```js
var thenify = require('thenify').withcallback;
var thenify = require('thenify').withCallback;

@@ -69,3 +68,1 @@ var somethingAsync = thenify(function somethingAsync(a, b, c, callback) {

[downloads-url]: https://npmjs.org/package/thenify
[gittip-image]: https://img.shields.io/gratipay/jonathanong.svg?style=flat-square
[gittip-url]: https://gratipay.com/jonathanong/
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