Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

universalify

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

universalify - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

index.js

@@ -23,4 +23,4 @@ 'use strict'

if (typeof cb !== 'function') return fn.apply(this, arguments)
else fn.apply(this, arguments).then(r => cb(null, r)).catch(cb)
else fn.apply(this, arguments).then(r => cb(null, r), cb)
}, 'name', { value: fn.name })
}
{
"name": "universalify",
"version": "0.1.0",
"version": "0.1.1",
"description": "Make a callback- or promise-based function support both promises and callbacks.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -39,3 +39,3 @@ # universalify

console.log(result)
// -> Hello World!
// -> Hi!
})

@@ -68,3 +68,3 @@ ```

console.log(result)
// -> Hello World!
// -> Hi!
})

@@ -71,0 +71,0 @@ ```

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