react-player
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -37,3 +37,3 @@ 'use strict'; | ||
var RESOLVE_URL = '//api.soundcloud.com/resolve.json'; | ||
var MATCH_URL = /^https?:\/\/(soundcloud.com|snd.sc)\/(.*)$/; | ||
var MATCH_URL = /^https?:\/\/(soundcloud.com|snd.sc)\/([a-z0-9-]+\/[a-z0-9-]+)$/; | ||
@@ -40,0 +40,0 @@ var SoundCloud = (function (_Base) { |
@@ -74,3 +74,3 @@ 'use strict'; | ||
window.addEventListener('message', this.onMessage, false); | ||
this.iframe = this.refs.iframe.getDOMNode(); | ||
this.iframe = _react2['default'].findDOMNode(this.refs.iframe); | ||
_get(Object.getPrototypeOf(Vimeo.prototype), 'componentDidMount', this).call(this); | ||
@@ -77,0 +77,0 @@ } |
{ | ||
"name": "react-player", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "A react component for playing media from YouTube, SoundCloud or Vimeo", | ||
@@ -9,2 +9,3 @@ "main": "lib/ReactPlayer.js", | ||
"lint": "standard", | ||
"test": "mocha test --compilers js:babel/register", | ||
"build": "babel src/ -d lib/", | ||
@@ -41,4 +42,6 @@ "prepublish": "npm run build" | ||
"babel-loader": "^5.1.2", | ||
"chai": "^3.2.0", | ||
"exports-loader": "^0.6.2", | ||
"imports-loader": "^0.6.4", | ||
"mocha": "^2.2.5", | ||
"react": ">=0.13.0", | ||
@@ -45,0 +48,0 @@ "react-hot-loader": "^1.2.7", |
@@ -69,4 +69,12 @@ react-player | ||
### Testing | ||
This project uses [mocha](https://github.com/mochajs/mocha) with [chai](https://github.com/chaijs/chai) assertions for unit testing. | ||
```bash | ||
npm run test | ||
``` | ||
### Thanks | ||
* Big thanks to [gaearon](https://github.com/gaearon) for his [react-hot-boilerplate](https://github.com/gaearon/react-hot-boilerplate), which this repo is roughly based on. |
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
43182
18
857
80
14