Socket
Socket
Sign inDemoInstall

material-ui-audio-player

Package Overview
Dependencies
40
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.5.1 to 1.5.2

6

CHANGELOG.md

@@ -5,2 +5,8 @@ # Changelog

## 1.5.2 - 2020-12-04
### Added
- Add check for duration on Infinite to fix a bug with NaN:NaN
## 1.5.1 - 2020-12-01

@@ -7,0 +13,0 @@

10

dist/components/AudioPlayer.js

@@ -193,6 +193,10 @@ "use strict";

var onLoad = function () {
var _a, _b, _c;
var _a, _b, _c, _d;
if (((_a = player === null || player === void 0 ? void 0 : player.current) === null || _a === void 0 ? void 0 : _a.duration) === Infinity) {
player.current.currentTime = 24 * 60 * 60;
player.current.currentTime = 0;
}
_setPlayerDuration();
if (((_a = player === null || player === void 0 ? void 0 : player.current) === null || _a === void 0 ? void 0 : _a.currentTime) === 0) {
if (!((_b = player === null || player === void 0 ? void 0 : player.current) === null || _b === void 0 ? void 0 : _b.autoplay) && !((_c = player === null || player === void 0 ? void 0 : player.current) === null || _c === void 0 ? void 0 : _c.loop)) {
if (((_b = player === null || player === void 0 ? void 0 : player.current) === null || _b === void 0 ? void 0 : _b.currentTime) === 0) {
if (!((_c = player === null || player === void 0 ? void 0 : player.current) === null || _c === void 0 ? void 0 : _c.autoplay) && !((_d = player === null || player === void 0 ? void 0 : player.current) === null || _d === void 0 ? void 0 : _d.loop)) {
_pauseAudio();

@@ -199,0 +203,0 @@ }

{
"name": "material-ui-audio-player",
"version": "1.5.1",
"version": "1.5.2",
"description": "Audio player for material ui design",

@@ -23,3 +23,3 @@ "main": "dist/index.js",

"preversion": "yarn test",
"postversion": "git push && git push --tags && echo \"Successfully released version $npm_package_version!\""
"postversion": "git push --follow-tags && echo \"Successfully released version $npm_package_version!\""
},

@@ -26,0 +26,0 @@ "files": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc