Comparing version 3.1.1 to 3.1.2
@@ -5,2 +5,7 @@ # Change Log | ||
<a name="3.1.2"></a> | ||
## [3.1.2](https://github.com/untool/mixinable/compare/v3.1.1...v3.1.2) (2018-07-24) | ||
<a name="3.1.1"></a> | ||
@@ -7,0 +12,0 @@ ## [3.1.1](https://github.com/untool/mixinable/compare/v3.1.0...v3.1.1) (2018-07-24) |
46
index.js
@@ -14,3 +14,3 @@ 'use strict'; | ||
exports.callable = exports.override = function override(functions) { | ||
exports.override = exports.callable = function override(functions) { | ||
var args = argsToArray(arguments).slice(1); | ||
@@ -50,16 +50,38 @@ var fn = functions.slice().pop(); | ||
exports.async = { | ||
callable: asynchronize(exports.callable), | ||
override: asynchronize(exports.override), | ||
parallel: asynchronize(exports.parallel), | ||
pipe: asynchronize(exports.pipe), | ||
compose: asynchronize(exports.compose), | ||
callable: function callableAsync() { | ||
return asynchronize(exports.override).apply(null, arguments); | ||
}, | ||
override: function overrideAsync() { | ||
return asynchronize(exports.override).apply(null, arguments); | ||
}, | ||
parallel: function parallelAsync() { | ||
return asynchronize(exports.parallel).apply(null, arguments); | ||
}, | ||
pipe: function pipeAsync() { | ||
return asynchronize(exports.pipe).apply(null, arguments); | ||
}, | ||
compose: function composeAsync() { | ||
return asynchronize(exports.compose).apply(null, arguments); | ||
}, | ||
}; | ||
exports.sync = { | ||
callable: synchronize(exports.callable), | ||
override: synchronize(exports.override), | ||
sequence: synchronize(exports.parallel), | ||
parallel: synchronize(exports.parallel), | ||
pipe: synchronize(exports.pipe), | ||
compose: synchronize(exports.compose), | ||
callable: function callableSync() { | ||
return synchronize(exports.override).apply(null, arguments); | ||
}, | ||
override: function overrideSync() { | ||
return synchronize(exports.override).apply(null, arguments); | ||
}, | ||
sequence: function sequenceSync() { | ||
return synchronize(exports.parallel).apply(null, arguments); | ||
}, | ||
parallel: function parallelSync() { | ||
return synchronize(exports.parallel).apply(null, arguments); | ||
}, | ||
pipe: function pipeSync() { | ||
return synchronize(exports.pipe).apply(null, arguments); | ||
}, | ||
compose: function composeSync() { | ||
return synchronize(exports.compose).apply(null, arguments); | ||
}, | ||
}; | ||
@@ -66,0 +88,0 @@ |
{ | ||
"name": "mixinable", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "Functional JavaScript Mixin Utility", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
206077
811