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

react-lite-youtube-embed

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-lite-youtube-embed - npm Package Compare versions

Comparing version 0.2.32 to 0.3.0

7

dist/LiteYouTubeEmbed.js

@@ -11,2 +11,3 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";

title = _ref.title,
noCookie = _ref.noCookie,
activatedClass = _ref.activatedClass,

@@ -30,3 +31,4 @@ iframeClass = _ref.iframeClass,

var posterUrl = "https://i.ytimg.com/vi/".concat(videoId, "/").concat(poster, ".jpg");
var iframeSrc = !playlist ? "https://www.youtube.com/embed/".concat(videoId, "?autoplay=1") : "https://www.youtube.com/embed/videoseries?list=".concat(videoId);
var ytUrl = noCookie ? "https://www.youtube-nocookie.com" : "https://www.youtube.com";
var iframeSrc = !playlist ? "".concat(ytUrl, "/embed/").concat(videoId, "?autoplay=1") : "".concat(ytUrl, "/embed/videoseries?list=").concat(videoId);
var refVideo = useRef();

@@ -60,3 +62,3 @@

rel: "preconnect",
href: "https://www.youtube.com"
href: ytUrl
}), React.createElement("link", {

@@ -95,2 +97,3 @@ rel: "preconnect",

title: "YouTube Embed",
noCookie: false,
activatedClass: "lyt-activated",

@@ -97,0 +100,0 @@ iframeClass: "",

{
"name": "react-lite-youtube-embed",
"version": "0.2.32",
"version": "0.3.0",
"main": "dist/index",

@@ -5,0 +5,0 @@ "module": "dist/index",

@@ -52,2 +52,3 @@ # React Lite YouTube Embed

title="YouTube Embed" // a11y, always provide a title for iFrames: https://dequeuniversity.com/tips/provide-iframe-titles Help the web be accessible ;)
noCookie={true} //Default false, connect to YouTube via the Privacy-Enhanced Mode using https://www.youtube-nocookie.com
/>

@@ -54,0 +55,0 @@ </div>

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