Socket
Socket
Sign inDemoInstall

react-jplayer

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-jplayer - npm Package Compare versions

Comparing version 5.0.3 to 5.0.4

10

lib/components/media/mediaContainer.js

@@ -358,8 +358,6 @@ 'use strict';

if (nextProps.paused !== this.props.paused) {
if (nextProps.paused) {
this.currentMedia.pause();
} else {
this.currentMedia.play();
}
if (nextProps.paused) {
this.currentMedia.pause();
} else {
this.currentMedia.play();
}

@@ -366,0 +364,0 @@ }

2

package.json
{
"name": "react-jplayer",
"version": "5.0.3",
"version": "5.0.4",
"description": "Html5 audio and video player library for React",

@@ -5,0 +5,0 @@ "author": "Martin Dawson <u1356770@gmail.com>",

import React from 'react';
import PropTypes from 'prop-types';
import { connectWithId, toPercentage, toRelativePercentage,
convertTime, canSetVolume } from 'react-jplayer-utils';
import {
connectWithId, toPercentage, toRelativePercentage,
convertTime, canSetVolume,
} from 'react-jplayer-utils';

@@ -210,3 +212,3 @@ import urlNotSupportedError from '../../util/errorHandlers/urlNotSupportedError';

if (nextProps.mediaId !== this.props.mediaId &&
nextProps.src !== '') {
nextProps.src !== '') {
this.currentMedia.src = nextProps.src;

@@ -242,8 +244,6 @@ }

if (nextProps.paused !== this.props.paused) {
if (nextProps.paused) {
this.currentMedia.pause();
} else {
this.currentMedia.play();
}
if (nextProps.paused) {
this.currentMedia.pause();
} else {
this.currentMedia.play();
}

@@ -250,0 +250,0 @@ }

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

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

Sorry, the diff of this file is not supported yet

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