Socket
Socket
Sign inDemoInstall

@uppy/webcam

Package Overview
Dependencies
Maintainers
8
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 3.0.0 to 3.1.0

7

CHANGELOG.md
# @uppy/webcam
## 3.1.0
Released: 2022-08-30
Included in: Uppy v3.0.1
- @uppy/dashboard,@uppy/webcam: add nativeCameraFacingMode to Webcam and Dashboard (Artur Paikin / #4047)
## 3.0.0-beta.2

@@ -4,0 +11,0 @@

10

lib/Webcam.js

@@ -20,3 +20,3 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

const packageJson = {
"version": "3.0.0"
"version": "3.1.0"
};

@@ -124,2 +124,3 @@ import locale from './locale.js';

facingMode: 'user',
// @TODO: remove in the next major
preferredImageMimeType: null,

@@ -631,3 +632,5 @@ preferredVideoMimeType: null,

mobileNativeCamera,
modes
modes,
facingMode,
videoConstraints
} = this.opts;

@@ -638,3 +641,4 @@

showNativeVideoCameraButton: isModeAvailable(modes, 'video-only') || isModeAvailable(modes, 'video-audio'),
showNativePhotoCameraButton: isModeAvailable(modes, 'picture')
showNativePhotoCameraButton: isModeAvailable(modes, 'picture'),
nativeCameraFacingMode: (videoConstraints == null ? void 0 : videoConstraints.facingMode) || facingMode
});

@@ -641,0 +645,0 @@ return;

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

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

"dependencies": {
"@uppy/utils": "^5.0.0",
"@uppy/utils": "^5.0.1",
"is-mobile": "^3.1.1",

@@ -36,7 +36,7 @@ "preact": "^10.5.13"

"devDependencies": {
"@jest/globals": "^27.4.2"
"@jest/globals": "^29.0.0"
},
"peerDependencies": {
"@uppy/core": "^3.0.0"
"@uppy/core": "^3.0.1"
}
}

@@ -101,3 +101,3 @@ import { h } from 'preact'

showVideoSourceDropdown: false,
facingMode: 'user',
facingMode: 'user', // @TODO: remove in the next major
preferredImageMimeType: null,

@@ -599,3 +599,3 @@ preferredVideoMimeType: null,

install () {
const { mobileNativeCamera, modes } = this.opts
const { mobileNativeCamera, modes, facingMode, videoConstraints } = this.opts

@@ -606,2 +606,3 @@ if (mobileNativeCamera) {

showNativePhotoCameraButton: isModeAvailable(modes, 'picture'),
nativeCameraFacingMode: videoConstraints?.facingMode || facingMode,
})

@@ -608,0 +609,0 @@ return

@@ -15,2 +15,5 @@ import type { PluginOptions, UIPlugin, PluginTarget } from '@uppy/core'

mirror?: boolean
/**
* @deprecated Use `videoConstraints.facingMode` instead.
*/
facingMode?: string

@@ -17,0 +20,0 @@ showVideoSourceDropdown?: boolean

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