Comparing version 4.1.0 to 5.0.0
const emit = (emitter, ...params) => { | ||
emitter.forEach(listener => listener(...params)); | ||
[...emitter].forEach(listener => listener(...params)); | ||
}; | ||
export default emit; |
@@ -11,3 +11,3 @@ { | ||
"name": "emitter2", | ||
"version": "4.1.0", | ||
"version": "5.0.0", | ||
"homepage": "https://chocolateloverraj.github.io/emitter", | ||
@@ -21,2 +21,3 @@ "license": "MIT", | ||
"@types/mocha": "^9.1.0", | ||
"@types/node": "^17.0.30", | ||
"@types/react": "^17.0.40", | ||
@@ -35,3 +36,3 @@ "@types/sinon": "^10.0.11", | ||
"typedoc": "0.22.0-beta.10", | ||
"typescript": "^4.7.0-dev.20220316" | ||
"typescript": "^4.7.0-dev.20220429" | ||
}, | ||
@@ -38,0 +39,0 @@ "type": "module", |
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
4841
16