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 1.1.6 to 1.1.7

4

dist/cjs/components/Counter.d.ts

@@ -1,5 +0,5 @@

interface ICounterProps {
interface CounterProps {
scanCount: number;
}
declare const Counter: (props: ICounterProps) => JSX.Element;
declare const Counter: (props: CounterProps) => JSX.Element;
export default Counter;
import type { CSSProperties, ReactElement } from 'react';
import { DecodeHintType } from '@zxing/library';
import { OnErrorFunction, OnResultFunction } from '../types';
export interface IQrScannerProps {
export interface QrScannerProps {
onError: OnErrorFunction;

@@ -19,2 +19,2 @@ onResult?: OnResultFunction;

}
export declare const QrScanner: (props: IQrScannerProps) => JSX.Element;
export declare const QrScanner: (props: QrScannerProps) => JSX.Element;
import { Result } from '@zxing/library';
interface ITrackerProps {
interface TrackerProps {
result?: Result;

@@ -9,3 +9,3 @@ video: HTMLVideoElement | null;

}
declare const Tracker: (props: ITrackerProps) => JSX.Element;
declare const Tracker: (props: TrackerProps) => JSX.Element;
export default Tracker;
/// <reference types="react" />
import { DecodeHintType } from '@zxing/library';
import { OnResultFunction, OnErrorFunction } from '../types';
export interface IUseQrScannerProps {
export interface UseQrScannerProps {
onResult: OnResultFunction;

@@ -12,3 +12,3 @@ onError: OnErrorFunction;

}
export declare const useQrScanner: (props: IUseQrScannerProps) => {
export declare const useQrScanner: (props: UseQrScannerProps) => {
ref: import("react").RefObject<HTMLVideoElement>;

@@ -15,0 +15,0 @@ start: () => Promise<void>;

@@ -1,5 +0,5 @@

interface ICounterProps {
interface CounterProps {
scanCount: number;
}
declare const Counter: (props: ICounterProps) => JSX.Element;
declare const Counter: (props: CounterProps) => JSX.Element;
export default Counter;
import type { CSSProperties, ReactElement } from 'react';
import { DecodeHintType } from '@zxing/library';
import { OnErrorFunction, OnResultFunction } from '../types';
export interface IQrScannerProps {
export interface QrScannerProps {
onError: OnErrorFunction;

@@ -19,2 +19,2 @@ onResult?: OnResultFunction;

}
export declare const QrScanner: (props: IQrScannerProps) => JSX.Element;
export declare const QrScanner: (props: QrScannerProps) => JSX.Element;
import { Result } from '@zxing/library';
interface ITrackerProps {
interface TrackerProps {
result?: Result;

@@ -9,3 +9,3 @@ video: HTMLVideoElement | null;

}
declare const Tracker: (props: ITrackerProps) => JSX.Element;
declare const Tracker: (props: TrackerProps) => JSX.Element;
export default Tracker;
/// <reference types="react" />
import { DecodeHintType } from '@zxing/library';
import { OnResultFunction, OnErrorFunction } from '../types';
export interface IUseQrScannerProps {
export interface UseQrScannerProps {
onResult: OnResultFunction;

@@ -12,3 +12,3 @@ onError: OnErrorFunction;

}
export declare const useQrScanner: (props: IUseQrScannerProps) => {
export declare const useQrScanner: (props: UseQrScannerProps) => {
ref: import("react").RefObject<HTMLVideoElement>;

@@ -15,0 +15,0 @@ start: () => Promise<void>;

@@ -7,3 +7,3 @@ import { CSSProperties, ReactElement } from 'react';

interface IQrScannerProps {
interface QrScannerProps {
onError: OnErrorFunction;

@@ -23,6 +23,6 @@ onResult?: OnResultFunction;

}
declare const QrScanner: (props: IQrScannerProps) => JSX.Element;
declare const QrScanner: (props: QrScannerProps) => JSX.Element;
declare const useMediaDevices: (constraints?: MediaTrackConstraints) => MediaTrackSettings[];
export { IQrScannerProps, QrScanner, useMediaDevices };
export { QrScanner, QrScannerProps, useMediaDevices };
{
"name": "@yudiel/react-qr-scanner",
"version": "1.1.6",
"version": "1.1.7",
"description": "A library to scan qr codes in react.",

@@ -32,27 +32,26 @@ "author": "Yudiel Curbelo",

"devDependencies": {
"@babel/preset-env": "^7.20.2",
"@babel/preset-env": "^7.21.4",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.21.0",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-typescript": "^11.0.0",
"@storybook/addon-actions": "^7.0.0-rc.5",
"@storybook/addon-essentials": "^7.0.0-rc.5",
"@storybook/addon-interactions": "^7.0.0-rc.5",
"@storybook/addon-links": "^7.0.0-rc.5",
"@storybook/addon-mdx-gfm": "7.0.0-rc.5",
"@storybook/react": "^7.0.0-rc.5",
"@storybook/react-webpack5": "7.0.0-rc.5",
"@types/node": "^18.15.5",
"@types/react": "^18.0.28",
"@babel/preset-typescript": "^7.21.4",
"@rollup/plugin-commonjs": "^24.1.0",
"@rollup/plugin-node-resolve": "^15.0.2",
"@rollup/plugin-typescript": "^11.1.0",
"@storybook/addon-actions": "^7.0.6",
"@storybook/addon-essentials": "^7.0.6",
"@storybook/addon-interactions": "^7.0.6",
"@storybook/addon-links": "^7.0.6",
"@storybook/react": "^7.0.6",
"@storybook/react-webpack5": "7.0.6",
"@types/node": "^18.15.11",
"@types/react": "^18.0.37",
"@types/react-dom": "^18.0.11",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup": "^3.20.0",
"rollup": "^3.20.6",
"rollup-plugin-dts": "^5.3.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-terser": "^7.0.2",
"storybook": "7.0.0-rc.5",
"storybook": "7.0.6",
"tslib": "^2.5.0",
"typescript": "^5.0.2"
"typescript": "^5.0.4"
},

@@ -64,5 +63,5 @@ "peerDependencies": {

"dependencies": {
"@zxing/library": "^0.19.2"
"@zxing/library": "^0.19.3"
},
"packageManager": "yarn@3.3.1"
}

@@ -8,3 +8,3 @@ import { useEffect, useRef, useCallback, useState, useMemo } from 'react';

export interface IUseQrScannerProps {
export interface UseQrScannerProps {
onResult: OnResultFunction;

@@ -18,3 +18,3 @@ onError: OnErrorFunction;

export const useQrScanner = (props: IUseQrScannerProps) => {
export const useQrScanner = (props: UseQrScannerProps) => {
const { onResult, onError, scanDelay, hints, deviceId } = props;

@@ -21,0 +21,0 @@

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

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 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