@yudiel/react-qr-scanner
Advanced tools
Comparing version 1.2.3 to 1.2.4
{ | ||
"name": "@yudiel/react-qr-scanner", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "A library to scan qr codes in react.", | ||
@@ -32,3 +32,3 @@ "author": "Yudiel Curbelo", | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.23.3", | ||
"@babel/preset-env": "^7.23.5", | ||
"@babel/preset-react": "^7.23.3", | ||
@@ -39,20 +39,20 @@ "@babel/preset-typescript": "^7.23.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.9.0", | ||
"@types/react": "^18.2.37", | ||
"@types/react-dom": "^18.2.15", | ||
"@storybook/addon-actions": "^7.6.3", | ||
"@storybook/addon-essentials": "^7.6.3", | ||
"@storybook/addon-interactions": "^7.6.3", | ||
"@storybook/addon-links": "^7.6.3", | ||
"@storybook/react": "^7.6.3", | ||
"@storybook/react-webpack5": "7.6.3", | ||
"@types/node": "^20.10.2", | ||
"@types/react": "^18.2.40", | ||
"@types/react-dom": "^18.2.17", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"rollup": "^4.4.1", | ||
"rollup": "^4.6.1", | ||
"rollup-plugin-dts": "^6.1.0", | ||
"rollup-plugin-peer-deps-external": "^2.2.4", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"storybook": "7.5.3", | ||
"storybook": "7.6.3", | ||
"tslib": "^2.6.2", | ||
"typescript": "^5.2.2" | ||
"typescript": "^5.3.2" | ||
}, | ||
@@ -59,0 +59,0 @@ "peerDependencies": { |
@@ -55,1 +55,2 @@ ### Features | ||
| hideCount | `boolean` | `true` | Hide the scanned count as overlay in the video element | | ||
| stopDecoding | `boolean` | `false` | Stop the decoding process | |
@@ -41,5 +41,8 @@ import { useEffect, useState } from 'react'; | ||
off(navigator.mediaDevices, 'devicechange', onChange); | ||
mediaStream.getVideoTracks().forEach((track) => { | ||
track.stop() | ||
}) | ||
if(typeof mediaStream !== 'undefined') { | ||
mediaStream.getVideoTracks().forEach((track) => { | ||
track.stop() | ||
}); | ||
} | ||
}; | ||
@@ -46,0 +49,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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4842873
3717
56
25258