@protobufjs/eventemitter
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -39,3 +39,3 @@ "use strict"; | ||
/** | ||
* Removes an event listener. | ||
* Removes an event listener or any matching listeners if arguments are omitted. | ||
* @param {string} [evt] Event name. Removes all listeners if omitted. | ||
@@ -42,0 +42,0 @@ * @param {function} [fn] Listener to remove. Removes all listeners of `evt` if omitted. |
{ | ||
"name": "@protobufjs/eventemitter", | ||
"description": "A minimal event emitter.", | ||
"version": "1.0.0", | ||
"author": "Daniel Wirtz <dcode@dcode.io>", | ||
"version": "1.0.1", | ||
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>", | ||
"repository": { | ||
@@ -7,0 +7,0 @@ "type": "git", |
@protobufjs/eventemitter | ||
======================== | ||
[![npm](https://img.shields.io/npm/v/@protobufjs/eventemitter.svg)](https://www.npmjs.com/package/@protobufjs/eventemitter) | ||
A minimal event emitter. | ||
API | ||
--- | ||
* **new EventEmitter()**<br /> | ||
Constructs a new event emitter instance. | ||
* **EventEmitter#on(evt: `string`, fn: `function`, [ctx: `Object`]): `EventEmitter`**<br /> | ||
Registers an event listener. | ||
* **EventEmitter#off([evt: `string`], [fn: `function`]): `EventEmitter`**<br /> | ||
Removes an event listener or any matching listeners if arguments are omitted. | ||
* **EventEmitter#emit(evt: `string`, ...args: `*`): `EventEmitter`**<br /> | ||
Emits an event by calling its listeners with the specified arguments. | ||
**License:** [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14821
23
1