react-player
Advanced tools
Comparing version 2.0.1 to 2.0.2-beta.0
@@ -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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
1167156
33
4719
1