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

@feizheng/event-mitt

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feizheng/event-mitt - npm Package Compare versions

Comparing version 2.0.9 to 2.0.11

4

dist/index.js

@@ -5,4 +5,4 @@ /*!

* homepage: https://github.com/afeiship/event-mitt
* version: 2.0.9
* date: 2020-06-25T17:43:03.779Z
* version: 2.0.11
* date: 2020-08-28T09:57:53.792Z
* license: MIT

@@ -9,0 +9,0 @@ */

{
"name": "@feizheng/event-mitt",
"version": "2.0.9",
"version": "2.0.11",
"description": "A mini and light event emitter",

@@ -22,8 +22,8 @@ "homepage": "https://github.com/afeiship/event-mitt",

"gulp": "^4.0.2",
"gulp-load-plugins": "^2.0.1",
"gulp-rename": "^1.4.0",
"gulp-load-plugins": "^2.0.4",
"gulp-rename": "^2.0.0",
"gulp-size": "^3.0.0",
"gulp-uglify": "^3.0.2",
"gulp-umd": "^2.0.0",
"jest": "^23.6.0"
"jest": "^26.4.2"
},

@@ -30,0 +30,0 @@ "publishConfig": {

# event-mitt
> A mini and light event emitter
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## apis
| name | args | description |
|------|---------------------------------|--------------------------------------|
| on | name/*,handler | register an event |
| off | name,handler | unregister an event |
| emit | name,data( recommend an object) | fire an event |
| one | name,data( recommend an object) | fire an event,only can register once |
| once | name,data( recommend an object) | fire an event,only can execute once |
| name | params | description |
| ---- | -------------- | ------------------------------------ |
| on | name/*,handler | register an event |
| off | name,handler | unregister an event |
| emit | name,obj | fire an event |
| one | name,obj | fire an event,only can register once |
| once | name,obj | fire an event,only can execute once |

@@ -61,1 +66,17 @@ ## installation

+ https://github.com/Wikiki/bulma-accordion/blob/master/src/js/events.js
## license
Code released under [the MIT license](https://github.com/afeiship/event-mitt/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@feizheng/event-mitt
[version-url]: https://npmjs.org/package/@feizheng/event-mitt
[license-image]: https://img.shields.io/npm/l/@feizheng/event-mitt
[license-url]: https://github.com/afeiship/event-mitt/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@feizheng/event-mitt
[size-url]: https://github.com/afeiship/event-mitt/blob/master/dist/event-mitt.min.js
[download-image]: https://img.shields.io/npm/dm/@feizheng/event-mitt
[download-url]: https://www.npmjs.com/package/@feizheng/event-mitt
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