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

any-event

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

any-event - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

6

package.json
{
"name": "any-event",
"version": "0.3.0",
"version": "0.3.1",
"description": "🍰 一个mini的事件管理器",

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

],
"main": "lib/main.ts",
"main": "lib/main.js",
"module": "dist/anyEvent.es.js",

@@ -19,3 +19,3 @@ "types": "lib/main.d.ts",

"test": "jest --no-cache",
"release": "npm run build && standard-version && npm pub && git push"
"release": "npm run build && npm pub && git push"
},

@@ -22,0 +22,0 @@ "repository": {

@@ -101,2 +101,15 @@ # any-event [![NPM Version][npm-image]][npm-url] [![npm bundle size (minified + gzip)][size-image]][size-url] [![codecov][codecov-image]][codecov-url] [![CircleCI][ci-image]][ci-url]

### has(eventName)
是否绑定了指定事件
|名称|类型|数据类型|是否必填|说明|
|---|---|---|---|---|
|eventName| 参数 |`String/Symbol`|是|事件名称|
``` javascript
emitter.on('add', callback);
emitter.has('add'; // true
```
### destroy()

@@ -103,0 +116,0 @@ 销毁实例

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