From d1bb0b0d4536d643e9485de0f3db01e62edc7469 Mon Sep 17 00:00:00 2001 From: Ze-Zheng Wu Date: Tue, 24 Oct 2023 12:30:35 +0800 Subject: [PATCH] feat(QRCode): support QR code Model 1 update barcode-detector to support QR code Model 1 --- package.json | 2 +- pnpm-lock.yaml | 88 ++++++++++++-------------------------------------- 2 files changed, 21 insertions(+), 69 deletions(-) diff --git a/package.json b/package.json index 131e2f44..b3f50fbc 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "dist" ], "dependencies": { - "barcode-detector": "2.0.3", + "barcode-detector": "2.1.0", "webrtc-adapter": "^8.2.3" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 81642ecf..d2a83642 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,8 +6,8 @@ settings: dependencies: barcode-detector: - specifier: 2.0.3 - version: 2.0.3(react@18.2.0) + specifier: 2.1.0 + version: 2.1.0 webrtc-adapter: specifier: ^8.2.3 version: 8.2.3 @@ -75,7 +75,7 @@ devDependencies: version: 3.5.2(@types/node@20.5.6)(rollup@2.79.1)(typescript@5.1.6)(vite@4.4.9) vitepress: specifier: 1.0.0-rc.4 - version: 1.0.0-rc.4(@algolia/client-search@4.19.1)(@types/node@20.5.6)(react@18.2.0)(search-insights@2.7.0) + version: 1.0.0-rc.4(@algolia/client-search@4.19.1)(@types/node@20.5.6)(search-insights@2.7.0) vue: specifier: 3.3.4 version: 3.3.4 @@ -1412,10 +1412,10 @@ packages: resolution: {integrity: sha512-SPiDHaWKQZpwR2siD0KQUwlStvIAnEyK6tAE2h2Wuoq8ue9skzhlyVQ1ddzOxX6khULnAALDiR/isSF3bnuciA==} dev: true - /@docsearch/js@3.5.2(@algolia/client-search@4.19.1)(react@18.2.0)(search-insights@2.7.0): + /@docsearch/js@3.5.2(@algolia/client-search@4.19.1)(search-insights@2.7.0): resolution: {integrity: sha512-p1YFTCDflk8ieHgFJYfmyHBki1D61+U9idwrLh+GQQMrBSP3DLGKpy0XUJtPjAOPltcVbqsTjiPFfH7JImjUNg==} dependencies: - '@docsearch/react': 3.5.2(@algolia/client-search@4.19.1)(react@18.2.0)(search-insights@2.7.0) + '@docsearch/react': 3.5.2(@algolia/client-search@4.19.1)(search-insights@2.7.0) preact: 10.17.1 transitivePeerDependencies: - '@algolia/client-search' @@ -1425,7 +1425,7 @@ packages: - search-insights dev: true - /@docsearch/react@3.5.2(@algolia/client-search@4.19.1)(react@18.2.0)(search-insights@2.7.0): + /@docsearch/react@3.5.2(@algolia/client-search@4.19.1)(search-insights@2.7.0): resolution: {integrity: sha512-9Ahcrs5z2jq/DcAvYtvlqEBHImbm4YJI8M9y0x6Tqg598P40HTEkX7hsMcIuThI+hTFxRGZ9hll0Wygm2yEjng==} peerDependencies: '@types/react': '>= 16.8.0 < 19.0.0' @@ -1446,7 +1446,6 @@ packages: '@algolia/autocomplete-preset-algolia': 1.9.3(@algolia/client-search@4.19.1)(algoliasearch@4.19.1) '@docsearch/css': 3.5.2 algoliasearch: 4.19.1 - react: 18.2.0 search-insights: 2.7.0 transitivePeerDependencies: - '@algolia/client-search' @@ -2062,17 +2061,6 @@ packages: string-argv: 0.3.2 dev: true - /@sec-ant/zxing-wasm@2.1.5(react@18.2.0): - resolution: {integrity: sha512-U8/bq15/qytQ2GOfFeyoL9ItnBLLWlILpG3c0F03iZ3SlEZNJtUWd/DONjDAlbQ90TRzzOFFVw9AQhh75XlANQ==} - dependencies: - '@types/emscripten': 1.39.7 - zustand: 4.4.1(react@18.2.0) - transitivePeerDependencies: - - '@types/react' - - immer - - react - dev: false - /@semantic-release/commit-analyzer@10.0.2(semantic-release@21.1.1): resolution: {integrity: sha512-GtHlzWj1SZlckcgjk3IQDlnykcJYiWNB9kowLET8tVh4SjzxPxmuja57DtvUn/tGRf1l5X1jtmuqCdCqObI3CQ==} engines: {node: '>=18'} @@ -2183,12 +2171,12 @@ packages: resolution: {integrity: sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==} dev: true - /@types/dom-webcodecs@0.1.8: - resolution: {integrity: sha512-KThTPaGQJLITk8Q0XkEkz+GqFdoWDyQfbyeJmfEUagB15TZQdNx5AqP2b7GP6vkVM6X/6T1Z8EHxA8RgHfY9BA==} + /@types/dom-webcodecs@0.1.9: + resolution: {integrity: sha512-lOqlovxh4zB7p59rJwej8XG3uo0kv+hR+59Ky2MftcNS70ULWnWc6I2ZIM0xKcPFyvwU/DpRsTeFm8llayr5bA==} dev: false - /@types/emscripten@1.39.7: - resolution: {integrity: sha512-tLqYV94vuqDrXh515F/FOGtBcRMTPGvVV1LzLbtYDcQmmhtpf/gLYf+hikBbQk8MzOHNz37wpFfJbYAuSn8HqA==} + /@types/emscripten@1.39.9: + resolution: {integrity: sha512-ILdWj4XYtNOqxJaW22NEQx2gJsLfV5ncxYhhGX1a1H1lXl2Ta0gUz7QOnOoF1xQbJwWDjImi8gXN9mKdIf6n9g==} dev: false /@types/estree@0.0.39: @@ -2867,15 +2855,11 @@ packages: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} dev: true - /barcode-detector@2.0.3(react@18.2.0): - resolution: {integrity: sha512-4d6KAcnsL5SuXhxtz0Z+7qjKqPi6bqrgE2QdocKKWTA33MMR+s2Dx1+YfGEhQ++/sM/MrXT/hTBzgG8XL4dAgg==} + /barcode-detector@2.1.0: + resolution: {integrity: sha512-i9L6Kvz8M7jK+3NHFSxtzUTcHeB6RTztm/dPlfMuz5giRvfp8XKje7yoPU0dIg98WQ8aD7gsbXHg6JzHsrzcaw==} dependencies: - '@sec-ant/zxing-wasm': 2.1.5(react@18.2.0) - '@types/dom-webcodecs': 0.1.8 - transitivePeerDependencies: - - '@types/react' - - immer - - react + '@types/dom-webcodecs': 0.1.9 + zxing-wasm: 1.0.0-rc.3 dev: false /before-after-hook@2.2.3: @@ -4526,6 +4510,7 @@ packages: /js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + dev: true /js-yaml@4.1.0: resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} @@ -4797,12 +4782,6 @@ packages: wrap-ansi: 8.1.0 dev: true - /loose-envify@1.4.0: - resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} - hasBin: true - dependencies: - js-tokens: 4.0.0 - /lru-cache@10.0.1: resolution: {integrity: sha512-IJ4uwUTi2qCccrioU6g9g/5rvvVl13bsdczUUcqbciD9iLr095yj8DQKdObriEvuNSx325N1rV1O0sJFszx75g==} engines: {node: 14 || >=16.14} @@ -5499,12 +5478,6 @@ packages: strip-json-comments: 2.0.1 dev: true - /react@18.2.0: - resolution: {integrity: sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==} - engines: {node: '>=0.10.0'} - dependencies: - loose-envify: 1.4.0 - /read-pkg-up@10.1.0: resolution: {integrity: sha512-aNtBq4jR8NawpKJQldrQcSW9y/d+KWH4v24HWkHljOZ7H0av+YTGANBzRh9A5pw7v/bLVsLVPpOhJ7gHNVy8lA==} engines: {node: '>=16'} @@ -6470,14 +6443,6 @@ packages: engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dev: true - /use-sync-external-store@1.2.0(react@18.2.0): - resolution: {integrity: sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==} - peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - dependencies: - react: 18.2.0 - dev: false - /util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} dev: true @@ -6572,12 +6537,12 @@ packages: fsevents: 2.3.3 dev: true - /vitepress@1.0.0-rc.4(@algolia/client-search@4.19.1)(@types/node@20.5.6)(react@18.2.0)(search-insights@2.7.0): + /vitepress@1.0.0-rc.4(@algolia/client-search@4.19.1)(@types/node@20.5.6)(search-insights@2.7.0): resolution: {integrity: sha512-JCQ89Bm6ECUTnyzyas3JENo00UDJeK8q1SUQyJYou+4Yz5BKEc/F3O21cu++DnUT2zXc0kvQ2Aj4BZCc/nioXQ==} hasBin: true dependencies: '@docsearch/css': 3.5.2 - '@docsearch/js': 3.5.2(@algolia/client-search@4.19.1)(react@18.2.0)(search-insights@2.7.0) + '@docsearch/js': 3.5.2(@algolia/client-search@4.19.1)(search-insights@2.7.0) '@vitejs/plugin-vue': 4.3.3(vite@4.4.9)(vue@3.3.4) '@vue/devtools-api': 6.5.0 '@vueuse/core': 10.4.0(vue@3.3.4) @@ -6979,21 +6944,8 @@ packages: commander: 9.5.0 dev: true - /zustand@4.4.1(react@18.2.0): - resolution: {integrity: sha512-QCPfstAS4EBiTQzlaGP1gmorkh/UL1Leaj2tdj+zZCZ/9bm0WS7sI2wnfD5lpOszFqWJ1DcPnGoY8RDL61uokw==} - engines: {node: '>=12.7.0'} - peerDependencies: - '@types/react': '>=16.8' - immer: '>=9.0' - react: '>=16.8' - peerDependenciesMeta: - '@types/react': - optional: true - immer: - optional: true - react: - optional: true + /zxing-wasm@1.0.0-rc.3: + resolution: {integrity: sha512-rNpPqQ6w/Dym7yK3hMJMMS5DK36J8wCDXYW5FVfW3k83NYT88MTi26AtJE3zIvqOpFr5C0khTjbWfEvJTw4MDA==} dependencies: - react: 18.2.0 - use-sync-external-store: 1.2.0(react@18.2.0) + '@types/emscripten': 1.39.9 dev: false