Socket
Socket
Sign inDemoInstall

@yudiel/react-qr-scanner

Package Overview
Dependencies
8
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.2 to 1.1.3

13

dist/cjs/types/src/components/QrScanner.d.ts
import type { CSSProperties, ReactElement } from 'react';
import { IUseQrScannerProps } from '../hooks/useQrScanner';
import { OnResultFunction } from '../types';
export interface IQrScannerProps extends Omit<IUseQrScannerProps, 'onResult'> {
import { DecodeHintType } from '@zxing/library';
import { OnErrorFunction, OnResultFunction } from '../types';
export interface IQrScannerProps {
onError: OnErrorFunction;
onResult?: OnResultFunction;
containerStyle?: CSSProperties;
videoStyle?: CSSProperties;
onResult?: OnResultFunction;
onDecode?: (result: string) => void;

@@ -13,3 +14,7 @@ viewFinder?: (props: any) => ReactElement | null;

viewFinderBorder?: number;
constraints?: MediaTrackConstraints;
scanDelay?: number;
deviceId?: string;
hints?: Map<DecodeHintType, any>;
}
export declare const QrScanner: (props: IQrScannerProps) => JSX.Element;
import type { CSSProperties, ReactElement } from 'react';
import { IUseQrScannerProps } from '../hooks/useQrScanner';
import { OnResultFunction } from '../types';
export interface IQrScannerProps extends Omit<IUseQrScannerProps, 'onResult'> {
import { DecodeHintType } from '@zxing/library';
import { OnErrorFunction, OnResultFunction } from '../types';
export interface IQrScannerProps {
onError: OnErrorFunction;
onResult?: OnResultFunction;
containerStyle?: CSSProperties;
videoStyle?: CSSProperties;
onResult?: OnResultFunction;
onDecode?: (result: string) => void;

@@ -13,3 +14,7 @@ viewFinder?: (props: any) => ReactElement | null;

viewFinderBorder?: number;
constraints?: MediaTrackConstraints;
scanDelay?: number;
deviceId?: string;
hints?: Map<DecodeHintType, any>;
}
export declare const QrScanner: (props: IQrScannerProps) => JSX.Element;

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

/// <reference types="react" />
import { CSSProperties, ReactElement } from 'react';

@@ -8,15 +7,7 @@ import { Result, DecodeHintType } from '@zxing/library';

interface IUseQrScannerProps {
onResult: OnResultFunction;
interface IQrScannerProps {
onError: OnErrorFunction;
scanDelay: number;
constraints: MediaTrackConstraints;
deviceId?: string;
hints?: Map<DecodeHintType, any>;
}
interface IQrScannerProps extends Omit<IUseQrScannerProps, 'onResult'> {
onResult?: OnResultFunction;
containerStyle?: CSSProperties;
videoStyle?: CSSProperties;
onResult?: OnResultFunction;
onDecode?: (result: string) => void;

@@ -27,2 +18,6 @@ viewFinder?: (props: any) => ReactElement | null;

viewFinderBorder?: number;
constraints?: MediaTrackConstraints;
scanDelay?: number;
deviceId?: string;
hints?: Map<DecodeHintType, any>;
}

@@ -29,0 +24,0 @@ declare const QrScanner: (props: IQrScannerProps) => JSX.Element;

{
"name": "@yudiel/react-qr-scanner",
"version": "1.1.2",
"version": "1.1.3",
"description": "A library to scan qr codes in react.",

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

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