barcode-detector 0.7.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.
- package/.github/workflows/semantic-release.yml +27 -0
- package/README.md +8 -1
- package/dist/barcode-detector.js +1 -1
- package/dist/barcode-detector.js.map +1 -1
- package/dist/barcode-detector.modern.js +1 -1
- package/dist/barcode-detector.modern.js.map +1 -1
- package/dist/barcode-detector.module.js +1 -1
- package/dist/barcode-detector.module.js.map +1 -1
- package/dist/barcode-detector.umd.js +1 -1
- package/dist/barcode-detector.umd.js.map +1 -1
- package/package.json +9 -3
- package/src/image-data.ts +1 -1
- package/src/worker/build.sh +27 -0
- package/build-worker.sh +0 -24
- package/dist/BarcodeDetectorZbar.d.ts +0 -6
- package/dist/barcode-detector.worker.umd.js +0 -2
- package/dist/detectors/image-data.d.ts +0 -1
- package/src/worker/inline-worker.js +0 -4
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- master
|
|
6
|
+
jobs:
|
|
7
|
+
release:
|
|
8
|
+
name: Release
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- name: Checkout
|
|
12
|
+
uses: actions/checkout@v2
|
|
13
|
+
with:
|
|
14
|
+
fetch-depth: 0
|
|
15
|
+
- name: Setup Node.js
|
|
16
|
+
uses: actions/setup-node@v1
|
|
17
|
+
with:
|
|
18
|
+
node-version: 12
|
|
19
|
+
- name: Install dependencies
|
|
20
|
+
run: npm ci
|
|
21
|
+
- name: Build
|
|
22
|
+
run: ./src/worker/build.sh && npm run build
|
|
23
|
+
- name: Release
|
|
24
|
+
env:
|
|
25
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
26
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
27
|
+
run: npx semantic-release
|
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`
|