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

inframejs

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inframejs - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

package.json
{
"name": "inframejs",
"version": "1.0.3",
"version": "1.0.4",
"description": "use pure Javascript to connect the iframe pages",

@@ -5,0 +5,0 @@ "main": "dist/inframejs.es.min.js",

@@ -66,3 +66,4 @@ const Inframe = class {

params: data,
lib: this.libName
lib: this.libName,
pageName:this.pageName
}

@@ -83,3 +84,7 @@ this.logger(`${eventName} has been emitted::${JSON.stringify(msg)}`)

// 验证data是由inframe发出的
if (!e || typeof e.data !== 'object' || !(e.data.lib && e.data.lib === this.libName)) {
if (!e ||
typeof e.data !== 'object' ||
!(e.data.lib && e.data.lib === this.libName) ||
this.pageName === e.data.pageName
) {
return

@@ -86,0 +91,0 @@ }

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