Comparing version 1.2.0 to 1.2.1
@@ -6,3 +6,2 @@ /** | ||
'use strict'; | ||
var debug = require('debug')('Dispatchr:Action'); | ||
@@ -67,3 +66,2 @@ function Action(name, payload) { | ||
self._isCompleted[storeName] = false; | ||
debug('executing handler for ' + storeName); | ||
handlerFn(self.payload, self.name); | ||
@@ -90,3 +88,2 @@ self._isCompleted[storeName] = true; | ||
debug('waiting on ' + stores.join(', ')); | ||
stores.forEach(function storesEach(storeName) { | ||
@@ -93,0 +90,0 @@ storeName = self.getStoreName(storeName); |
@@ -9,3 +9,2 @@ /** | ||
var DEFAULT = 'default'; | ||
var debug = require('debug')('Dispatchr:DispatcherContext'); | ||
@@ -83,6 +82,5 @@ /** | ||
if (!actionHandlers.length && !defaultHandlers.length) { | ||
debug(actionName + ' does not have any registered handlers'); | ||
return; | ||
} | ||
debug('dispatching ' + actionName, payload); | ||
this.currentAction = new Action(actionName, payload); | ||
@@ -121,3 +119,2 @@ var self = this, | ||
} finally { | ||
debug('finished ' + actionName); | ||
this.currentAction = null; | ||
@@ -124,0 +121,0 @@ } |
{ | ||
"name": "dispatchr", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A Flux dispatcher for applications that run on the server and the client.", | ||
@@ -11,4 +11,4 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "../../node_modules/.bin/mocha tests/unit/ --recursive --compilers js:babel-register --reporter spec", | ||
"cover": "../../node_modules/.bin/istanbul cover --dir artifacts -- ../../node_modules/.bin/_mocha tests/unit/ --recursive --compilers js:babel-register --reporter spec", | ||
"test": "../../node_modules/.bin/mocha tests/unit/", | ||
"cover": "BABEL_ENV=test ../../node_modules/.bin/nyc ../../node_modules/.bin/_mocha tests/unit/", | ||
"lint": "../../node_modules/.bin/eslint lib/ addons/ utils/ index.js" | ||
@@ -24,3 +24,2 @@ }, | ||
"dependencies": { | ||
"debug": "^2.0.0", | ||
"eventemitter3": "^2.0.0", | ||
@@ -27,0 +26,0 @@ "inherits": "^2.0.1" |
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
2
27689
15
564
- Removeddebug@^2.0.0
- Removeddebug@2.6.9(transitive)
- Removedms@2.0.0(transitive)