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

dispatchr

Package Overview
Dependencies
Maintainers
2
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 0.0.10 to 0.0.11

21

lib/dispatcher.js

@@ -212,17 +212,12 @@ /**

var handlerPromise = new Promise(function(resolve, reject) {
var storeInstance = self.getStore(store.name),
finalHandler = function () {
resolve();
storeInstance.removeListener('error', errorHandler);
},
errorHandler = function (e) {
reject(e);
storeInstance.removeListener('final', finalHandler);
};
var storeInstance = self.getStore(store.name);
storeInstance.once('final', finalHandler);
storeInstance.once('error', errorHandler);
setImmediate(function () {
storeInstance[store.handler](payload);
storeInstance[store.handler](payload, function storeHandlerDone(err) {
if (err) {
reject(err);
return;
}
resolve();
});
});

@@ -229,0 +224,0 @@ });

{
"name": "dispatchr",
"version": "0.0.10",
"version": "0.0.11",
"description": "A Flux dispatcher for applications that run on the server and the client.",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

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