barcode-detector 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +8 -1
  2. package/package.json +7 -2
package/README.md CHANGED
@@ -5,6 +5,13 @@ sources including `<canvas>`, `<img>`, `<image>` (inside SVGs), `<video>`, `File
5
5
 
6
6
  [TODO: live demos]
7
7
 
8
+ Design goals:
9
+ * spec compliance
10
+ * support as many barcode formats as possible
11
+ * detect multiple codes in one image
12
+ * provide position/coordinate information of detected codes
13
+ * sufficient performance to process live video streams
14
+
8
15
  ## Installation
9
16
 
10
17
  ```sh
@@ -54,7 +61,7 @@ For in-depth documentation checkout the [corresponding MDN page](https://develop
54
61
  - :x: `upc_a`
55
62
  - :x: `upc_e`
56
63
 
57
- `src/BarcodeDetectorZXing.ts` (not exposed at the moment):
64
+ `src/BarcodeDetectorZXing.ts` (not exposed at the moment. See [#1](https://github.com/gruhn/barcode-detector-polyfill/issues/1)):
58
65
  - :heavy_check_mark: `aztec`
59
66
  - :heavy_check_mark: `code_128`
60
67
  - :heavy_check_mark: `code_39`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barcode-detector",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "author": {
5
5
  "name": "Niklas Gruhn",
6
6
  "email": "niklas@gruhn.me"
@@ -11,7 +11,12 @@
11
11
  "description": "",
12
12
  "source": "src/BarcodeDetector.ts",
13
13
  "main": "dist/barcode-detector.js",
14
- "exports": "./dist/barcode-detector.modern.js",
14
+ "exports": {
15
+ ".": {
16
+ "import": "./dist/barcode-detector.modern.js",
17
+ "types": "./dist/BarcodeDetector.d.ts"
18
+ }
19
+ },
15
20
  "module": "dist/barcode-detector.module.js",
16
21
  "unpkg": "dist/barcode-detector.umd.js",
17
22
  "amdName": "BarcodeDetectorPolyfill",