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

cameraclick

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cameraclick - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

24

dist/cameraclick.js

@@ -80,4 +80,26 @@ function CameraClick(element, camOptions) {

videoCanvas.srcObject = null;
[...mediaTracks.getTracks()].map(track => track.stop());
/* global webkitMediaStream:true */
var MediaStream = window.MediaStream;
if (typeof MediaStream === 'undefined' && typeof webkitMediaStream !== 'undefined') {
MediaStream = webkitMediaStream;
}
if (typeof MediaStream !== 'undefined' && !('stop' in MediaStream.prototype)) {
MediaStream.prototype.stop = function () {
Array.from(this.getTracks()).forEach(function (track) {
console.log('track: ', track);
if (track) {
track.stop();
}
});
};
}
try {
mediaTracks.stop();
} catch (e) {}
if (typeof camOptions.onClose === 'function' && activateCallback) {

@@ -84,0 +106,0 @@ camOptions.onClose();

2

package.json
{
"name": "cameraclick",
"version": "1.1.0",
"version": "1.1.1",
"description": "Simple script to capture images from your browser",

@@ -5,0 +5,0 @@ "files": [

Sorry, the diff of this file is not supported yet

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