Socket
Socket
Sign inDemoInstall

@yudiel/react-qr-scanner

Package Overview
Dependencies
11
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-beta.4 to 2.0.0-beta.5

1

dist/cjs/index.d.ts
export * from './components/Scanner';
export * from './hooks/useDevices';
export * from './misc/overlays';
export * from './types';
export * from './components/Scanner';
export * from './hooks/useDevices';
export * from './misc/overlays';
export * from './types';

@@ -24,2 +24,9 @@ import React, { CSSProperties, ReactNode } from 'react';

interface IUseScannerState {
lastScan: number;
lastOnScan: number;
contentBefore: string[];
lastScanHadContent: boolean;
}
interface IDetectedBarcode {

@@ -32,2 +39,24 @@ boundingBox: IBoundingBox;

interface IStartTaskResult {
type: 'start';
data: {
videoEl: HTMLVideoElement;
stream: MediaStream;
capabilities: Partial<MediaTrackCapabilities>;
constraints: MediaTrackConstraints;
isTorchOn: boolean;
};
}
interface IStopTaskResult {
type: 'stop';
data: {};
}
interface IStartCamera {
constraints: MediaTrackConstraints;
torch: boolean;
restart?: boolean;
}
interface IScannerStyles {

@@ -61,2 +90,2 @@ container?: CSSProperties;

export { type IScannerProps, Scanner, boundingBox, centerText, outline, useDevices };
export { type IBoundingBox, type IDetectedBarcode, type IPoint, type IScannerComponents, type IScannerProps, type IScannerStyles, type IStartCamera, type IStartTaskResult, type IStopTaskResult, type IUseScannerState, Scanner, type TrackFunction, boundingBox, centerText, outline, useDevices };

2

package.json
{
"name": "@yudiel/react-qr-scanner",
"version": "2.0.0-beta.4",
"version": "2.0.0-beta.5",
"description": "A library to scan qr codes in react.",

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

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