react-qr-barcode-scanner 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/package.json +17 -14
package/README.md
CHANGED
|
@@ -13,6 +13,8 @@ npm i react-qr-barcode-scanner
|
|
|
13
13
|
## Demo
|
|
14
14
|
Try a demo of the scanner [here](https://jamenamcinteer.github.io/react-qr-barcode-scanner/).
|
|
15
15
|
|
|
16
|
+

|
|
17
|
+
|
|
16
18
|
## Usage in React:
|
|
17
19
|
|
|
18
20
|
```jsx
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-qr-barcode-scanner",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "A simple React Component using the client's webcam to read barcodes and QR codes.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
7
8
|
"author": "Jamena McInteer (https://jamena.dev)",
|
|
8
9
|
"files": [
|
|
9
10
|
"dist"
|
|
@@ -11,7 +12,8 @@
|
|
|
11
12
|
"scripts": {
|
|
12
13
|
"lint": "eslint ./src --ext .js,.jsx,.ts,.tsx --fix",
|
|
13
14
|
"build": "rm -rf dist && tsc --build tsconfig.json --declaration",
|
|
14
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
15
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
16
|
+
"release": "standard-version"
|
|
15
17
|
},
|
|
16
18
|
"repository": {
|
|
17
19
|
"type": "git",
|
|
@@ -31,20 +33,21 @@
|
|
|
31
33
|
"url": "https://github.com/jamenamcinteer/react-qr-barcode-scanner/issues"
|
|
32
34
|
},
|
|
33
35
|
"homepage": "https://github.com/jamenamcinteer/react-qr-barcode-scanner#readme",
|
|
34
|
-
"peerDependencies": {
|
|
35
|
-
"react": "^18.2.0",
|
|
36
|
-
"react-dom": "^18.2.0"
|
|
37
|
-
},
|
|
38
36
|
"dependencies": {
|
|
39
|
-
"@types/react": "^19.0.2",
|
|
40
37
|
"@zxing/library": "^0.21.3",
|
|
41
|
-
"react-webcam": "^7.
|
|
38
|
+
"react-webcam": "^7.2.0"
|
|
42
39
|
},
|
|
43
40
|
"devDependencies": {
|
|
44
|
-
"@
|
|
45
|
-
"@typescript-eslint/
|
|
46
|
-
"eslint": "^
|
|
47
|
-
"eslint
|
|
48
|
-
"
|
|
41
|
+
"@types/react": "^19.1.2",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^8.30.0",
|
|
43
|
+
"@typescript-eslint/parser": "^8.30.0",
|
|
44
|
+
"eslint": "^9.24.0",
|
|
45
|
+
"eslint-plugin-react": "^7.37.5",
|
|
46
|
+
"standard-version": "^9.5.0",
|
|
47
|
+
"typescript": "^5.8.3"
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"react": "^19.1.0",
|
|
51
|
+
"react-dom": "^19.1.0"
|
|
49
52
|
}
|
|
50
|
-
}
|
|
53
|
+
}
|