Socket
Socket
Sign inDemoInstall

z-core

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.0 to 0.6.2

35

lib/index.js

@@ -89,2 +89,37 @@ // Generated by CoffeeScript 1.7.1

});
Z.mixinAsync = proc(function(hash) {
pairs(hash).forEach(function(_arg) {
var func, name, oldOne;
name = _arg[0], func = _arg[1];
oldOne = mixedIn[name];
return mixedIn[name] = function() {
var args;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
return new Promise((function(_this) {
return function(resolve, reject) {
var context, e;
context = {
value: _this.value
};
if (oldOne) {
context.base = oldOne;
}
context.done = function(err, value) {
if (err) {
return reject(err);
}
return resolve(value);
};
try {
return func.apply(context, args);
} catch (_error) {
e = _error;
return reject(e);
}
};
})(this));
};
});
return updateMixinObj();
});
Z.bindSync = function(func, context) {

@@ -91,0 +126,0 @@ return function() {

2

package.json

@@ -12,3 +12,3 @@ {

],
"version": "0.6.0",
"version": "0.6.2",
"author": "Jakob Mattsson <jakob.mattsson@gmail.com> (jakobm.com)",

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc