@redux-saga/is
Advanced tools
Comparing version 1.0.0-beta.2 to 1.0.0-beta.3
@@ -45,3 +45,3 @@ 'use strict'; | ||
var pattern = function pattern(pat) { | ||
return pat && (string(pat) || symbol(pat) || func(pat) || array(pat)); | ||
return pat && (string(pat) || symbol(pat) || func(pat) || array(pat) && pat.every(pattern)); | ||
}; | ||
@@ -60,2 +60,5 @@ var channel = function channel(ch) { | ||
}; | ||
var effect = function effect(eff) { | ||
return eff && eff[symbols.IO]; | ||
}; | ||
@@ -80,1 +83,2 @@ exports.undef = undef; | ||
exports.multicast = multicast; | ||
exports.effect = effect; |
@@ -1,2 +0,2 @@ | ||
import { TASK, MULTICAST } from '@redux-saga/symbols'; | ||
import { TASK, MULTICAST, IO } from '@redux-saga/symbols'; | ||
@@ -41,3 +41,3 @@ var undef = function undef(v) { | ||
var pattern = function pattern(pat) { | ||
return pat && (string(pat) || symbol(pat) || func(pat) || array(pat)); | ||
return pat && (string(pat) || symbol(pat) || func(pat) || array(pat) && pat.every(pattern)); | ||
}; | ||
@@ -56,3 +56,6 @@ var channel = function channel(ch) { | ||
}; | ||
var effect = function effect(eff) { | ||
return eff && eff[IO]; | ||
}; | ||
export { undef, notUndef, func, number, string, array, object, promise, iterator, iterable, task, observable, buffer, pattern, channel, stringableFunc, symbol, multicast }; | ||
export { undef, notUndef, func, number, string, array, object, promise, iterator, iterable, task, observable, buffer, pattern, channel, stringableFunc, symbol, multicast, effect }; |
{ | ||
"name": "@redux-saga/is", | ||
"version": "1.0.0-beta.2", | ||
"version": "1.0.0-beta.3", | ||
"description": "Runtime type checking helpers", | ||
@@ -24,3 +24,5 @@ "main": "dist/is.cjs.js", | ||
"contributors": [ | ||
"Mateusz Burzyński <mateuszburzynski@gmail.com> (https://github.com/Andarist)" | ||
"Mateusz Burzyński <mateuszburzynski@gmail.com> (https://github.com/Andarist)", | ||
"Mikhail Shustov <restrry@gmail.com> (https://github.com/restrry)", | ||
"Shi Feichao <842351815@qq.com> (https://github.com/shinima)" | ||
], | ||
@@ -33,13 +35,13 @@ "license": "MIT", | ||
"dependencies": { | ||
"@redux-saga/symbols": "^1.0.0-beta.2" | ||
"@redux-saga/symbols": "^1.0.0-beta.3" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.0.0-beta.52", | ||
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.52", | ||
"@babel/preset-env": "7.0.0-beta.52", | ||
"@babel/core": "^7.0.0", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.0.0", | ||
"@babel/preset-env": "^7.0.0", | ||
"babel-plugin-annotate-pure-calls": "^0.3.0", | ||
"rimraf": "^2.4.3", | ||
"rollup": "^0.64.1", | ||
"rollup-plugin-babel": "4.0.0-beta.1" | ||
"rollup": "^0.65.2", | ||
"rollup-plugin-babel": "^4.0.3" | ||
} | ||
} |
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
5669
134