Comparing version 1.4.0 to 1.5.0
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="1.5.0"></a> | ||
# [1.5.0](https://github.com/untool/mixinable/compare/v1.4.0...v1.5.0) (2018-03-07) | ||
### Features | ||
* add sync.sequence export ([b1d7390](https://github.com/untool/mixinable/commit/b1d7390)) | ||
<a name="1.4.0"></a> | ||
@@ -7,0 +17,0 @@ # [1.4.0](https://github.com/untool/mixinable/compare/v1.3.0...v1.4.0) (2018-03-06) |
'use strict'; | ||
// main export | ||
module.exports = exports = function define (strategies) { | ||
@@ -76,2 +78,5 @@ return function mixin () { | ||
}, | ||
sequence: function sequenceSync () { | ||
return ensureSync(exports.parallel.apply(null, arguments)); | ||
}, | ||
parallel: function parallelSync () { | ||
@@ -78,0 +83,0 @@ return ensureSync(exports.parallel.apply(null, arguments)); |
{ | ||
"name": "mixinable", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "Functional JavaScript Mixin Utility", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
10
test.js
@@ -24,2 +24,3 @@ 'use strict'; | ||
t.equal(typeof sync.pipe, 'function', 'sync.pipe is a function'); | ||
t.equal(typeof sync.sequence, 'function', 'sync.sequence is a function'); | ||
t.equal(typeof sync.compose, 'function', 'sync.compose is a function'); | ||
@@ -480,3 +481,4 @@ t.end(); | ||
baz: sync.pipe, | ||
qux: sync.compose | ||
qux: sync.sequence, | ||
quz: sync.compose | ||
})({ | ||
@@ -486,3 +488,4 @@ foo: function () { return Promise.resolve(); }, | ||
baz: function () { return Promise.resolve(); }, | ||
qux: function () { return Promise.resolve(); } | ||
qux: function () { return Promise.resolve(); }, | ||
quz: function () { return Promise.resolve(); } | ||
})(); | ||
@@ -492,3 +495,4 @@ t.throws(instance.foo, 'override throws if result is a promise'); | ||
t.throws(instance.baz, 'pipe throws if result is a promise'); | ||
t.throws(instance.qux, 'compose throws if result is a promise'); | ||
t.throws(instance.qux, 'sequence throws if result is a promise'); | ||
t.throws(instance.quz, 'compose throws if result is a promise'); | ||
t.end(); | ||
@@ -495,0 +499,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
106457
727