barcode-detector
Advanced tools
Comparing version 2.0.4 to 2.1.0
/// <reference types="dom-webcodecs" /> | ||
import { ZXingModule } from "@sec-ant/zxing-wasm/reader"; | ||
import { type ZXingModule } from "zxing-wasm/reader"; | ||
import { BARCODE_DETECTOR_FORMATS } from "./utils.js"; | ||
@@ -35,2 +35,2 @@ export type BarcodeFormat = (typeof BARCODE_DETECTOR_FORMATS)[number]; | ||
} | ||
export { setZXingModuleOverrides } from "@sec-ant/zxing-wasm"; | ||
export { setZXingModuleOverrides } from "zxing-wasm"; |
/// <reference types="dom-webcodecs" /> | ||
import { ZXingModule } from "@sec-ant/zxing-wasm/reader"; | ||
import { type ZXingModule } from "zxing-wasm/reader"; | ||
import { BARCODE_DETECTOR_FORMATS } from "./utils.js"; | ||
@@ -35,2 +35,2 @@ export type BarcodeFormat = (typeof BARCODE_DETECTOR_FORMATS)[number]; | ||
} | ||
export { setZXingModuleOverrides } from "@sec-ant/zxing-wasm"; | ||
export { setZXingModuleOverrides } from "zxing-wasm"; |
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "2.0.4", | ||
"version": "2.1.0", | ||
"type": "module", | ||
@@ -81,8 +81,8 @@ "files": [ | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^6.8.0", | ||
"@typescript-eslint/parser": "^6.8.0", | ||
"@typescript-eslint/eslint-plugin": "^6.9.0", | ||
"@typescript-eslint/parser": "^6.9.0", | ||
"@vitest/browser": "^0.34.6", | ||
"@vitest/coverage-istanbul": "^0.34.6", | ||
"@vitest/ui": "^0.34.6", | ||
"eslint": "^8.51.0", | ||
"eslint": "^8.52.0", | ||
"http-server": "^14.1.1", | ||
@@ -100,5 +100,5 @@ "npm-check-updates": "^16.14.6", | ||
"dependencies": { | ||
"@sec-ant/zxing-wasm": "2.1.6", | ||
"@types/dom-webcodecs": "^0.1.9" | ||
"@types/dom-webcodecs": "^0.1.9", | ||
"zxing-wasm": "1.0.0-rc.3" | ||
} | ||
} |
# barcode-detector | ||
[![npm](https://img.shields.io/npm/v/barcode-detector)](https://www.npmjs.com/package/barcode-detector/v/latest) [![npm bundle size (scoped)](https://img.shields.io/bundlephobia/minzip/%40sec-ant/barcode-detector)](https://www.npmjs.com/package/barcode-detector/v/latest) [![jsDelivr hits (npm scoped)](https://img.shields.io/jsdelivr/npm/hm/barcode-detector?color=%23ff5627)](https://cdn.jsdelivr.net/npm/barcode-detector@latest/) | ||
[![npm](https://img.shields.io/npm/v/barcode-detector)](https://www.npmjs.com/package/barcode-detector/v/latest) [![npm bundle size (scoped)](https://img.shields.io/bundlephobia/minzip/barcode-detector)](https://www.npmjs.com/package/barcode-detector/v/latest) [![jsDelivr hits (npm scoped)](https://img.shields.io/jsdelivr/npm/hm/barcode-detector?color=%23ff5627)](https://cdn.jsdelivr.net/npm/barcode-detector@latest/) | ||
A [Barcode Detection API](https://wicg.github.io/shape-detection-api/#barcode-detection-api) polyfill that uses [ZXing webassembly](https://github.com/Sec-ant/zxing-wasm) under the hood. | ||
A [Barcode Detection API](https://wicg.github.io/shape-detection-api/#barcode-detection-api) polyfill that uses [ZXing-C++ WebAssembly](https://github.com/Sec-ant/zxing-wasm) under the hood. | ||
@@ -165,6 +165,6 @@ > This package was originally published as [`@sec-ant/barcode-detector`](https://www.npmjs.com/package/@sec-ant/barcode-detector) on the npm registry. With appreciation for the generous offer from [@gruhn](https://github.com/gruhn), the package is now released under the name `barcode-detector` starting from version 2.0.0. The original name `@sec-ant/barcode-detector` will continue to be used for versions prior to 2.0.0, and will be retained solely for maintenance purposes. Eventually, it will be deprecated at an appropriate juncture. | ||
This package employs [Sec-ant/zxing-wasm](https://github.com/Sec-ant/zxing-wasm) to enable the core barcode reading functionality. As a result, a `.wasm` binary file is fetched at runtime. The default fetch path for this binary file is: | ||
This package employs [zxing-wasm](https://github.com/Sec-ant/zxing-wasm) to enable the core barcode reading functionality. As a result, a `.wasm` binary file is fetched at runtime. The default fetch path for this binary file is: | ||
``` | ||
https://fastly.jsdelivr.net/npm/@sec-ant/zxing-wasm@<version>/dist/reader/zxing_reader.wasm | ||
https://fastly.jsdelivr.net/npm/zxing-wasm@<version>/dist/reader/zxing_reader.wasm | ||
``` | ||
@@ -178,3 +178,3 @@ | ||
// src/index.ts | ||
import wasmFile from "../node_modules/@sec-ant/zxing-wasm/dist/reader/zxing_reader.wasm?url"; | ||
import wasmFile from "../node_modules/zxing-wasm/dist/reader/zxing_reader.wasm?url"; | ||
@@ -266,3 +266,1 @@ import { | ||
Test samples and resources are collected from [zxing-cpp/zxing-cpp](https://github.com/zxing-cpp/zxing-cpp), which is licensed under the [Apache-2.0 license](https://raw.githubusercontent.com/zxing-cpp/zxing-cpp/master/LICENSE), and [web-platform-tests/wpt](https://github.com/web-platform-tests/wpt), which is licensed under the [3-Clause BSD license](https://raw.githubusercontent.com/web-platform-tests/wpt/master/LICENSE.md). | ||
This package has an indirect dependency on [Sec-ant/zxing-wasm-build](https://github.com/Sec-ant/zxing-wasm-build), which is licensed under the [Apache-2.0 license](https://raw.githubusercontent.com/Sec-ant/zxing-wasm-build/main/LICENSE). |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
462350
4667
0
1
264
40
+ Addedzxing-wasm@1.0.0-rc.3
+ Addedzxing-wasm@1.0.0-rc.3(transitive)
- Removed@sec-ant/zxing-wasm@2.1.6
- Removed@sec-ant/zxing-wasm@2.1.6(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedreact@18.3.1(transitive)
- Removeduse-sync-external-store@1.2.2(transitive)
- Removedzustand@4.5.5(transitive)