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

d3-dispatch

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d3-dispatch - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

4

package.json
{
"name": "d3-dispatch",
"version": "0.2.0",
"version": "0.2.1",
"description": "Register named callbacks and call them with arguments.",

@@ -26,3 +26,3 @@ "keywords": [

"test": "faucet `find test -name '*-test.js'`",
"prepublish": "npm run test && uglifyjs build/dispatch.js -c -m -o build/dispatch.min.js"
"prepublish": "npm run test && uglifyjs build/dispatch.js -c -m -o build/dispatch.min.js && rm -f build/dispatch.zip && zip -j build/dispatch.zip -- LICENSE README.md build/dispatch.js build/dispatch.min.js"
},

@@ -29,0 +29,0 @@ "devDependencies": {

@@ -11,3 +11,3 @@ # d3-dispatch

* The exposed [dispatch.*type*](#type) field is now strictly a method for invoking callbacks. Use `dispatch.on(type, …)` to get or set callbacks, rather than `dispatch[type].on(…)`.
* The exposed [*dispatch*.*type*](#type) field is now strictly a method for invoking callbacks. Use `dispatch.on(type, …)` to get or set callbacks, rather than `dispatch[type].on(…)`.

@@ -26,3 +26,3 @@ * The `instanceof` operator now works as expected with dispatch objects.

You can then register callbacks for the different types using [dispatch.on](#on):
You can then register callbacks for the different types using [*dispatch*.on](#on):

@@ -35,3 +35,3 @@ ```js

Lastly, you can invoke any `"start"` callbacks using [dispatch.*type*](#type):
Lastly, you can invoke any `"start"` callbacks using [*dispatch*.*type*](#type):

@@ -48,3 +48,3 @@ ```js

If a *callback* is specified, it is registered for the specified *type*. If a callback was already registered for the same type, the existing callback is removed before the new callback is added. If *callback* is not specified, returns the current callback for the specified *type*, if any. The specified *callback* is invoked with the context and arguments specified by the caller; see [dispatch.*type*](#type).
If a *callback* is specified, it is registered for the specified *type*. If a callback was already registered for the same type, the existing callback is removed before the new callback is added. If *callback* is not specified, returns the current callback for the specified *type*, if any. The specified *callback* is invoked with the context and arguments specified by the caller; see [*dispatch*.*type*](#type).

@@ -51,0 +51,0 @@ <a name="type" href="#type">#</a> *dispatch*.<b>*type*</b>(<i>arguments…</i>)

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