@ericblade/quagga2 1.8.1 → 1.8.3

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/package.json CHANGED
@@ -1,52 +1,52 @@
1
1
  {
2
2
  "name": "@ericblade/quagga2",
3
- "version": "1.8.1",
3
+ "version": "1.8.3",
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.2"
9
+ "fsevents": "2.3.3"
10
10
  },
11
11
  "devDependencies": {
12
- "@babel/core": "^7.20.2",
12
+ "@babel/core": "^7.23.2",
13
13
  "@babel/plugin-proposal-class-properties": "^7.18.6",
14
14
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
15
15
  "@babel/plugin-proposal-object-rest-spread": "^7.20.2",
16
16
  "@babel/plugin-proposal-optional-chaining": "^7.18.9",
17
- "@babel/plugin-transform-runtime": "^7.19.6",
18
- "@babel/preset-env": "^7.20.2",
19
- "@babel/preset-typescript": "^7.18.6",
20
- "@babel/runtime": "^7.20.1",
21
- "@cypress/code-coverage": "^3.10.0",
22
- "@cypress/webpack-preprocessor": "5.15.3",
23
- "@types/chai": "^4.3.3",
24
- "@types/gl-vec2": "^1.3.2",
25
- "@types/lodash": "^4.14.188",
17
+ "@babel/plugin-transform-runtime": "^7.23.2",
18
+ "@babel/preset-env": "^7.23.2",
19
+ "@babel/preset-typescript": "^7.23.2",
20
+ "@babel/runtime": "^7.23.2",
21
+ "@cypress/code-coverage": "^3.12.4",
22
+ "@cypress/webpack-preprocessor": "6.0.0",
23
+ "@types/chai": "^4.3.9",
24
+ "@types/gl-vec2": "^1.3.4",
25
+ "@types/lodash": "^4.14.200",
26
26
  "@types/mocha": "^5.2.7",
27
- "@types/node": "^18.11.9",
28
- "@types/sinon": "^10.0.13",
29
- "@types/sinon-chai": "^3.2.8",
27
+ "@types/node": "^20.8.7",
28
+ "@types/sinon": "^10.0.20",
29
+ "@types/sinon-chai": "^3.2.11",
30
30
  "@typescript-eslint/eslint-plugin": "^5.42.0",
31
31
  "@typescript-eslint/parser": "^5.42.0",
32
32
  "babel-loader": "^8.2.5",
33
33
  "babel-plugin-add-module-exports": "^1.0.4",
34
34
  "babel-plugin-istanbul": "^6.1.1",
35
- "chai": "^4.3.6",
36
- "core-js": "^3.26.0",
35
+ "chai": "^4.3.10",
36
+ "core-js": "^3.33.1",
37
37
  "cross-env": "^7.0.3",
38
- "cypress": "^10.0.0",
39
- "eslint": "^8.27.0",
38
+ "cypress": "^13.1.0",
39
+ "eslint": "^8.52.0",
40
40
  "eslint-config-airbnb-base": "^15.0.0",
41
- "eslint-config-airbnb-typescript": "^17.0.0",
41
+ "eslint-config-airbnb-typescript": "^17.1.0",
42
42
  "eslint-config-airbnb-typescript-base": "^4.0.2",
43
- "eslint-plugin-import": "^2.26.0",
44
- "eslint-plugin-jsx-a11y": "^6.6.1",
43
+ "eslint-plugin-import": "^2.28.1",
44
+ "eslint-plugin-jsx-a11y": "^6.7.1",
45
45
  "eslint-plugin-typescript-sort-keys": "^2.1.0",
46
46
  "esm": "^3.2.25",
47
47
  "mocha": "^5.2.0",
48
48
  "nyc": "^15.1.0",
49
- "sinon": "^14.0.1",
49
+ "sinon": "^17.0.0",
50
50
  "sinon-chai": "^3.7.0",
51
51
  "source-map-loader": "^1.1.1",
52
52
  "ts-mocha": "^10.0.0",
@@ -76,8 +76,8 @@
76
76
  "build:dev": "npx cross-env NODE_ENV=development BUILD_ENV=development webpack --config configs/webpack.config.js",
77
77
  "build:prod": "npx cross-env NODE_ENV=production BUILD_ENV=production webpack --config configs/webpack.config.min.js",
78
78
  "build:node": "npx cross-env NODE_ENV=production BABEL_ENV=commonjs BUILD_ENV=node webpack --config configs/webpack.node.config.js",
79
- "build-new": "npx cross-env NODE_OPTIONS=--openssl-legacy-provider npm run build",
80
- "build": "npm run check-types && npm run build:dev && npm run build:prod && npm run build:node",
79
+ "build": "npx cross-env NODE_OPTIONS=--openssl-legacy-provider npm run build-old",
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
  "upgrade-deps": "npx npm-check-updates --doctor"
@@ -135,7 +135,8 @@
135
135
  "Alex Howes <alex@alexhowes.co.uk>",
136
136
  "Sudham Jayanthi <workwithsudham@gmail.com>",
137
137
  "Ben Khoo <khoobks@gmail.com>",
138
- "Andy Edinborough <andy@edinborough.org>"
138
+ "Andy Edinborough <andy@edinborough.org>",
139
+ "Claudio Cocciarelli <claudiococciarelli@gmail.com>"
139
140
  ],
140
141
  "license": "MIT",
141
142
  "engines": {
@@ -870,7 +870,7 @@ export interface QuaggaJSConfigObject {
870
870
  /**
871
871
  * @default [ "code_128_reader" ]
872
872
  */
873
- readers?: (QuaggaJSReaderConfig | string)[];
873
+ readers?: (QuaggaJSReaderConfig | QuaggaJSCodeReader)[];
874
874
 
875
875
  debug?: {
876
876
  /**
@@ -1005,3 +1005,19 @@ export type TypedArray =
1005
1005
  | Uint32Array
1006
1006
  | Float32Array
1007
1007
  | Float64Array;
1008
+
1009
+ export type QuaggaJSCodeReader =
1010
+ | 'code_128_reader'
1011
+ | 'ean_reader'
1012
+ | 'ean_5_reader'
1013
+ | 'ean_2_reader'
1014
+ | 'ean_8_reader'
1015
+ | 'code_39_reader'
1016
+ | 'code_39_vin_reader'
1017
+ | 'codabar_reader'
1018
+ | 'upc_reader'
1019
+ | 'upc_e_reader'
1020
+ | 'i2of5_reader'
1021
+ | '2of5_reader'
1022
+ | 'code_93_reader'
1023
+ | 'code_32_reader';