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

react-modal-video

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-modal-video - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

3

lib/index.js

@@ -54,2 +54,5 @@ 'use strict';

this.setState({ isOpen: false });
if (this.props.onClose === 'function') {
this.props.onClose();
}
}

@@ -56,0 +59,0 @@ }, {

2

package.json
{
"name": "react-modal-video",
"version": "1.0.2",
"version": "1.0.3",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "description": "Modal Video Viewer",

@@ -54,3 +54,3 @@ # react-modal-video

<div>
<ModalVideo channel='youtube' isOpen={this.state.isOpen} videoId='L61p2uyiMSo' />
<ModalVideo channel='youtube' isOpen={this.state.isOpen} videoId='L61p2uyiMSo' onClose={() => this.setState({isOpen: false})} />
<button onClick={this.openModal}>Open</button>

@@ -57,0 +57,0 @@ </div>

@@ -22,2 +22,5 @@ import React from 'react'

this.setState({isOpen: false})
if (this.props.onClose === 'function') {
this.props.onClose();
}
}

@@ -24,0 +27,0 @@

@@ -22,3 +22,3 @@ import React from 'react'

<div>
<ModalVideo channel='youtube' isOpen={this.state.isOpen} videoId='L61p2uyiMSo' />
<ModalVideo channel='youtube' isOpen={this.state.isOpen} videoId='L61p2uyiMSo' onClose={() => this.setState({isOpen: false})} />
<button onClick={this.openModal}>Open</button>

@@ -25,0 +25,0 @@ </div>

Sorry, the diff of this file is too big to display

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