New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

este-dispatcher

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

este-dispatcher

Flux like dispatcher with promises.

  • 0.2.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

este.Dispatcher Build Status Dependency Status devDependency Status

![Gitter](https://badges.gitter.im/Join Chat.svg)

Isomorphic Facebook Flux like dispatcher with promises support. Made with Este.js.

Features

  • Dispatcher with Promises api: All app sync/async actions and errors can be orchestrated across all app layers easily.
  • App errors can be reported via provided onError hook.
  • Isomorphic, Bower and Node.js versions included.
  • Bower version for production is super small, only 2.7 kB (gzipped). Yes, Closure Compiler.

Install

For Bower.

  bower install steida/este-dispatcher --save

For Node.js.

  npm install este-dispatcher --save

Usage

For Bower.

  // Dev
  <script src="bower_components/este-dispatcher/dispatcher.js"></script>
  // Production
  <script src="bower_components/este-dispatcher/dispatcher.min.js"></script>

For Node.js.

  var Dispatcher = require('este-dispatcher');

Dispatcher API

Check tests or source.

register
/**
  @param {Function} callback
  @return {number} ID of registered callback.
*/
register(callback)
unregister
/**
  @param {number} id ID of registered callback.
*/
unregister(id)
onError
/**
  For error reporting.
  @param {string} action
  @param {*} reason
*/
onError(action, reason)
dispatch
/**
  @param {string} action
  @param {Object=} payload Data for action.
  @return {!goog.Promise}
*/
dispatch(action, payload)
waitFor
/**
  @param {Array.<number>} ids Callbacks IDs.
  @return {!goog.Promise}
*/
waitFor(ids)

goog.Promises API

Check goog/promise/promise.js

Keywords

FAQs

Package last updated on 16 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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