Socket
Socket
Sign inDemoInstall

@uppy/webcam

Package Overview
Dependencies
Maintainers
5
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/webcam - npm Package Compare versions

Comparing version 1.5.4 to 1.5.5

15

lib/index.js

@@ -176,8 +176,11 @@ var _class, _temp;

var options = {};
var preferredVideoMimeType = this.opts.preferredVideoMimeType; // Attempt to use the passed preferredVideoMimeType (if any) during recording.
// If the browser doesn't support it, we'll fall back to the browser default instead
var options = {}; // Safari don't have support for isTypeSupported api.
if (preferredVideoMimeType && MediaRecorder.isTypeSupported(preferredVideoMimeType) && getFileTypeExtension(preferredVideoMimeType)) {
options.mimeType = preferredVideoMimeType;
if (MediaRecorder.isTypeSupported) {
var preferredVideoMimeType = this.opts.preferredVideoMimeType; // Attempt to use the passed preferredVideoMimeType (if any) during recording.
// If the browser doesn't support it, we'll fall back to the browser default instead
if (preferredVideoMimeType && MediaRecorder.isTypeSupported(preferredVideoMimeType) && getFileTypeExtension(preferredVideoMimeType)) {
options.mimeType = preferredVideoMimeType;
}
}

@@ -455,2 +458,2 @@

return Webcam;
}(Plugin), _class.VERSION = "1.5.4", _temp);
}(Plugin), _class.VERSION = "1.5.5", _temp);

4

package.json
{
"name": "@uppy/webcam",
"description": "Uppy plugin that takes photos or records videos using the device's camera.",
"version": "1.5.4",
"version": "1.5.5",
"license": "MIT",

@@ -35,3 +35,3 @@ "main": "lib/index.js",

},
"gitHead": "2c98271103539fbe46b37b9f8c2746bc7188b9c8"
"gitHead": "b20bc7e1f1a3e4132dde0c311fff1ff18080414c"
}

@@ -159,8 +159,12 @@ const { h } = require('preact')

const options = {}
const preferredVideoMimeType = this.opts.preferredVideoMimeType
// Attempt to use the passed preferredVideoMimeType (if any) during recording.
// If the browser doesn't support it, we'll fall back to the browser default instead
if (preferredVideoMimeType && MediaRecorder.isTypeSupported(preferredVideoMimeType) && getFileTypeExtension(preferredVideoMimeType)) {
options.mimeType = preferredVideoMimeType
// Safari don't have support for isTypeSupported api.
if (MediaRecorder.isTypeSupported) {
const preferredVideoMimeType = this.opts.preferredVideoMimeType
// Attempt to use the passed preferredVideoMimeType (if any) during recording.
// If the browser doesn't support it, we'll fall back to the browser default instead
if (preferredVideoMimeType && MediaRecorder.isTypeSupported(preferredVideoMimeType) && getFileTypeExtension(preferredVideoMimeType)) {
options.mimeType = preferredVideoMimeType
}
}

@@ -167,0 +171,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