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 2.0.1 to 2.0.2-beta.0

50

lib/players/index.js

@@ -14,8 +14,2 @@ "use strict";

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

@@ -66,5 +60,3 @@

lazyPlayer: (0, _react.lazy)(function () {
return Promise.resolve().then(function () {
return _interopRequireWildcard(require('./YouTube'));
});
return import('./YouTube');
})

@@ -77,5 +69,3 @@ }, {

lazyPlayer: (0, _react.lazy)(function () {
return Promise.resolve().then(function () {
return _interopRequireWildcard(require('./SoundCloud'));
});
return import('./SoundCloud');
})

@@ -88,5 +78,3 @@ }, {

lazyPlayer: (0, _react.lazy)(function () {
return Promise.resolve().then(function () {
return _interopRequireWildcard(require('./Vimeo'));
});
return import('./Vimeo');
})

@@ -99,5 +87,3 @@ }, {

lazyPlayer: (0, _react.lazy)(function () {
return Promise.resolve().then(function () {
return _interopRequireWildcard(require('./Facebook'));
});
return import('./Facebook');
})

@@ -110,5 +96,3 @@ }, {

lazyPlayer: (0, _react.lazy)(function () {
return Promise.resolve().then(function () {
return _interopRequireWildcard(require('./Streamable'));
});
return import('./Streamable');
})

@@ -121,5 +105,3 @@ }, {

lazyPlayer: (0, _react.lazy)(function () {
return Promise.resolve().then(function () {
return _interopRequireWildcard(require('./Wistia'));
});
return import('./Wistia');
})

@@ -132,5 +114,3 @@ }, {

lazyPlayer: (0, _react.lazy)(function () {
return Promise.resolve().then(function () {
return _interopRequireWildcard(require('./Twitch'));
});
return import('./Twitch');
})

@@ -143,5 +123,3 @@ }, {

lazyPlayer: (0, _react.lazy)(function () {
return Promise.resolve().then(function () {
return _interopRequireWildcard(require('./DailyMotion'));
});
return import('./DailyMotion');
})

@@ -154,5 +132,3 @@ }, {

lazyPlayer: (0, _react.lazy)(function () {
return Promise.resolve().then(function () {
return _interopRequireWildcard(require('./Mixcloud'));
});
return import('./Mixcloud');
})

@@ -165,5 +141,3 @@ }, {

lazyPlayer: (0, _react.lazy)(function () {
return Promise.resolve().then(function () {
return _interopRequireWildcard(require('./Vidyard'));
});
return import('./Vidyard');
})

@@ -177,7 +151,5 @@ }, {

lazyPlayer: (0, _react.lazy)(function () {
return Promise.resolve().then(function () {
return _interopRequireWildcard(require('./FilePlayer'));
});
return import('./FilePlayer');
})
}];
exports["default"] = _default;

@@ -26,2 +26,6 @@ "use strict";

function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

@@ -69,10 +73,4 @@

function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
var Preview = (0, _react.lazy)(function () {
return Promise.resolve().then(function () {
return _interopRequireWildcard(require('./Preview'));
});
return import('./Preview');
});

@@ -79,0 +77,0 @@ var IS_BROWSER = typeof window !== 'undefined' && window.document;

{
"name": "react-player",
"version": "2.0.1",
"version": "2.0.2-beta.0",
"description": "A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion",

@@ -107,3 +107,10 @@ "main": "lib/ReactPlayer.js",

"presets": [
"@babel/preset-env",
[
"@babel/preset-env",
{
"exclude": [
"@babel/plugin-proposal-dynamic-import"
]
}
],
"@babel/preset-react"

@@ -110,0 +117,0 @@ ],

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

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