Skip to content

Commit 0c627a5

Browse files
committed
Use forked version of html5-qrcode to avoid including zxing-js which will never be used then
1 parent 53dcd24 commit 0c627a5

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

assets/controllers/pages/barcode_scan_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import {Controller} from "@hotwired/stimulus";
2121
//import * as ZXing from "@zxing/library";
2222

23-
import {Html5QrcodeScanner, Html5Qrcode} from "html5-qrcode";
23+
import {Html5QrcodeScanner, Html5Qrcode} from "@part-db/html5-qrcode";
2424

2525
/* stimulusFetch: 'lazy' */
2626
export default class extends Controller {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"dompurify": "^3.0.3",
8989
"emoji.json": "^15.0.0",
9090
"exports-loader": "^5.0.0",
91-
"html5-qrcode": "^2.2.1",
91+
"@part-db/html5-qrcode": "^3.0.0",
9292
"json-formatter-js": "^2.3.4",
9393
"jszip": "^3.2.0",
9494
"katex": "^0.16.0",

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1874,6 +1874,11 @@
18741874
resolved "https://registry.yarnpkg.com/@orchidjs/unicode-variants/-/unicode-variants-1.1.2.tgz#1fd71791a67fdd1591ebe0dcaadd3964537a824e"
18751875
integrity sha512-5DobW1CHgnBROOEpFlEXytED5OosEWESFvg/VYmH0143oXcijYTprRYJTs+55HzGM4IqxiLFSuqEzu9mPNwVsA==
18761876

1877+
"@part-db/html5-qrcode@^3.0.0":
1878+
version "3.0.1"
1879+
resolved "https://registry.yarnpkg.com/@part-db/html5-qrcode/-/html5-qrcode-3.0.1.tgz#3eafb7b4cb24eab8a4b815800756814f1d10c8bb"
1880+
integrity sha512-NAbXfrW7pEyK3+ZkL14+pHHq3vjBPn7WWvd82OG0BHbiZ5P3XHJnx33WBUaoUAt2pRRAFYVwQNw8OyNUSE8aeg==
1881+
18771882
"@polka/url@^1.0.0-next.24":
18781883
version "1.0.0-next.28"
18791884
resolved "https://registry.yarnpkg.com/@polka/url/-/url-1.0.0-next.28.tgz#d45e01c4a56f143ee69c54dd6b12eade9e270a73"
@@ -4037,11 +4042,6 @@ html-escaper@^2.0.2:
40374042
resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453"
40384043
integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==
40394044

4040-
html5-qrcode@^2.2.1:
4041-
version "2.3.8"
4042-
resolved "https://registry.yarnpkg.com/html5-qrcode/-/html5-qrcode-2.3.8.tgz#0b0cdf7a9926cfd4be530e13a51db47592adfa0d"
4043-
integrity sha512-jsr4vafJhwoLVEDW3n1KvPnCCXWaQfRng0/EEYk1vNcQGcG/htAdhJX0be8YyqMoSz7+hZvOZSTAepsabiuhiQ==
4044-
40454045
htmlparser2@^6.1.0:
40464046
version "6.1.0"
40474047
resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-6.1.0.tgz#c4d762b6c3371a05dbe65e94ae43a9f845fb8fb7"

0 commit comments

Comments
 (0)