react-tj-vimeo
Advanced tools
Comparing version 0.1.0 to 1.0.0
@@ -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" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
7931
123
1
4
+ Addedfetch-jsonp@^1.0.2
+ Addedfetch-jsonp@1.3.0(transitive)