Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
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.10 to 1.2.0

4

dist/cjs/hooks/useQrScanner.d.ts
/// <reference types="react" />
import { DecodeHintType } from '@zxing/library';
import { OnResultFunction, OnErrorFunction } from '../types';
export interface UseQrScannerProps {
export interface IUseQrScannerProps {
onResult: OnResultFunction;

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

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

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

/// <reference types="react" />
import { DecodeHintType } from '@zxing/library';
import { OnResultFunction, OnErrorFunction } from '../types';
export interface UseQrScannerProps {
export interface IUseQrScannerProps {
onResult: OnResultFunction;

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

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

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

@@ -26,2 +26,2 @@ import React, { CSSProperties, ReactElement } from 'react';

export { QrScanner, QrScannerProps, useMediaDevices };
export { QrScanner, type QrScannerProps, useMediaDevices };
{
"name": "@yudiel/react-qr-scanner",
"version": "1.1.10",
"version": "1.2.0",
"description": "A library to scan qr codes in react.",

@@ -32,30 +32,30 @@ "author": "Yudiel Curbelo",

"devDependencies": {
"@babel/preset-env": "^7.22.9",
"@babel/preset-react": "^7.22.5",
"@babel/preset-typescript": "^7.22.5",
"@rollup/plugin-commonjs": "^25.0.3",
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-typescript": "^11.1.2",
"@storybook/addon-actions": "^7.1.1",
"@storybook/addon-essentials": "^7.1.1",
"@storybook/addon-interactions": "^7.1.1",
"@storybook/addon-links": "^7.1.1",
"@storybook/react": "^7.1.1",
"@storybook/react-webpack5": "7.1.1",
"@types/node": "^20.4.5",
"@types/react": "^18.2.17",
"@types/react-dom": "^18.2.7",
"@babel/preset-env": "^7.23.2",
"@babel/preset-react": "^7.22.15",
"@babel/preset-typescript": "^7.23.2",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.5",
"@storybook/addon-actions": "^7.5.3",
"@storybook/addon-essentials": "^7.5.3",
"@storybook/addon-interactions": "^7.5.3",
"@storybook/addon-links": "^7.5.3",
"@storybook/react": "^7.5.3",
"@storybook/react-webpack5": "7.5.3",
"@types/node": "^20.8.10",
"@types/react": "^18.2.36",
"@types/react-dom": "^18.2.14",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup": "^3.27.0",
"rollup-plugin-dts": "^5.3.0",
"rollup": "^4.3.0",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-terser": "^7.0.2",
"storybook": "7.1.1",
"tslib": "^2.6.1",
"typescript": "^5.1.6"
"storybook": "7.5.3",
"tslib": "^2.6.2",
"typescript": "^5.2.2"
},
"peerDependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react": "^18.0.0",
"react-dom": "^18.0.0"
},

@@ -62,0 +62,0 @@ "dependencies": {

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

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

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

export const useQrScanner = (props: UseQrScannerProps) => {
export const useQrScanner = (props: IUseQrScannerProps) => {
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

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