react-webcam
Advanced tools
Comparing version 5.2.1 to 5.2.2
@@ -6,3 +6,3 @@ import * as React from "react"; | ||
} | ||
export interface WebcamProps extends React.HTMLProps<HTMLVideoElement> { | ||
export declare type WebcamProps = Omit<React.HTMLProps<HTMLVideoElement>, "ref"> & { | ||
audio: boolean; | ||
@@ -20,3 +20,3 @@ audioConstraints?: MediaStreamConstraints["audio"]; | ||
videoConstraints?: MediaStreamConstraints["video"]; | ||
} | ||
}; | ||
interface WebcamState { | ||
@@ -32,4 +32,4 @@ hasUserMedia: boolean; | ||
mirrored: boolean; | ||
onUserMedia: () => void; | ||
onUserMediaError: () => void; | ||
onUserMedia: () => undefined; | ||
onUserMediaError: () => undefined; | ||
screenshotFormat: string; | ||
@@ -43,5 +43,5 @@ screenshotQuality: number; | ||
video: HTMLVideoElement | null; | ||
constructor(props: any); | ||
constructor(props: WebcamProps); | ||
componentDidMount(): void; | ||
componentDidUpdate(nextProps: any): void; | ||
componentDidUpdate(nextProps: WebcamProps): void; | ||
componentWillUnmount(): void; | ||
@@ -48,0 +48,0 @@ private static stopMediaStream; |
@@ -402,4 +402,4 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
mirrored: false, | ||
onUserMedia: function () { }, | ||
onUserMediaError: function () { }, | ||
onUserMedia: function () { return undefined; }, | ||
onUserMediaError: function () { return undefined; }, | ||
screenshotFormat: "image/webp", | ||
@@ -406,0 +406,0 @@ screenshotQuality: 0.92, |
## Please follow the general troubleshooting steps first: | ||
- [ ] Is your app running over HTTPS? | ||
- [ ] Is your app running over HTTPS? (please provide the URL if possible) | ||
- [ ] Have you tried running the demo (https://codepen.io/mozmorris/pen/JLZdoP) on your device? | ||
- [ ] Checked the latest "Can I use" compatbility table? (https://caniuse.com/stream) | ||
@@ -6,0 +7,0 @@ ### Bug reports: |
@@ -141,6 +141,3 @@ // For a detailed explanation regarding each configuration property, visit: | ||
// The glob patterns Jest uses to detect test files | ||
// testMatch: [ | ||
// "**/__tests__/**/*.[jt]s?(x)", | ||
// "**/?(*.)+(spec|test).[tj]s?(x)" | ||
// ], | ||
testMatch: ["**/__tests__/**/*.(spec|test).[jt]s?(x)"], | ||
@@ -169,4 +166,4 @@ // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped | ||
transform: { | ||
"^.+\\.tsx?$": "ts-jest" | ||
} | ||
"^.+\\.tsx?$": "ts-jest", | ||
}, | ||
@@ -173,0 +170,0 @@ // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation |
{ | ||
"name": "react-webcam", | ||
"version": "5.2.1", | ||
"version": "5.2.2", | ||
"description": "React webcam component", | ||
@@ -12,3 +12,3 @@ "main": "dist/react-webcam.js", | ||
"lint": "eslint src/react-webcam.tsx", | ||
"test": "jest" | ||
"test": "tsc && jest" | ||
}, | ||
@@ -15,0 +15,0 @@ "repository": { |
@@ -11,8 +11,8 @@ { | ||
"moduleResolution": "node", | ||
"skipLibCheck": true, | ||
"declaration": true, | ||
"noEmit": true, | ||
"lib": ["dom", "es5", "scripthost", "es6"] | ||
}, | ||
"include": [ | ||
"./src/" | ||
] | ||
"include": ["./src/"] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
160166
689