New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mediapipe/control_utils

Package Overview
Dependencies
Maintainers
4
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mediapipe/control_utils - npm Package Compare versions

Comparing version 0.5.1625858891 to 0.5.1625860369

2

control_utils.js

@@ -36,3 +36,3 @@ (function(){/*

W.prototype.update=function(){var a=this.options[this.g.field];a=this.g.discrete&&!Array.isArray(this.g.discrete)?Object.keys(this.g.discrete).indexOf(a):a;this.i.value=""+a;sa(this,a)};function sa(a,b){b=a.g.discrete?Object.values(a.g.discrete)[b]:b;a.h.textContent=""+b};var ta={facingMode:"user",width:640,height:480},ua={allowVideo:!0,allowImage:!0,examples:{videos:[],images:[]}};function X(a){return"https://fonts.gstatic.com/s/i/googlematerialicons/"+a+"/v8/white-24dp/1x/gm_"+a+"_white_24dp.png"}function Y(a){this.l=[];this.A=0;this.j=!1;this.g=Object.assign(Object.assign({},ua),a);this.g.cameraOptions=Object.assign(Object.assign({},this.g.cameraOptions||{}),ta)}
function va(a){return L(a,function c(){var d,f,g,e,h;return I(c,function(k){if(1==k.g)return F(k,navigator.mediaDevices.getUserMedia({video:!0}),2);if(3!=k.g)return F(k,navigator.mediaDevices.enumerateDevices(),3);d=k.l;f=[];g=v(d);for(e=g.next();!e.done;e=g.next())h=e.value,""!==h.label&&f.push({label:h.label,deviceId:h.deviceId});return k.return(f)})})}function Z(a){window.requestAnimationFrame(function(){a.tick()})}
function va(a){return L(a,function c(){var d,f,g,e,h;return I(c,function(k){if(1==k.g)return F(k,navigator.mediaDevices.getUserMedia({video:!0}),2);if(3!=k.g)return F(k,navigator.mediaDevices.enumerateDevices(),3);d=k.l;f=[];g=v(d);for(e=g.next();!e.done;e=g.next())h=e.value,""!==h.label&&"videoinput"===h.kind&&f.push({label:h.label,deviceId:h.deviceId});return k.return(f)})})}function Z(a){window.requestAnimationFrame(function(){a.tick()})}
Y.prototype.tick=function(){var a=this,b=null;this.j&&(this.video.paused||this.video.currentTime===this.A||(this.m||(wa(this,this.video.currentTime/this.video.duration),this.i.time.textContent=xa(this.video.currentTime)),this.A=this.video.currentTime,b=this.g.onFrame?this.g.onFrame(this.video,{width:this.video.videoWidth,height:this.video.videoHeight}):null),b?b.then(function(){Z(a)}):Z(this))};function ya(a,b){a.video.srcObject=b;a.video.onloadedmetadata=function(){a.video.play();a.j=!0;Z(a)}}

@@ -39,0 +39,0 @@ function za(a){return L(a,function c(){var d=this,f,g,e,h;return I(c,function(k){d.i.parent.style.display="none";d.j=!1;if(d.m){f=d.m.getTracks();g=v(f);for(e=g.next();!e.done;e=g.next())h=e.value,h.stop();d.m=void 0}k.g=0})})}

{
"name": "@mediapipe/control_utils",
"version": "0.5.1625858891",
"version": "0.5.1625860369",
"description": "Mediapipe Simple Control Panel",

@@ -5,0 +5,0 @@ "main": "control_utils.js",

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