Comparing version 6.0.4 to 6.0.5
@@ -25,2 +25,3 @@ // const debug = require('debug')('barracks') | ||
actions[action] = actions[action] ? actions[action] : [] | ||
assert.equal(actions[action].length, 0, 'only on callback per action') | ||
actions[action].push(cb) | ||
@@ -27,0 +28,0 @@ |
{ | ||
"name": "barracks", | ||
"version": "6.0.4", | ||
"version": "6.0.5", | ||
"description": "Action dispatcher for unidirectional data flows", | ||
@@ -26,3 +26,3 @@ "main": "index.js", | ||
"istanbul": "~0.2.10", | ||
"standard": "^4.5.4", | ||
"standard": "^7.1.2", | ||
"tape": "^3.0.3", | ||
@@ -29,0 +29,0 @@ "watch": "^0.16.0" |
@@ -43,3 +43,4 @@ # barracks | ||
can be used to call other actions internally. `wait()` accepts a single action | ||
or an array of actions and an optional callback as the final argument. | ||
or an array of actions and an optional callback as the final argument. Only | ||
one callback can be added per action. | ||
@@ -100,3 +101,3 @@ ### dispatcher(action[, data]) | ||
- [flux-standard-action](https://github.com/acdlite/flux-standard-action/) - human-friendly standard for Flux action objects | ||
- [create-fsa](https://github.com/yoshuawuyts/create-fsa/) - create a flux-standard-action from a value | ||
- [create-fsa](https://github.com/yoshuawuyts/create-fsa/) - create a flux-standard-action from a value | ||
- [wayfarer](https://github.com/yoshuawuyts/wayfarer) - composable trie based router | ||
@@ -103,0 +104,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
9783
89
117