Socket
Socket
Sign inDemoInstall

barcode-detector

Package Overview
Dependencies
3
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.4 to 2.1.0

4

dist/cjs/BarcodeDetector.d.ts
/// <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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc