@ericblade/quagga2 1.11.0 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DEPENDENCIES.md +53 -1
- package/README.md +4 -2
- package/dist/quagga.js +7299 -5335
- package/dist/quagga.min.js +4 -4
- package/docs/contributing.md +18 -1
- package/docs/getting-started.md +1 -1
- package/docs/reference/api.md +42 -0
- package/docs/reference/configuration.md +1 -0
- package/docs/reference/readers.md +66 -1
- package/lib/quagga.js +18303 -12643
- package/package.json +15 -5
- package/type-definitions/quagga.d.ts +5 -1
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ericblade/quagga2",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"description": "An advanced barcode-scanner written in JavaScript",
|
|
5
5
|
"main": "lib/quagga.js",
|
|
6
6
|
"types": "type-definitions/quagga.d.ts",
|
|
7
7
|
"browser": "dist/quagga.min.js",
|
|
8
8
|
"optionalDependencies": {
|
|
9
|
-
"fsevents": "2.3.3"
|
|
9
|
+
"fsevents": "2.3.3",
|
|
10
|
+
"ndarray-pixels": "^5.0.1",
|
|
11
|
+
"sharp": "^0.34.0"
|
|
10
12
|
},
|
|
11
13
|
"devDependencies": {
|
|
12
14
|
"@babel/core": "^7.28.5",
|
|
@@ -71,16 +73,24 @@
|
|
|
71
73
|
"precoverage": "npx rimraf .nyc_output coverage",
|
|
72
74
|
"coverage:node": "// DOES NOT WORK YET // npx cross-env NODE_ENV=test BUILD_ENV=development nyc --no-clean ts-mocha -p test/tsconfig.json src/**/test/node/*.spec.* src/**/test/*.spec.*",
|
|
73
75
|
"coverage": "npm run cypress:run",
|
|
74
|
-
"
|
|
75
|
-
"cypress:
|
|
76
|
+
"server:examples": "npx http-server docs/examples -p 8080",
|
|
77
|
+
"cypress:open": "npx cross-env NODE_ENV=development BUILD_ENV=development NODE_OPTIONS=--openssl-legacy-provider cypress open --env BUILD_ENV=development --browser electron --config specPattern='cypress/e2e/**/!(browser-bundle).cy.ts'",
|
|
78
|
+
"cypress:open:e2e": "npx cross-env NODE_ENV=development BUILD_ENV=development NODE_OPTIONS=--openssl-legacy-provider cypress open --e2e --env BUILD_ENV=development --config specPattern=\"cypress/e2e/examples.cy.ts\" --browser electron",
|
|
79
|
+
"cypress:run": "npx cross-env NODE_ENV=development BUILD_ENV=development NODE_OPTIONS=--openssl-legacy-provider cypress run --env BUILD_ENV=development --config specPattern='cypress/e2e/**/!(browser-bundle).cy.ts'",
|
|
80
|
+
"cypress:run:e2e": "npx cross-env NODE_ENV=development BUILD_ENV=development NODE_OPTIONS=--openssl-legacy-provider cypress run --env BUILD_ENV=development --spec \"cypress/e2e/examples.cy.ts\"",
|
|
81
|
+
"test:e2e": "npx start-server-and-test server:examples http://localhost:8080 cypress:run:e2e",
|
|
82
|
+
"test:e2e:open": "npx start-server-and-test server:examples http://localhost:8080 cypress:open:e2e",
|
|
76
83
|
"test:browser-specific": "NOT WORKING -- something like npx cypress run --config testFiles=[browser]",
|
|
77
84
|
"test:browser-universal": "NOT WORKING -- something like npx cypress run --config testFiles=[universal]",
|
|
78
85
|
"test:browser-all": "npm run cypress:run",
|
|
79
86
|
"test:import": "mocha test/test-import.mjs",
|
|
80
87
|
"test:node": "npx cross-env NODE_ENV=test ts-mocha -p test/tsconfig.json src/**/test/node/*.spec.* src/**/test/*.spec.* test/integration/**/*.spec.ts",
|
|
81
88
|
"test:require": "mocha test/test-require",
|
|
89
|
+
"test:node-bundle": "npm run build:node && npx cross-env NODE_ENV=test mocha test/node-bundle.spec.js",
|
|
90
|
+
"test:browser-bundle": "npm run build:prod && npx cross-env NODE_ENV=development BUILD_ENV=development NODE_OPTIONS=--openssl-legacy-provider cypress run --spec cypress/e2e/browser-bundle.cy.ts",
|
|
82
91
|
"test:module": "npm run test:require && npm run test:import",
|
|
83
|
-
"test": "
|
|
92
|
+
"test": "npx start-server-and-test server:examples http://localhost:8080 cypress:run && npx cross-env NODE_ENV=test BUILD_ENV=development ts-mocha -p test/tsconfig.json src/**/test/node/*.spec.* src/**/test/*.spec.* test/integration/**/*.spec.ts",
|
|
93
|
+
"test:parallel": "npx concurrently --kill-others-on-fail --success=all -n e2e,node -c green,blue \"npx start-server-and-test server:examples http://localhost:8080 cypress:run\" \"npm run test:node\"",
|
|
84
94
|
"build-and-test": "npm run build && npm run test",
|
|
85
95
|
"build:dev": "npx cross-env NODE_ENV=development BUILD_ENV=development NODE_OPTIONS=--openssl-legacy-provider webpack --config configs/webpack.config.js",
|
|
86
96
|
"build:prod": "npx cross-env NODE_ENV=production BUILD_ENV=production NODE_OPTIONS=--openssl-legacy-provider webpack --config configs/webpack.config.min.js",
|
|
@@ -195,6 +195,8 @@ export declare module Readers {
|
|
|
195
195
|
StartNotFoundException: string;
|
|
196
196
|
};
|
|
197
197
|
|
|
198
|
+
static adjacentLineValidationMatches: number;
|
|
199
|
+
|
|
198
200
|
constructor(config: BarcodeReaderConfig, supplements?: Array<BarcodeReader>);
|
|
199
201
|
|
|
200
202
|
abstract decode(row?: Array<number>, start?: BarcodePosition | number): Barcode | null;
|
|
@@ -1004,6 +1006,7 @@ export interface QuaggaJSConfigObject {
|
|
|
1004
1006
|
* Available values: x-small, small, medium, large, x-large
|
|
1005
1007
|
*/
|
|
1006
1008
|
patchSize?: string;
|
|
1009
|
+
|
|
1007
1010
|
willReadFrequently?: boolean;
|
|
1008
1011
|
debug?: {
|
|
1009
1012
|
/**
|
|
@@ -1122,4 +1125,5 @@ export type QuaggaJSCodeReader =
|
|
|
1122
1125
|
| 'i2of5_reader'
|
|
1123
1126
|
| '2of5_reader'
|
|
1124
1127
|
| 'code_93_reader'
|
|
1125
|
-
| 'code_32_reader'
|
|
1128
|
+
| 'code_32_reader'
|
|
1129
|
+
| 'pharmacode_reader';
|