New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-iframe-comm

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-iframe-comm - npm Package Compare versions

Comparing version 0.1.1 to 1.0.0

public/iframe.html

2

package.json
{
"name": "react-iframe-comm",
"version": "0.1.1",
"version": "1.0.0",
"description": "A React component for communicating between a parent window and an iframe.",

@@ -5,0 +5,0 @@ "main": "src/IframeComm.js",

@@ -1,2 +0,2 @@

React Iframe Comm
React iFrame communication
============

@@ -3,0 +3,0 @@

@@ -18,5 +18,2 @@ import React, { Component, PropTypes } from "react";

componentWillReceiveProps(nextProps) {
// console.log("componentWillReceiveProps");
// console.log("this", this.props.postMessageData);
// console.log("next", nextProps.postMessageData);
if (this.props.postMessageData !== nextProps.postMessageData) {

@@ -28,4 +25,2 @@ // send a message if postMessageData changed

onReceiveMessage(event) {
// console.log("onReceiveMessage");
// console.log(event.data);
const { handleReceiveMessage } = this.props;

@@ -37,3 +32,2 @@ if (handleReceiveMessage) {

onLoad() {
// console.log("handleReady");
const { handleReady } = this.props;

@@ -40,0 +34,0 @@ if (handleReady) {

@@ -19,3 +19,3 @@ import React from "react";

src: "https://pbojinov.github.io/iframe-communication/iframe.html",
// src: "http://127.0.0.1:8080/examples/iframe.html",
// src: "http://127.0.0.1:8080/public/iframe.html",
width: "100%",

@@ -22,0 +22,0 @@ height: "175"

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