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 0.29.0 to 0.29.1

types/webcam-tests.ts

9

package.json
{
"name": "@uppy/webcam",
"description": "Uppy plugin that takes photos or records videos using the device's camera.",
"version": "0.29.0",
"version": "0.29.1",
"license": "MIT",
"main": "lib/index.js",
"jsnext:main": "src/index.js",
"style": "dist/style.min.css",

@@ -30,7 +29,7 @@ "types": "types/index.d.ts",

"dependencies": {
"@uppy/utils": "0.29.0",
"@uppy/utils": "0.29.1",
"preact": "^8.2.9"
},
"devDependencies": {
"@uppy/core": "0.29.0"
"@uppy/core": "0.29.1"
},

@@ -40,3 +39,3 @@ "peerDependencies": {

},
"gitHead": "c68f2c7e68d2c12f8a8fb7119f1dae4ca08e4174"
"gitHead": "3ddf4c7548766a0c522b9a45c03b1fd7d4e03d43"
}

@@ -1,21 +0,25 @@

import { Plugin, PluginOptions, Uppy } from '@uppy/core';
import Uppy = require('@uppy/core');
export type WebcamMode = 'video-audio' | 'video-only' | 'audio-only' | 'picture';
declare module Webcam {
export type WebcamMode = 'video-audio' | 'video-only' | 'audio-only' | 'picture';
export interface WebcamOptions extends PluginOptions {
onBeforeSnapshot?: () => Promise<void>;
countdown?: number | boolean;
mirror?: boolean;
facingMode?: string;
modes: WebcamMode[];
export interface WebcamOptions extends Uppy.PluginOptions {
onBeforeSnapshot?: () => Promise<void>;
countdown?: number | boolean;
mirror?: boolean;
facingMode?: string;
modes: WebcamMode[];
}
}
export default class Webcam extends Plugin {
constructor(uppy: Uppy, opts: Partial<WebcamOptions>);
declare class Webcam extends Uppy.Plugin {
constructor(uppy: Uppy.Uppy, opts: Partial<Webcam.WebcamOptions>);
}
export = Webcam;
declare module '@uppy/core' {
export interface Uppy {
use(pluginClass: typeof Webcam, opts: Partial<WebcamOptions>): Uppy;
use(pluginClass: typeof Webcam, opts: Partial<Webcam.WebcamOptions>): Uppy.Uppy;
}
}
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