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

react-player

Package Overview
Dependencies
Maintainers
1
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-player - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

test/canPlay.js

2

lib/players/SoundCloud.js

@@ -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.
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