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

react-iframe

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-iframe - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

dist/react-iframe.min.js

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

"use strict";var React=require("react");var Iframe=React.createClass({displayName:"React-Iframe",propTypes:{url:React.PropTypes.string.isRequired,width:React.PropTypes.string,height:React.PropTypes.string},getDefaultProps:function getDefaultProps(){return{height:"100%",width:"100%"}},shouldComponentUpdate:function shouldComponentUpdate(nextProps){return this.props.url!==nextProps.url},render:function render(){return React.createElement("iframe",{ref:"iframe",frameBorder:"0",src:this.props.url,style:{position:"fixed",height:this.props.height,width:this.props.width},height:this.props.height,width:this.props.width})}});module.exports=Iframe;
"use strict";var React=require("react");var Iframe=React.createClass({displayName:"React-Iframe",propTypes:{url:React.PropTypes.string.isRequired,width:React.PropTypes.string,height:React.PropTypes.string},getDefaultProps:function getDefaultProps(){return{height:"100%",width:"100%",position:"fixed"}},shouldComponentUpdate:function shouldComponentUpdate(nextProps){return this.props.url!==nextProps.url},render:function render(){return React.createElement("iframe",{ref:"iframe",frameBorder:"0",src:this.props.url,style:{position:this.props.position,height:this.props.height,width:this.props.width},height:this.props.height,width:this.props.width})}});module.exports=Iframe;

@@ -15,3 +15,4 @@ "use strict";

height: "100%",
width: "100%"
width: "100%",
position: "fixed"
};

@@ -28,3 +29,3 @@ },

src: this.props.url,
style: { position: "fixed", height: this.props.height, width: this.props.width },
style: { position: this.props.position, height: this.props.height, width: this.props.width },
height: this.props.height, width: this.props.width });

@@ -31,0 +32,0 @@ }

@@ -15,3 +15,4 @@ "use strict";

height:'100%',
width:'100%'
width:'100%',
position:'fixed'
}

@@ -29,3 +30,3 @@ },

src={this.props.url}
style={{position:'fixed',height:this.props.height,width:this.props.width}}
style={{position:this.props.position,height:this.props.height,width:this.props.width}}
height={this.props.height} width={this.props.width}></iframe>

@@ -32,0 +33,0 @@ )

{
"name": "react-iframe",
"version": "0.0.3",
"version": "0.0.4",
"description": "Iframes with react",

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

Sorry, the diff of this file is not supported yet

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