Comparing version 0.1.0-alpha.2 to 0.1.0-alpha.3
@@ -136,7 +136,16 @@ 'use strict'; | ||
}, | ||
dispatch: function dispatch(action) { | ||
var _getStore; | ||
for (var _len3 = arguments.length, args = Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) { | ||
args[_key3 - 1] = arguments[_key3]; | ||
} | ||
return (_getStore = getStore()).dispatch.apply(_getStore, [action].concat(args)); | ||
}, | ||
watch: function watch(pattern, task) { | ||
(0, _utils.check)(_utils.is.func(task), 'task in watch should be an function'); | ||
for (var _len3 = arguments.length, args = Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) { | ||
args[_key3 - 2] = arguments[_key3]; | ||
for (var _len4 = arguments.length, args = Array(_len4 > 2 ? _len4 - 2 : 0), _key4 = 2; _key4 < _len4; _key4++) { | ||
args[_key4 - 2] = arguments[_key4]; | ||
} | ||
@@ -149,4 +158,4 @@ | ||
for (var _len4 = arguments.length, args = Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) { | ||
args[_key4 - 1] = arguments[_key4]; | ||
for (var _len5 = arguments.length, args = Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) { | ||
args[_key5 - 1] = arguments[_key5]; | ||
} | ||
@@ -153,0 +162,0 @@ |
{ | ||
"name": "refect", | ||
"version": "0.1.0-alpha.2", | ||
"version": "0.1.0-alpha.3", | ||
"description": "", | ||
@@ -12,2 +12,3 @@ "main": "lib/index.js", | ||
"lint": "eslint src", | ||
"prepublish": "npm run build", | ||
"test": "NODE_ENV=test karma start test/karma.conf.js --single-run" | ||
@@ -14,0 +15,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
53604
1311