Socket
Socket
Sign inDemoInstall

@effection/events

Package Overview
Dependencies
Maintainers
1
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effection/events - npm Package Compare versions

Comparing version 2.0.0-beta.6 to 2.0.0-beta.7

dist/cjs/event-source.d.ts

6

CHANGELOG.md
# 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 @@

13

package.json
{
"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);

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