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 2.2.0 to 2.2.1

7

CHANGELOG.md
# @uppy/webcam
## 2.2.1
Released: 2022-05-30
Included in: Uppy v2.11.0
- @uppy/angular,@uppy/audio,@uppy/aws-s3-multipart,@uppy/aws-s3,@uppy/box,@uppy/core,@uppy/dashboard,@uppy/drag-drop,@uppy/dropbox,@uppy/facebook,@uppy/file-input,@uppy/form,@uppy/golden-retriever,@uppy/google-drive,@uppy/image-editor,@uppy/informer,@uppy/instagram,@uppy/onedrive,@uppy/progress-bar,@uppy/react,@uppy/redux-dev-tools,@uppy/robodog,@uppy/screen-capture,@uppy/status-bar,@uppy/store-default,@uppy/store-redux,@uppy/thumbnail-generator,@uppy/transloadit,@uppy/tus,@uppy/unsplash,@uppy/url,@uppy/vue,@uppy/webcam,@uppy/xhr-upload,@uppy/zoom: doc: update bundler recommendation (Antoine du Hamel / #3763)
## 2.2.0

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

2

lib/Webcam.js

@@ -30,3 +30,3 @@ "use strict";

const packageJson = {
"version": "2.2.0"
"version": "2.2.1"
};

@@ -33,0 +33,0 @@

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

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

"dependencies": {
"@uppy/utils": "^4.0.7",
"@uppy/utils": "^4.1.0",
"preact": "^10.5.13"
},
"devDependencies": {
"@jest/globals": "^27.4.2"
},
"peerDependencies": {
"@uppy/core": "^2.2.0"
"@uppy/core": "^2.3.0"
}
}

@@ -34,4 +34,2 @@ # @uppy/webcam

We recommend installing from npm and then using a module bundler such as [Webpack](https://webpack.js.org/), [Browserify](http://browserify.org/) or [Rollup.js](http://rollupjs.org/).
Alternatively, you can also use this plugin in a pre-built bundle from Transloadit’s CDN: Edgly. In that case `Uppy` will attach itself to the global `window.Uppy` object. See the [main Uppy documentation](https://uppy.io/docs/#Installation) for instructions.

@@ -38,0 +36,0 @@

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

import { describe, expect, it } from '@jest/globals'
import formatSeconds from './formatSeconds.js'

@@ -2,0 +3,0 @@

/* eslint-disable max-classes-per-file, class-methods-use-this */
import { describe, expect, it } from '@jest/globals'
import supportsMediaRecorder from './supportsMediaRecorder.js'

@@ -6,3 +7,3 @@

it('should return true if MediaRecorder is supported', () => {
global.MediaRecorder = class MediaRecorder {
globalThis.MediaRecorder = class MediaRecorder {
start () {}

@@ -14,9 +15,9 @@ }

it('should return false if MediaRecorder is not supported', () => {
global.MediaRecorder = undefined
globalThis.MediaRecorder = undefined
expect(supportsMediaRecorder()).toEqual(false)
global.MediaRecorder = class MediaRecorder {}
globalThis.MediaRecorder = class MediaRecorder {}
expect(supportsMediaRecorder()).toEqual(false)
global.MediaRecorder = class MediaRecorder {
globalThis.MediaRecorder = class MediaRecorder {
foo () {}

@@ -23,0 +24,0 @@ }

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

import { describe, expect, it } from '@jest/globals'
import Uppy from '@uppy/core'

@@ -7,3 +8,3 @@ import Webcam from '../lib/index.js'

it('should not have a mimeType set if no preferences given', () => {
global.MediaRecorder = {
globalThis.MediaRecorder = {
isTypeSupported: () => true,

@@ -19,3 +20,3 @@ }

it('should use preferredVideoMimeType', () => {
global.MediaRecorder = {
globalThis.MediaRecorder = {
isTypeSupported: (ty) => ty === 'video/webm',

@@ -31,3 +32,3 @@ }

it('should not use preferredVideoMimeType if it is not supported', () => {
global.MediaRecorder = {
globalThis.MediaRecorder = {
isTypeSupported: (ty) => ty === 'video/webm',

@@ -43,3 +44,3 @@ }

it('should pick type based on `allowedFileTypes`', () => {
global.MediaRecorder = {
globalThis.MediaRecorder = {
isTypeSupported: () => true,

@@ -57,3 +58,3 @@ }

it('should use first supported type from allowedFileTypes', () => {
global.MediaRecorder = {
globalThis.MediaRecorder = {
isTypeSupported: (ty) => ty === 'video/webm',

@@ -71,3 +72,3 @@ }

it('should prefer preferredVideoMimeType over allowedFileTypes', () => {
global.MediaRecorder = {
globalThis.MediaRecorder = {
isTypeSupported: () => true,

@@ -86,3 +87,3 @@ }

it('should not use allowedFileTypes if they are unsupported', () => {
global.MediaRecorder = {
globalThis.MediaRecorder = {
isTypeSupported: () => false,

@@ -89,0 +90,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