From be19c8553c8b59907adf154d430a45be8b631970 Mon Sep 17 00:00:00 2001 From: Ze-Zheng Wu Date: Sun, 17 Sep 2023 14:09:28 +0800 Subject: [PATCH] fix(wasm): pin `barcode-detector` use exact version rather than semver range to prevent users from unexpectedly hosting a wrong `.wasm` file from `node_modules` see: https://github.com/gruhn/vue-qrcode-reader/issues/354#issuecomment-1722257982 --- package.json | 2 +- pnpm-lock.yaml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index d635e532..b8d676d7 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "dist" ], "dependencies": { - "barcode-detector": "^2.0.1", + "barcode-detector": "2.0.3", "webrtc-adapter": "^8.2.3" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4a944bb8..0b2e1e87 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,8 +6,8 @@ settings: dependencies: barcode-detector: - specifier: ^2.0.1 - version: 2.0.1(react@18.2.0) + specifier: 2.0.3 + version: 2.0.3(react@18.2.0) webrtc-adapter: specifier: ^8.2.3 version: 8.2.3 @@ -2059,8 +2059,8 @@ packages: string-argv: 0.3.2 dev: true - /@sec-ant/zxing-wasm@2.1.4(react@18.2.0): - resolution: {integrity: sha512-7KmKMvN5nT4AL5hrXzTouO6MBSK4mZladSaiYT7gDqEMRiHcEKBfrgV3f0KwWeUSexzouQMJrczYvobXtXl3Ig==} + /@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) @@ -2854,10 +2854,10 @@ packages: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} dev: true - /barcode-detector@2.0.1(react@18.2.0): - resolution: {integrity: sha512-B7brBlxLRFyBjf8jVBxVHzRSN7bo0DteZbw27rzPYAS8SDMjTYj8kCijTCInS/Ru5wi700ntOtbLnOrVJyZNaw==} + /barcode-detector@2.0.3(react@18.2.0): + resolution: {integrity: sha512-4d6KAcnsL5SuXhxtz0Z+7qjKqPi6bqrgE2QdocKKWTA33MMR+s2Dx1+YfGEhQ++/sM/MrXT/hTBzgG8XL4dAgg==} dependencies: - '@sec-ant/zxing-wasm': 2.1.4(react@18.2.0) + '@sec-ant/zxing-wasm': 2.1.5(react@18.2.0) '@types/dom-webcodecs': 0.1.8 transitivePeerDependencies: - '@types/react'