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

@cicada/message

Package Overview
Dependencies
Maintainers
12
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cicada/message - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

8

lib/index.js

@@ -157,5 +157,7 @@ 'use strict';

// 如果没有监听到事件,就冒泡透传
if (!hitEvent) {
dispatch(message.event, message.data, message.toParent);
}
// dispath 里的逻辑时 toParent 为 true 则向上透传,为 false 则向下分发
// 所以 listener 里的这句代码会造成 父发-子听-子发-父听 的死循环
// if (!hitEvent) {
// dispatch(message.event, message.data, message.toParent)
// }
}

@@ -162,0 +164,0 @@ }, false);

{
"name": "@cicada/message",
"version": "0.3.1",
"version": "0.3.2",
"description": "cicada message",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -129,5 +129,7 @@ import { generateUUID } from './utils'

// 如果没有监听到事件,就冒泡透传
if (!hitEvent) {
dispatch(message.event, message.data, message.toParent)
}
// dispath 里的逻辑时 toParent 为 true 则向上透传,为 false 则向下分发
// 所以 listener 里的这句代码会造成 父发-子听-子发-父听 的死循环
// if (!hitEvent) {
// dispatch(message.event, message.data, message.toParent)
// }
}

@@ -134,0 +136,0 @@ }, false)

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