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

react-tj-vimeo

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-tj-vimeo - npm Package Compare versions

Comparing version 0.1.0 to 1.0.0

11

lib/Vimeo.js

@@ -63,2 +63,3 @@ 'use strict';

value: function componentWillUnmount() {
this.player.off('loaded');
this.player.off('play');

@@ -93,3 +94,3 @@ this.player.off('pause');

var _props = this.props,
onReady = _props.onReady,
onLoaded = _props.onLoaded,
onPlay = _props.onPlay,

@@ -106,7 +107,7 @@ onPause = _props.onPause,

this.player = new _player2.default(this.iframe);
this.player.ready().then(function () {
onReady(_this3.player);
});
// event listeners
this.player.on('loaded', function (res) {
onLoaded(_this3.player, res.id);
});
this.player.on('play', onPlay);

@@ -130,3 +131,3 @@ this.player.on('pause', onPause);

isFullscreen: true,
onReady: noop,
onLoaded: noop,
onPlay: noop,

@@ -133,0 +134,0 @@ onPause: noop,

{
"name": "react-tj-vimeo",
"version": "0.1.0",
"version": "1.0.0",
"author": "Tony Jin <jsveron23@gmail.com>",

@@ -57,2 +57,3 @@ "description": "TJ Vimeo API for React",

"@vimeo/player": "^1.0.6",
"fetch-jsonp": "^1.0.2",
"react": "^15.4.0",

@@ -59,0 +60,0 @@ "react-dom": "^15.4.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