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

video-worker

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

video-worker - npm Package Compare versions

Comparing version 1.1.10 to 1.1.11

16

package.json
{
"name": "video-worker",
"version": "1.1.10",
"version": "1.1.11",
"description": "API wrapper for Youtube, Vimeo and Self-Hosted videos",

@@ -33,8 +33,8 @@ "license": "MIT",

"devDependencies": {
"@babel/core": "^7.12.9",
"@babel/preset-env": "^7.12.7",
"@babel/register": "^7.12.1",
"@babel/core": "^7.13.14",
"@babel/preset-env": "^7.13.12",
"@babel/register": "^7.13.14",
"babel-loader": "^8.2.2",
"del": "^6.0.0",
"eslint-config-nk": "^0.0.17",
"eslint-config-nk": "^0.0.19",
"gulp": "^4.0.2",

@@ -49,8 +49,8 @@ "gulp-header": "^2.0.9",

"gulp-watch": "^5.0.1",
"husky": "^4.3.0",
"husky": "^6.0.0",
"json-file": "^0.1.0",
"lint-staged": "^10.5.2",
"lint-staged": "^10.5.4",
"micromatch": "^4.0.2",
"vinyl-named": "^1.1.0",
"webpack-stream": "^6.1.1"
"webpack-stream": "^6.1.2"
},

@@ -57,0 +57,0 @@ "dependencies": {

@@ -53,3 +53,3 @@ # Video Worker

loop | bool | `false` | Video playing loop.
showContols | bool | `true` | Video controls.
showControls | bool | `true` | Video controls.
mute | bool | `false` | Mute sound.

@@ -56,0 +56,0 @@ volume | int | `100` | Volume level from 0 to 100.

@@ -53,3 +53,3 @@ import global from 'global';

volume: 100,
showContols: true,
showControls: true,

@@ -63,2 +63,9 @@ // start / end video time in seconds

// Fix wrong option name.
// Thanks to https://github.com/nk-o/video-worker/issues/13.
if ( 'undefined' !== typeof self.options.showContols ) {
self.options.showControls = self.options.showContols;
delete self.options.showContols;
}
// check URL

@@ -444,3 +451,3 @@ self.videoID = self.parseURL( url );

// hide controls
if ( ! self.options.showContols ) {
if ( ! self.options.showControls ) {
self.playerOptions.playerVars.iv_load_policy = 3;

@@ -565,3 +572,3 @@ self.playerOptions.playerVars.modestbranding = 1;

// hide controls
if ( ! self.options.showContols ) {
if ( ! self.options.showControls ) {
self.playerOptions.badge = 0;

@@ -668,3 +675,3 @@ self.playerOptions.byline = 0;

// show controls
if ( self.options.showContols ) {
if ( self.options.showControls ) {
self.$video.controls = true;

@@ -671,0 +678,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