@ericblade/quagga2 1.8.4 → 1.10.0
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/dist/quagga.js +1897 -1605
- package/dist/quagga.min.js +4 -3
- package/lib/quagga.js +11049 -6021
- package/package.json +44 -43
- package/tsconfig.json +2 -2
- package/type-definitions/quagga.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ericblade/quagga2",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "An advanced barcode-scanner written in JavaScript",
|
|
5
5
|
"main": "lib/quagga.js",
|
|
6
6
|
"types": "type-definitions/quagga.d.ts",
|
|
@@ -9,49 +9,48 @@
|
|
|
9
9
|
"fsevents": "2.3.3"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@babel/core": "^7.
|
|
12
|
+
"@babel/core": "^7.28.5",
|
|
13
13
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
14
14
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
15
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.20.
|
|
16
|
-
"@babel/plugin-proposal-optional-chaining": "^7.
|
|
17
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
18
|
-
"@babel/preset-env": "^7.
|
|
19
|
-
"@babel/preset-typescript": "^7.
|
|
20
|
-
"@babel/runtime": "^7.
|
|
15
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
|
|
16
|
+
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
17
|
+
"@babel/plugin-transform-runtime": "^7.28.5",
|
|
18
|
+
"@babel/preset-env": "^7.28.5",
|
|
19
|
+
"@babel/preset-typescript": "^7.28.5",
|
|
20
|
+
"@babel/runtime": "^7.28.4",
|
|
21
21
|
"@cypress/code-coverage": "^3.12.4",
|
|
22
22
|
"@cypress/webpack-preprocessor": "6.0.0",
|
|
23
|
-
"@types/chai": "^
|
|
24
|
-
"@types/gl-vec2": "^1.3.
|
|
25
|
-
"@types/lodash": "^4.
|
|
23
|
+
"@types/chai": "^5.2.3",
|
|
24
|
+
"@types/gl-vec2": "^1.3.5",
|
|
25
|
+
"@types/lodash": "^4.17.20",
|
|
26
26
|
"@types/mocha": "^5.2.7",
|
|
27
|
-
"@types/node": "^
|
|
28
|
-
"@types/sinon": "^
|
|
29
|
-
"@types/sinon-chai": "^3.2.
|
|
30
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
31
|
-
"@typescript-eslint/parser": "^
|
|
27
|
+
"@types/node": "^24.10.1",
|
|
28
|
+
"@types/sinon": "^20.0.0",
|
|
29
|
+
"@types/sinon-chai": "^3.2.12",
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
31
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
32
32
|
"babel-loader": "^8.2.5",
|
|
33
33
|
"babel-plugin-add-module-exports": "^1.0.4",
|
|
34
|
-
"babel-plugin-istanbul": "^6.1.1",
|
|
35
34
|
"chai": "^4.3.10",
|
|
36
|
-
"
|
|
37
|
-
"
|
|
35
|
+
"babel-plugin-istanbul": "^7.0.1",
|
|
36
|
+
"core-js": "^3.46.0",
|
|
37
|
+
"cross-env": "^10.1.0",
|
|
38
38
|
"cypress": "^13.1.0",
|
|
39
|
-
"eslint": "^8.
|
|
39
|
+
"eslint": "^8.57.1",
|
|
40
40
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
41
|
-
"eslint-config-airbnb-typescript": "^
|
|
42
|
-
"eslint-config-airbnb-typescript-base": "^
|
|
43
|
-
"eslint-plugin-import": "^2.
|
|
44
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
45
|
-
"eslint-plugin-typescript-sort-keys": "^
|
|
46
|
-
"esm": "^3.2.25",
|
|
41
|
+
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
42
|
+
"eslint-config-airbnb-typescript-base": "^6.0.1",
|
|
43
|
+
"eslint-plugin-import": "^2.32.0",
|
|
44
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
45
|
+
"eslint-plugin-typescript-sort-keys": "^3.3.0",
|
|
47
46
|
"mocha": "^5.2.0",
|
|
48
|
-
"
|
|
49
|
-
"sinon": "^17.0.0",
|
|
47
|
+
"sinon": "^21.0.0",
|
|
50
48
|
"sinon-chai": "^3.7.0",
|
|
49
|
+
"nyc": "^17.1.0",
|
|
51
50
|
"source-map-loader": "^1.1.1",
|
|
52
|
-
"ts-mocha": "^
|
|
53
|
-
"ts-node": "^10.9.
|
|
54
|
-
"typescript": "^
|
|
51
|
+
"ts-mocha": "^11.1.0",
|
|
52
|
+
"ts-node": "^10.9.2",
|
|
53
|
+
"typescript": "^5.9.3",
|
|
55
54
|
"webpack": "^4.44.2",
|
|
56
55
|
"webpack-cli": "^3.3.12"
|
|
57
56
|
},
|
|
@@ -63,24 +62,26 @@
|
|
|
63
62
|
"precoverage": "npx rimraf .nyc_output coverage",
|
|
64
63
|
"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.*",
|
|
65
64
|
"coverage": "npm run cypress:run",
|
|
66
|
-
"cypress:open": "npx cross-env NODE_ENV=development BUILD_ENV=development cypress open --env BUILD_ENV=development",
|
|
67
|
-
"cypress:run": "npx cross-env NODE_ENV=development BUILD_ENV=development cypress run --env BUILD_ENV=development",
|
|
65
|
+
"cypress:open": "npx cross-env NODE_ENV=development BUILD_ENV=development NODE_OPTIONS=--openssl-legacy-provider cypress open --env BUILD_ENV=development",
|
|
66
|
+
"cypress:run": "npx cross-env NODE_ENV=development BUILD_ENV=development NODE_OPTIONS=--openssl-legacy-provider cypress run --env BUILD_ENV=development",
|
|
68
67
|
"test:browser-specific": "NOT WORKING -- something like npx cypress run --config testFiles=[browser]",
|
|
69
68
|
"test:browser-universal": "NOT WORKING -- something like npx cypress run --config testFiles=[universal]",
|
|
70
69
|
"test:browser-all": "npm run cypress:run",
|
|
71
|
-
"test:import": "mocha
|
|
70
|
+
"test:import": "mocha test/test-import.mjs",
|
|
72
71
|
"test:node": "npx cross-env NODE_ENV=test ts-mocha -p test/tsconfig.json src/**/test/node/*.spec.* src/**/test/*.spec.* test/integration/integration.spec.ts",
|
|
73
72
|
"test:require": "mocha test/test-require",
|
|
74
73
|
"test:module": "npm run test:require && npm run test:import",
|
|
75
74
|
"test": "npm run 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/integration.spec.ts",
|
|
76
|
-
"build
|
|
77
|
-
"build:
|
|
78
|
-
"build:
|
|
75
|
+
"build-and-test": "npm run build && npm run test",
|
|
76
|
+
"build:dev": "npx cross-env NODE_ENV=development BUILD_ENV=development NODE_OPTIONS=--openssl-legacy-provider webpack --config configs/webpack.config.js",
|
|
77
|
+
"build:prod": "npx cross-env NODE_ENV=production BUILD_ENV=production NODE_OPTIONS=--openssl-legacy-provider webpack --config configs/webpack.config.min.js",
|
|
78
|
+
"build:node": "npx cross-env NODE_ENV=production BABEL_ENV=commonjs BUILD_ENV=node NODE_OPTIONS=--openssl-legacy-provider webpack --config configs/webpack.node.config.js",
|
|
79
79
|
"build": "npx cross-env NODE_OPTIONS=--openssl-legacy-provider npm run build-old",
|
|
80
80
|
"build-old": "npm run check-types && npm run build:dev && npm run build:prod && npm run build:node",
|
|
81
81
|
"watch": "npx cross-env BUILD_ENV=development webpack --watch",
|
|
82
82
|
"lint": "eslint src",
|
|
83
|
-
"
|
|
83
|
+
"check-updates": "npx npm-check-updates --peer --loglevel verbose",
|
|
84
|
+
"upgrade-deps": "npx npm-check-updates --peer --doctor --doctorTest \"npm run build-and-test\" --loglevel verbose"
|
|
84
85
|
},
|
|
85
86
|
"repository": {
|
|
86
87
|
"type": "git",
|
|
@@ -120,7 +121,7 @@
|
|
|
120
121
|
"Martin Tillmann <mtillmann@gmail.com>",
|
|
121
122
|
"Matthias Jauernig <matthias.jauernig@partner.commerzbank.com>",
|
|
122
123
|
"Matthias Riegler <matthias@xvzf.tech>",
|
|
123
|
-
"Pierre-Louis Peeters <
|
|
124
|
+
"Pierre-Louis Peeters <PLPeeters@users.noreply.github.com>",
|
|
124
125
|
"Rudolph Gottesheim <r.gottesheim@midnight-design.at>",
|
|
125
126
|
"Sean Hussey <sean@seanhussey.com>",
|
|
126
127
|
"Thomas <tricki@users.noreply.github.com>",
|
|
@@ -142,15 +143,15 @@
|
|
|
142
143
|
],
|
|
143
144
|
"license": "MIT",
|
|
144
145
|
"engines": {
|
|
145
|
-
"node": ">=
|
|
146
|
+
"node": ">= 20.0"
|
|
146
147
|
},
|
|
147
148
|
"dependencies": {
|
|
148
149
|
"@babel/polyfill": "^7.12.1",
|
|
149
|
-
"
|
|
150
|
-
"gl-matrix": "^3.4.3",
|
|
150
|
+
"gl-matrix": "^3.4.4",
|
|
151
151
|
"lodash": "^4.17.21",
|
|
152
152
|
"ndarray": "^1.0.19",
|
|
153
|
-
"ndarray-linear-interpolate": "^1.0.0"
|
|
153
|
+
"ndarray-linear-interpolate": "^1.0.0",
|
|
154
|
+
"ndarray-pixels": "^5.0.1"
|
|
154
155
|
},
|
|
155
156
|
"nyc": {
|
|
156
157
|
"include": [
|
package/tsconfig.json
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"noImplicitAny": true/* Raise error on expressions and declarations with an implied 'any' type. */,
|
|
6
6
|
"allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */,
|
|
7
7
|
"sourceMap": true /* Generates corresponding '.map' file. */,
|
|
8
|
-
"target": "
|
|
8
|
+
"target": "ES6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
|
|
9
9
|
"jsx": "react" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */,
|
|
10
10
|
"lib": [
|
|
11
|
-
"
|
|
11
|
+
"ES6",
|
|
12
12
|
"dom"
|
|
13
13
|
] /* Specify library files to be included in the compilation. */,
|
|
14
14
|
"types": [
|