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

@techassi/vue-youtube-iframe

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@techassi/vue-youtube-iframe - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

12

lib/vue-youtube-iframe.esm.js
// Copyright © 2020-present Techassi
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// vue-youtube-iframe 1.0.1
// vue-youtube-iframe 1.0.2
import { h, nextTick } from 'vue';

@@ -70,2 +70,6 @@

},
noCookie: {
type: Boolean,
default: false,
},
},

@@ -86,3 +90,7 @@ data() {

manager.register((factory, uid) => {
const host = this.noCookie
? 'https://www.youtube-nocookie.com'
: 'https://www.youtube.com';
this.elementId = uid;
nextTick().then(() => {

@@ -94,3 +102,3 @@ this.player = new factory.Player(this.elementId, {

videoId,
host: 'https://www.youtube.com',
host,
events: {

@@ -97,0 +105,0 @@ onReady: (event) => {

// Copyright © 2020-present Techassi
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// vue-youtube-iframe 1.0.1
// vue-youtube-iframe 1.0.2
(function (global, factory) {

@@ -74,2 +74,6 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :

},
noCookie: {
type: Boolean,
default: false,
},
},

@@ -90,3 +94,7 @@ data() {

manager.register((factory, uid) => {
const host = this.noCookie
? 'https://www.youtube-nocookie.com'
: 'https://www.youtube.com';
this.elementId = uid;
vue.nextTick().then(() => {

@@ -98,3 +106,3 @@ this.player = new factory.Player(this.elementId, {

videoId,
host: 'https://www.youtube.com',
host,
events: {

@@ -101,0 +109,0 @@ onReady: (event) => {

3

package.json
{
"name": "@techassi/vue-youtube-iframe",
"version": "1.0.2",
"version": "1.0.3",
"description": "This plugin makes it easy to integrate the YouTube Iframe API into your Vue app. This plugin is Vue V3 compatible.",

@@ -34,3 +34,2 @@ "main": "lib/vue-youtube-iframe.umd.js",

"devDependencies": {
"@rollup/plugin-buble": "^0.21.3",
"eslint": "^7.10.0",

@@ -37,0 +36,0 @@ "eslint-config-airbnb-base": "^14.2.0",

@@ -10,3 +10,3 @@ # vue-youtube-iframe

```shell
npm install vue-youtube-iframe --save
npm install @techassi/vue-youtube-iframe --save
```

@@ -17,3 +17,3 @@

```shell
yarn add vue-youtube-iframe
yarn add @techassi/vue-youtube-iframe
```

@@ -52,2 +52,3 @@

:player-height="HEIGHT"
:no-cookie="TRUE / FALSE"
:player-parameters="YT_PLAYER_PARAMS"

@@ -59,2 +60,10 @@ @EVENT="CALLBACK"

#### Available props
- `:videoId / :video-id`: Specify the YT video id (e.g. `dQw4w9WgXcQ`)
- `:playerWidth / :player-width`: Specify the player's width in pixels
- `:playerHeight / :player-height`: Specify the player's height in pixels
- `:noCookie / :no-cookie`: If set to `true` the host will be set to `https://www.youtube-nocookie.com`
- `:playerParameters / :player-parameters`: Set player parameters, see [here](#available-player-parameters)
#### Available player parameters

@@ -61,0 +70,0 @@

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