@ericblade/quagga2 1.7.5 → 1.7.7

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ericblade/quagga2",
3
- "version": "1.7.5",
3
+ "version": "1.7.7",
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,33 +9,34 @@
9
9
  "fsevents": "2.3.2"
10
10
  },
11
11
  "devDependencies": {
12
- "@babel/core": "^7.18.13",
12
+ "@babel/core": "^7.20.2",
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.18.9",
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.18.10",
18
- "@babel/preset-env": "^7.18.10",
17
+ "@babel/plugin-transform-runtime": "^7.19.6",
18
+ "@babel/preset-env": "^7.20.2",
19
19
  "@babel/preset-typescript": "^7.18.6",
20
- "@babel/runtime": "^7.18.9",
20
+ "@babel/runtime": "^7.20.1",
21
21
  "@cypress/code-coverage": "^3.10.0",
22
- "@cypress/webpack-preprocessor": "5.12.2",
22
+ "@cypress/webpack-preprocessor": "5.15.3",
23
23
  "@types/chai": "^4.3.3",
24
24
  "@types/gl-vec2": "^1.3.2",
25
- "@types/lodash": "^4.14.184",
25
+ "@types/lodash": "^4.14.188",
26
26
  "@types/mocha": "^5.2.7",
27
+ "@types/node": "^18.11.9",
27
28
  "@types/sinon": "^10.0.13",
28
29
  "@types/sinon-chai": "^3.2.8",
29
- "@typescript-eslint/eslint-plugin": "^5.34.0",
30
- "@typescript-eslint/parser": "^5.34.0",
30
+ "@typescript-eslint/eslint-plugin": "^5.42.0",
31
+ "@typescript-eslint/parser": "^5.42.0",
31
32
  "babel-loader": "^8.2.5",
32
33
  "babel-plugin-add-module-exports": "^1.0.4",
33
34
  "babel-plugin-istanbul": "^6.1.1",
34
35
  "chai": "^4.3.6",
35
- "core-js": "^3.24.1",
36
+ "core-js": "^3.26.0",
36
37
  "cross-env": "^7.0.3",
37
38
  "cypress": "^10.0.0",
38
- "eslint": "^8.22.0",
39
+ "eslint": "^8.27.0",
39
40
  "eslint-config-airbnb-base": "^15.0.0",
40
41
  "eslint-config-airbnb-typescript": "^17.0.0",
41
42
  "eslint-config-airbnb-typescript-base": "^4.0.2",
@@ -45,12 +46,12 @@
45
46
  "esm": "^3.2.25",
46
47
  "mocha": "^5.2.0",
47
48
  "nyc": "^15.1.0",
48
- "sinon": "^14.0.0",
49
+ "sinon": "^14.0.1",
49
50
  "sinon-chai": "^3.7.0",
50
51
  "source-map-loader": "^1.1.1",
51
52
  "ts-mocha": "^10.0.0",
52
53
  "ts-node": "^10.9.1",
53
- "typescript": "^4.7.4",
54
+ "typescript": "^4.8.4",
54
55
  "webpack": "^4.44.2",
55
56
  "webpack-cli": "^3.3.12"
56
57
  },
@@ -142,9 +143,7 @@
142
143
  "dependencies": {
143
144
  "@babel/polyfill": "^7.12.1",
144
145
  "get-pixels": "^3.3.3",
145
- "gl-mat2": "^1.0.1",
146
- "gl-vec2": "^1.3.0",
147
- "gl-vec3": "^1.1.3",
146
+ "gl-matrix": "^3.4.3",
148
147
  "lodash": "^4.17.21",
149
148
  "ndarray": "^1.0.19",
150
149
  "ndarray-linear-interpolate": "^1.0.0"
@@ -3,6 +3,8 @@
3
3
  // Project: http://serratus.github.io/quaggaJS/
4
4
  // Definitions by: Cam Birch, Peter Horwood aka Madman Pierre, Dan Manastireanu <https://github.com/danmana>
5
5
 
6
+ import { vec2 } from 'gl-matrix';
7
+
6
8
  // import SubImage from '../src/common/subImage';
7
9
  // import ImageWrapper from '../src/common/image_wrapper';
8
10
  // export { SubImage, ImageWrapper };
@@ -14,9 +16,9 @@ export default Quagga;
14
16
  // contextual meaning. This allows us to create a type that is branded by name, and therefore these variables cannot be directly
15
17
  // mixed up with each other, without explicitly forcing it to happen. Good.
16
18
  export interface XYObject<T extends string> {
19
+ type: T;
17
20
  x: number;
18
21
  y: number;
19
- type: T;
20
22
  }
21
23
 
22
24
  // TODO: fill this in from cv_utils#imageRef
@@ -40,13 +42,13 @@ export type WrapperIndexMapping = {
40
42
  export type Moment = {
41
43
  m00: number;
42
44
  m01: number;
45
+ m02: number;
43
46
  m10: number;
44
47
  m11: number;
45
- m02: number;
46
48
  m20: number;
47
- theta: number;
48
49
  rad: number;
49
- vec?: Array<number>;
50
+ theta: number;
51
+ vec?: vec2;
50
52
  };
51
53
 
52
54
  export class ImageWrapper {