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

dispatchr

Package Overview
Dependencies
Maintainers
5
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.9 to 0.2.10

.idea/.name

2

package.json
{
"name": "dispatchr",
"version": "0.2.9",
"version": "0.2.10",
"description": "A Flux dispatcher for applications that run on the server and the client.",

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

@@ -181,3 +181,3 @@ # Dispatchr

`require('dispatchr/utils/BaseStore')` provides a base store class for extending. Provides `emitChange`, `addChangeListener`, and `removeChangeListener` functions. Example:
`require('dispatchr/utils/BaseStore')` provides a base store class for extending. Provides `getContext`, `emitChange`, `addChangeListener`, and `removeChangeListener` functions. Example:

@@ -195,3 +195,3 @@ ```js

};
MyStore.prototype.getFoo = function () { ... }
MyStore.prototype.getFoo = function () { var context = this.getContext(), ... }
module.exports = MyStore;

@@ -198,0 +198,0 @@ ```

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

var util = require('util'),
EventEmitter = require('events').EventEmitter,
CHANGE_EVENT = 'change';
var util = require('util');
var EventEmitter = require('events').EventEmitter;
var CHANGE_EVENT = 'change';

@@ -28,2 +28,11 @@ /**

/**
* Convenience method for getting the store context object.
* @method getContext
* @return {Object} Returns the store context object.
*/
BaseStore.prototype.getContext = function getContext() {
return this.dispatcher.getContext();
};
/**
* Add a listener for the change event

@@ -30,0 +39,0 @@ * @method addChangeListener

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