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 0.3.2 to 0.3.3

2

addons/BaseStore.js

@@ -8,3 +8,3 @@ /**

var inherits = require('inherits');
var EventEmitter = require('eventemitter3').EventEmitter;
var EventEmitter = require('eventemitter3');
var CHANGE_EVENT = 'change';

@@ -11,0 +11,0 @@

@@ -23,5 +23,7 @@ /**

this.handlers[DEFAULT] = [];
this.hasWarnedAboutNameProperty = false;
options.stores.forEach(function (store) {
this.registerStore(store);
}, this);
}

@@ -101,3 +103,18 @@

}
return store.storeName || store.name;
if (store.storeName) {
return store.storeName;
}
if (process.env.NODE_ENV !== 'production') {
if (store.name && !this.hasWarnedAboutNameProperty) {
console.warn('A store has been registered that relies on the ' +
'constructor\'s name property. This name may change when you ' +
'minify your stores during build time and could break string ' +
'references to your store. It is advised that you add a ' +
'static `storeName` property to your store to ensure the ' +
'store name does not change during your build.');
this.hasWarnedAboutNameProperty = true;
}
}
return store.name;
};

@@ -104,0 +121,0 @@

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

@@ -24,3 +24,3 @@ "main": "index.js",

"debug": "^2.0.0",
"eventemitter3": "^0.1.6",
"eventemitter3": "^1.0.0",
"inherits": "^2.0.1"

@@ -27,0 +27,0 @@ },

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