From c222293c127c80e0dc5eaf22dd10cdad0a32099f Mon Sep 17 00:00:00 2001 From: Niklas Gruhn Date: Mon, 14 Jun 2021 22:47:31 +0200 Subject: [PATCH] fix: no ImageBitmap support in Safari Doing a `object instanceof ImageBitmap` check itself requires ImageBitmap support. Since Safari doesn't support it, this causes a reference error. Fixed in new barcode-detector version. Issue: #248 --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index b893fa97..7b24e387 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3588,9 +3588,9 @@ "dev": true }, "barcode-detector": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/barcode-detector/-/barcode-detector-0.7.0.tgz", - "integrity": "sha512-SJh+LV6e+W5e6QJe70ralFfqcYwvaOUGWyr+GepuQ5swPH4jF2asyTxOIUZNSU9Z5isD3KWI5hlqQ+b/QaFFOg==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/barcode-detector/-/barcode-detector-1.0.0.tgz", + "integrity": "sha512-LZSyqjumoq2WmMOeQZ2BiYYAqwnTlkXgqKOTcJlathpFS6IejsdSb6aIGmoSyOCjBgFNATzLgMJ9shNfklnz6A==", "requires": { "@zxing/library": "^0.18.4", "jsqr": "^1.3.1" diff --git a/package.json b/package.json index 7299c891..beddc3a1 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "lint": "vue-cli-service lint" }, "dependencies": { - "barcode-detector": "^0.7.0", + "barcode-detector": "^1.0.0", "callforth": "^0.3.1", "core-js": "^3.6.5", "vue": "^2.6.11",