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

vue-youtube

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-youtube - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "vue-youtube",
"version": "1.0.2",
"version": "1.0.3",
"description": "A Vue.js Plugin",

@@ -5,0 +5,0 @@ "author": "Antério Vieira <anteriovieira@gmail.com>>",

@@ -54,3 +54,3 @@ import uniqid from 'uniqid'

playerStateChange (e) {
if (e.data !== state.UNSTARTED) {
if (e.data && e.data !== state.UNSTARTED) {
this.$emit(this.events[this.data], e.target)

@@ -57,0 +57,0 @@ }

import Youtube from './components/Youtube.js'
function plugin (Vue, options = {}) {
let tag = document.createElement('script')
tag.src = 'https://www.youtube.com/iframe_api'
let firstScriptTag = document.getElementsByTagName('script')[0]
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag)
console.log(tag)
window.onYouTubeIframeAPIReady = function () {
//Vue.component('Youtube', Youtube)
Vue.nextTick()
}
Vue.component('Youtube', Youtube)
}

@@ -18,0 +6,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