Socket
Socket
Sign inDemoInstall

@uppy/webcam

Package Overview
Dependencies
11
Maintainers
5
Versions
93
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0-beta.7 to 4.0.0-beta.8

14

CHANGELOG.md
# @uppy/webcam
## 4.0.0-beta.8
Released: 2024-06-04
Included in: Uppy v4.0.0-beta.10
- @uppy/webcam: remove `facingMode` option (Mikael Finstad / #5200)
## 4.0.0-beta.6

@@ -18,2 +25,9 @@

## 3.4.2
Released: 2024-06-04
Included in: Uppy v3.26.0
- @uppy/webcam: add missing types for `recordedVideo` (Antoine du Hamel / #5208)
## 3.4.0

@@ -20,0 +34,0 @@

1

lib/CameraScreen.d.ts

@@ -9,2 +9,3 @@ import type { I18n } from '@uppy/utils/lib/Translator';

recording: boolean;
recordedVideo: string | null;
modes: string[];

@@ -11,0 +12,0 @@ supportsRecording: boolean;

3

lib/CameraScreen.js

@@ -1,2 +0,2 @@

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); }
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
/* eslint-disable jsx-a11y/media-has-caption */

@@ -30,3 +30,2 @@

src,
// @ts-expect-error TODO: remove unused
recordedVideo,

@@ -33,0 +32,0 @@ recording,

import { type ComponentChild } from 'preact';
export interface VideoSourceSelectProps {
currentDeviceId: string | null;
currentDeviceId: string | MediaStreamTrack | null | undefined;
videoSources: MediaDeviceInfo[];

@@ -5,0 +5,0 @@ onChangeVideoSource: (deviceId: string) => void;

@@ -14,4 +14,2 @@ import { type ComponentChild } from 'preact';

showVideoSourceDropdown?: boolean;
/** @deprecated */
facingMode?: MediaTrackConstraints['facingMode'];
videoConstraints?: MediaTrackConstraints;

@@ -29,3 +27,4 @@ showRecordingLength?: boolean;

videoSources: MediaDeviceInfo[];
currentDeviceId: null | string;
currentDeviceId: string | MediaStreamTrack | null | undefined;
recordedVideo: null | string;
isRecording: boolean;

@@ -40,3 +39,2 @@ [key: string]: unknown;

showVideoSourceDropdown: false;
facingMode: string;
preferredImageMimeType: null;

@@ -43,0 +41,0 @@ preferredVideoMimeType: null;

@@ -1,5 +0,5 @@

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); }
function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; }
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
function _classPrivateFieldLooseBase(e, t) { if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); return e; }
var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
function _classPrivateFieldLooseKey(e) { return "__private_" + id++ + "_" + e; }
import { h } from 'preact';

@@ -18,3 +18,3 @@ import { UIPlugin } from '@uppy/core';

const packageJson = {
"version": "4.0.0-beta.7"
"version": "4.0.0-beta.8"
};

@@ -64,4 +64,2 @@ import locale from "./locale.js";

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

@@ -169,11 +167,6 @@ preferredVideoMimeType: null,

const videoConstraints = {
...(this.opts.videoConstraints || {
facingMode: this.opts.facingMode
}),
// facingMode takes precedence over deviceId, and not needed
// when specific device is selected
...(deviceId ? {
deviceId,
facingMode: null
} : {})
...(this.opts.videoConstraints || {}),
...(deviceId != null && {
deviceId
})
};

@@ -560,3 +553,2 @@ return {

modes,
facingMode,
videoConstraints

@@ -572,3 +564,3 @@ } = this.opts;

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

@@ -575,0 +567,0 @@ return;

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

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

"dependencies": {
"@uppy/utils": "^6.0.0-beta.7",
"@uppy/utils": "^6.0.0-beta.8",
"is-mobile": "^4.0.0",

@@ -38,5 +38,5 @@ "preact": "^10.5.13"

"peerDependencies": {
"@uppy/core": "^4.0.0-beta.8"
"@uppy/core": "^4.0.0-beta.9"
},
"stableVersion": "3.4.0"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc