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

@thelevicole/youtube-to-html5-loader

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thelevicole/youtube-to-html5-loader - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

2

package.json
{
"name": "@thelevicole/youtube-to-html5-loader",
"version": "3.0.0",
"version": "3.0.1",
"description": "A javascript library to load YoutTube videos as HTML5 emebed elements.",

@@ -5,0 +5,0 @@ "main": "dist/YouTubeToHtml5.js",

@@ -29,3 +29,3 @@ # Load YoutTube videos as HTML5 emebed element

```html
<script src="https://cdn.jsdelivr.net/npm/@thelevicole/youtube-to-html5-loader@3.0.0/dist/YouTubeToHtml5.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@thelevicole/youtube-to-html5-loader@3.0.1/dist/YouTubeToHtml5.min.js"></script>
```

@@ -32,0 +32,0 @@

@@ -11,6 +11,14 @@ 'use strict';

/**
* Create an empty object for storing options.
* @type {object}
*/
this.options = {};
// Basic option setting.
for ( var key in this.options ) {
for ( var key in this.defaultOptions ) {
if ( key in options ) {
this.options[ key ] = options[ key ];
} else {
this.options[ key ] = this.defaultOptions[ key ];
}

@@ -26,7 +34,7 @@ }

/**
* Store overridable options.
* Default settable options.
*
* @type {object}
*/
YouTubeToHtml5.prototype.options = {
YouTubeToHtml5.prototype.defaultOptions = {
selector: 'video[data-yt2html5]',

@@ -33,0 +41,0 @@ attribute: 'data-yt2html5',

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