New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.2 to 0.0.3

dist/.placeholder

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%"}},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;
{
"name": "react-iframe",
"version": "0.0.2",
"version": "0.0.3",
"description": "Iframes with react",

@@ -8,3 +8,3 @@ "main": "index.js",

"peerDependencies": {
"react": "^0.13.x"
"react": ">=0.13.x"
},

@@ -11,0 +11,0 @@ "devDependencies": {

@@ -9,3 +9,3 @@ # React IFrame

<Iframe src="http://www.example.com" [string width, [string height]] />
<Iframe url="http://www.example.com" [string width, [string height]] />

@@ -16,2 +16,2 @@ Optional properties width and height can be sent as either percentage (eg. '100%') or px (eg. '100px');

Clone and execute _npm install_ & _npm run demo_
Clone and execute _npm install_ & _npm run demo_

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