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

yaku

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yaku - npm Package Compare versions

Comparing version 0.11.6 to 0.11.7

10

lib/callbackify.js

@@ -10,12 +10,16 @@ var _ = require("./_");

if (!_.isFunction(cb)) {
var isFn = _.isFunction(cb);
if (!isFn) {
args.push(cb);
return fn.apply(self, args);
}
if (arguments.length === 1) {
if (!isFn && arguments.length === 1) {
args = [cb];
cb = null;
}
return fn.apply(self, args).then(function (val) {
return typeof cb === "function" ? cb(null, val) : void 0;
return isFn ? cb(null, val) : void 0;
})["catch"](function (err) {

@@ -22,0 +26,0 @@ if (cb) {

/*
Yaku v0.11.6
Yaku v0.11.7
(c) 2015 Yad Smood. http://ysmood.org

@@ -4,0 +4,0 @@ License MIT

{
"name": "yaku",
"version": "0.11.6",
"version": "0.11.7",
"description": "A light-weight ES6 Promises/A+ implementation that doesn't hurt.",

@@ -5,0 +5,0 @@ "main": "lib/yaku.js",

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