Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dispatchr

Package Overview
Dependencies
Maintainers
4
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dispatchr - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

3

lib/Action.js

@@ -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);

5

lib/DispatcherContext.js

@@ -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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc