Comparing version 0.3.0 to 0.3.1
{ | ||
"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 @@ 销毁实例 |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21086
127
0