New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 0.2.6 to 0.2.7

9

lib/Dispatcher.js

@@ -43,2 +43,5 @@ /**

Dispatcher.registerStore = function registerStore(store) {
if ('function' !== typeof store) {
throw new Error('registerStore requires a constructor as first parameter');
}
var storeName = Dispatcher.getStoreName(store);

@@ -49,3 +52,7 @@ if (!storeName) {

if (Dispatcher.stores[storeName]) {
throw new Error('Store `' + storeName + '` is already registered.');
if (Dispatcher.stores[storeName] === store) {
// Store is already registered, nothing to do
return;
}
throw new Error('Store with name `' + storeName + '` has already been registered.');
}

@@ -52,0 +59,0 @@ Dispatcher.stores[storeName] = store;

2

package.json
{
"name": "dispatchr",
"version": "0.2.6",
"version": "0.2.7",
"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