@effection/events
Advanced tools
Comparing version 2.0.0-beta.6 to 2.0.0-beta.7
# Changelog | ||
## \[2.0.0-beta.7] | ||
- Add esm builds | ||
- Bumped due to a bump in @effection/core. | ||
- [6660a46](https://github.com/thefrontside/effection/commit/6660a466a50c9b9c36829c2d52448ebbc0e7e6fb) Add esm build ([#462](https://github.com/thefrontside/effection/pull/462)) on 2021-08-03 | ||
## \[2.0.0-beta.6] | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@effection/events", | ||
"version": "2.0.0-beta.6", | ||
"version": "2.0.0-beta.7", | ||
"description": "Helpers for listening to events with effection", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"types": "dist/esm/index.d.ts", | ||
"typeDocEntry": "src/index.ts", | ||
@@ -25,8 +26,8 @@ "homepage": "https://github.com/thefrontside/effection", | ||
"test": "mocha -r ts-node/register test/**/*.test.ts", | ||
"prepack": "tsc --build tsconfig.dist.json", | ||
"prepack": "tsc --build tsconfig.esm.json && tsc --build tsconfig.cjs.json", | ||
"mocha": "mocha -r ts-node/register" | ||
}, | ||
"dependencies": { | ||
"@effection/core": "2.0.0-beta.5", | ||
"@effection/subscription": "2.0.0-beta.6" | ||
"@effection/core": "2.0.0-beta.6", | ||
"@effection/subscription": "2.0.0-beta.7" | ||
}, | ||
@@ -33,0 +34,0 @@ "devDependencies": { |
@@ -9,3 +9,3 @@ import { EventEmitter } from 'events'; | ||
export function addListener(source: EventSource, name: string, listener: () => void) { | ||
export function addListener(source: EventSource, name: string, listener: () => void): void { | ||
if(isEventTarget(source)) { | ||
@@ -18,3 +18,3 @@ source.addEventListener(name, listener); | ||
export function removeListener(source: EventSource, name: string, listener: () => void) { | ||
export function removeListener(source: EventSource, name: string, listener: () => void): void { | ||
if(isEventTarget(source)) { | ||
@@ -21,0 +21,0 @@ source.removeEventListener(name, listener); |
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
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
102735
50
819
1
+ Added@effection/core@2.0.0-beta.6(transitive)
+ Added@effection/subscription@2.0.0-beta.7(transitive)
- Removed@effection/core@2.0.0-beta.5(transitive)
- Removed@effection/subscription@2.0.0-beta.6(transitive)
Updated@effection/core@2.0.0-beta.6