Socket
Socket
Sign inDemoInstall

@yudiel/react-qr-scanner

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yudiel/react-qr-scanner - npm Package Compare versions

Comparing version 2.0.0-beta.2 to 2.0.0-beta.3

1

dist/cjs/assets/CameraOff.d.ts
import React, { CSSProperties } from 'react';
interface IFlashOnProps {
onClick: () => void;
disabled: boolean;
className?: string;

@@ -5,0 +6,0 @@ style?: CSSProperties;

import React, { CSSProperties } from 'react';
interface IFlashOnProps {
onClick: () => void;
disabled: boolean;
className?: string;

@@ -5,0 +6,0 @@ style?: CSSProperties;

2

dist/cjs/components/Finder.d.ts

@@ -5,3 +5,3 @@ import React from 'react';

interface IFinderProps {
enabled: boolean;
scanning: boolean;
loading: boolean;

@@ -8,0 +8,0 @@ video: HTMLVideoElement | null;

import React from 'react';
interface ITorchProps {
enabled: boolean;
scanning: boolean;
startScanning: (deviceId?: string | undefined) => void;

@@ -5,0 +5,0 @@ stopScanning?: () => void;

import React from 'react';
interface ITorchProps {
enabled: boolean;
scanning: boolean;
switchTorch?: (value: boolean) => void;

@@ -5,0 +5,0 @@ }

@@ -14,2 +14,3 @@ import { RefObject } from 'react';

loading: boolean;
scanning: boolean;
switchTorch?: (value: boolean) => void;

@@ -16,0 +17,0 @@ getSettings?: () => MediaTrackSettings | undefined;

import React, { CSSProperties } from 'react';
interface IFlashOnProps {
onClick: () => void;
disabled: boolean;
className?: string;

@@ -5,0 +6,0 @@ style?: CSSProperties;

import React, { CSSProperties } from 'react';
interface IFlashOnProps {
onClick: () => void;
disabled: boolean;
className?: string;

@@ -5,0 +6,0 @@ style?: CSSProperties;

@@ -5,3 +5,3 @@ import React from 'react';

interface IFinderProps {
enabled: boolean;
scanning: boolean;
loading: boolean;

@@ -8,0 +8,0 @@ video: HTMLVideoElement | null;

import React from 'react';
interface ITorchProps {
enabled: boolean;
scanning: boolean;
startScanning: (deviceId?: string | undefined) => void;

@@ -5,0 +5,0 @@ stopScanning?: () => void;

import React from 'react';
interface ITorchProps {
enabled: boolean;
scanning: boolean;
switchTorch?: (value: boolean) => void;

@@ -5,0 +5,0 @@ }

@@ -14,2 +14,3 @@ import { RefObject } from 'react';

loading: boolean;
scanning: boolean;
switchTorch?: (value: boolean) => void;

@@ -16,0 +17,0 @@ getSettings?: () => MediaTrackSettings | undefined;

@@ -54,2 +54,3 @@ import React, { CSSProperties, RefObject } from 'react';

loading: boolean;
scanning: boolean;
switchTorch?: (value: boolean) => void;

@@ -56,0 +57,0 @@ getSettings?: () => MediaTrackSettings | undefined;

{
"name": "@yudiel/react-qr-scanner",
"version": "2.0.0-beta.2",
"version": "2.0.0-beta.3",
"description": "A library to scan qr codes in react.",

@@ -5,0 +5,0 @@ "author": "Yudiel Curbelo",

@@ -64,2 +64,13 @@ ### Features

### IUseContinuousScannerReturn Interface
| Property | Type | Description |
|--------------------|------------------------------------------------|--------------------------------------------------------------------------|
| `ref` | `RefObject<HTMLVideoElement>` | A reference to the video element used for scanning. |
| `startScanning` | `() => void` | A function to initiate the scanning process. |
| `stopScanning` | `() => void` | A function to stop the scanning process. |
| `loading` | `boolean` | Indicates whether the scanner is in the process of initializing. |
| `scanning` | `boolean` | Indicates whether the scanner is currently active and scanning. |
| `switchTorch` | `(value: boolean) => void` \| `undefined` | An optional function to toggle the device's torch (flashlight) feature. |
| `getSettings` | `() => MediaTrackSettings \| undefined` | An optional function to get the current settings of the media track. |
### Error Interface

@@ -66,0 +77,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 too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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