Socket
Socket
Sign inDemoInstall

you-tube

Package Overview
Dependencies
1
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.5 to 0.1.6

dist/you-tube/p-4f0ece73.entry.js

2

dist/cjs/you-tube.cjs.entry.js

@@ -29,3 +29,3 @@ 'use strict';

playerVars: {
'autoplay': this.autoplay ? parseInt(this.autoplay) : 1,
'autoplay': this.autoplay ? parseInt(this.autoplay) : 0,
'controls': this.controls ? parseInt(this.controls) : 1

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

@@ -19,3 +19,3 @@ import { Component, Prop, h } from '@stencil/core';

playerVars: {
'autoplay': this.autoplay ? parseInt(this.autoplay) : 1,
'autoplay': this.autoplay ? parseInt(this.autoplay) : 0,
'controls': this.controls ? parseInt(this.controls) : 1

@@ -22,0 +22,0 @@ },

@@ -27,3 +27,3 @@ import { h, proxyCustomElement } from '@stencil/core/internal/client';

playerVars: {
'autoplay': this.autoplay ? parseInt(this.autoplay) : 1,
'autoplay': this.autoplay ? parseInt(this.autoplay) : 0,
'controls': this.controls ? parseInt(this.controls) : 1

@@ -30,0 +30,0 @@ },

@@ -25,3 +25,3 @@ import { r as registerInstance, h } from './index-d8b433f2.js';

playerVars: {
'autoplay': this.autoplay ? parseInt(this.autoplay) : 1,
'autoplay': this.autoplay ? parseInt(this.autoplay) : 0,
'controls': this.controls ? parseInt(this.controls) : 1

@@ -28,0 +28,0 @@ },

@@ -1,1 +0,1 @@

import{p as a,b as e}from"./p-09d3b111.js";(()=>{const e=import.meta.url,p={};return""!==e&&(p.resourcesUrl=new URL(".",e).href),a(p)})().then((a=>e([["p-8eac0608",[[0,"you-tube",{width:[1],height:[1],video_id:[1],autoplay:[1],controls:[1],playerReady:[16],playerStateChange:[16],playbackQualityChange:[16],playbackRateChange:[16],playerApiChange:[16],playerError:[16]}]]]],a)));
import{p as a,b as e}from"./p-09d3b111.js";(()=>{const e=import.meta.url,p={};return""!==e&&(p.resourcesUrl=new URL(".",e).href),a(p)})().then((a=>e([["p-4f0ece73",[[0,"you-tube",{width:[1],height:[1],video_id:[1],autoplay:[1],controls:[1],playerReady:[16],playerStateChange:[16],playbackQualityChange:[16],playbackRateChange:[16],playerApiChange:[16],playerError:[16]}]]]],a)));
{
"name": "you-tube",
"version": "0.1.5",
"version": "0.1.6",
"description": "YouTube Web Component",

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

@@ -28,3 +28,3 @@ ![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D&colorA=16161d&style=flat-square)

#### html
#### In your html or jsx
```html

@@ -39,11 +39,2 @@ <you-tube

#### jsx
```jsx
<you-tube
height='390'
width='640'
video_id='YBwgkr_Sbx0'
playerReady={evt => evt.target.playVideo()}></you-tube>
```
#### Add the following script tag in the head of your .html page

@@ -53,3 +44,3 @@ ```html

type="module"
src="https://unpkg.com/you-tube@0.1.5/dist/you-tube/you-tube.esm.js">
src="https://unpkg.com/you-tube@0.1.6/dist/you-tube/you-tube.esm.js">
</script>

@@ -63,3 +54,3 @@ ```

### Script tag
- Put a script tag similar to this `<script type="module" src="https://unpkg.com/you-tube@0.1.5/dist/you-tube/you-tube.esm.js"></script>` in the head of your .html page as shown above
- Put a script tag similar to this `<script type="module" src="https://unpkg.com/you-tube@0.1.6/dist/you-tube/you-tube.esm.js"></script>` in the head of your .html page as shown above
- Then you can use the element anywhere in your template, JSX, html etc

@@ -66,0 +57,0 @@ - Remember to add type="module" on your script tag as shown above

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc