@nddeps/barcode-scanner 0.4.1 → 0.5.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/dist/constants.d.ts +7 -0
- package/dist/create-barcode-scanner.d.ts +31 -20
- package/dist/create-worker.d.ts +4 -2
- package/dist/index.js +159 -182
- package/dist/worker.js +1449 -1454
- package/dist/worker.types.d.ts +9 -2
- package/dist/zxing-reader.wasm +0 -0
- package/package.json +65 -65
- package/dist/create-watchable.d.ts +0 -5
package/dist/worker.types.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import type { DetectedBarcode } from 'barcode-detector/ponyfill';
|
|
1
|
+
import type { BarcodeFormat, DetectedBarcode } from 'barcode-detector/ponyfill';
|
|
2
|
+
type Config = {
|
|
3
|
+
payload: {
|
|
4
|
+
formats: BarcodeFormat[];
|
|
5
|
+
wasmUrl: string;
|
|
6
|
+
};
|
|
7
|
+
type: 'config';
|
|
8
|
+
};
|
|
2
9
|
type DecodeRequest = {
|
|
3
10
|
payload: {
|
|
4
11
|
data: ImageData;
|
|
@@ -19,4 +26,4 @@ type Init = {
|
|
|
19
26
|
};
|
|
20
27
|
type: 'init';
|
|
21
28
|
};
|
|
22
|
-
export type { DecodeRequest, DecodeResponse, Init };
|
|
29
|
+
export type { Config, DecodeRequest, DecodeResponse, Init };
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@nddeps/barcode-scanner",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"private": false,
|
|
5
|
-
"keywords": [
|
|
6
|
-
"barcode",
|
|
7
|
-
"scanner",
|
|
8
|
-
"barcode-scanner"
|
|
9
|
-
],
|
|
10
|
-
"homepage": "https://github.com/No-Deprecated-Dependencies/barcode-scanner",
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/No-Deprecated-Dependencies/barcode-scanner.git"
|
|
14
|
-
},
|
|
15
|
-
"license": "MIT",
|
|
16
|
-
"author": "Aleksei Saenko",
|
|
17
|
-
"type": "module",
|
|
18
|
-
"exports": {
|
|
19
|
-
".": {
|
|
20
|
-
"types": "./dist/index.d.ts",
|
|
21
|
-
"import": "./dist/index.js"
|
|
22
|
-
},
|
|
23
|
-
"./worker": {
|
|
24
|
-
"import": "./dist/worker.js"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"main": "./dist/index.js",
|
|
28
|
-
"types": "./dist/index.d.ts",
|
|
29
|
-
"files": [
|
|
30
|
-
"./dist"
|
|
31
|
-
],
|
|
32
|
-
"scripts": {
|
|
33
|
-
"build": "vite build && tsc -b",
|
|
34
|
-
"dev": "vite",
|
|
35
|
-
"preview": "vite preview"
|
|
36
|
-
},
|
|
37
|
-
"dependencies": {
|
|
38
|
-
"barcode-detector": "^3.0.8",
|
|
39
|
-
"zxing-wasm": "^2.2.4"
|
|
40
|
-
},
|
|
41
|
-
"devDependencies": {
|
|
42
|
-
"@eslint/css": "^0.14.1",
|
|
43
|
-
"@eslint/js": "^9.39.2",
|
|
44
|
-
"@eslint/json": "^1.0.0",
|
|
45
|
-
"@eslint/markdown": "^7.5.1",
|
|
46
|
-
"@types/emscripten": "^1.41.5",
|
|
47
|
-
"@types/node": "^25.
|
|
48
|
-
"eslint": "^9.39.2",
|
|
49
|
-
"eslint-config-prettier": "^10.1.8",
|
|
50
|
-
"eslint-plugin-perfectionist": "^5.4.0",
|
|
51
|
-
"eslint-plugin-prettier": "^5.5.5",
|
|
52
|
-
"globals": "^17.2.0",
|
|
53
|
-
"jiti": "^2.6.1",
|
|
54
|
-
"prettier": "3.8.1",
|
|
55
|
-
"sort-package-json": "^3.6.1",
|
|
56
|
-
"stylelint": "^16.26.1",
|
|
57
|
-
"stylelint-config-recess-order": "^7.6.0",
|
|
58
|
-
"stylelint-config-standard": "^39.0.1",
|
|
59
|
-
"stylelint-config-standard-scss": "^16.0.0",
|
|
60
|
-
"stylelint-order": "^7.0.1",
|
|
61
|
-
"typescript": "~5.9.3",
|
|
62
|
-
"typescript-eslint": "^8.54.0",
|
|
63
|
-
"vite": "^7.3.1"
|
|
64
|
-
}
|
|
65
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@nddeps/barcode-scanner",
|
|
3
|
+
"version": "0.5.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"keywords": [
|
|
6
|
+
"barcode",
|
|
7
|
+
"scanner",
|
|
8
|
+
"barcode-scanner"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/No-Deprecated-Dependencies/barcode-scanner",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/No-Deprecated-Dependencies/barcode-scanner.git"
|
|
14
|
+
},
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"author": "Aleksei Saenko",
|
|
17
|
+
"type": "module",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"import": "./dist/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./worker": {
|
|
24
|
+
"import": "./dist/worker.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"main": "./dist/index.js",
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"files": [
|
|
30
|
+
"./dist"
|
|
31
|
+
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "vite build && tsc -b",
|
|
34
|
+
"dev": "vite",
|
|
35
|
+
"preview": "vite preview"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"barcode-detector": "^3.0.8",
|
|
39
|
+
"zxing-wasm": "^2.2.4"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@eslint/css": "^0.14.1",
|
|
43
|
+
"@eslint/js": "^9.39.2",
|
|
44
|
+
"@eslint/json": "^1.0.0",
|
|
45
|
+
"@eslint/markdown": "^7.5.1",
|
|
46
|
+
"@types/emscripten": "^1.41.5",
|
|
47
|
+
"@types/node": "^25.2.0",
|
|
48
|
+
"eslint": "^9.39.2",
|
|
49
|
+
"eslint-config-prettier": "^10.1.8",
|
|
50
|
+
"eslint-plugin-perfectionist": "^5.4.0",
|
|
51
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
52
|
+
"globals": "^17.2.0",
|
|
53
|
+
"jiti": "^2.6.1",
|
|
54
|
+
"prettier": "3.8.1",
|
|
55
|
+
"sort-package-json": "^3.6.1",
|
|
56
|
+
"stylelint": "^16.26.1",
|
|
57
|
+
"stylelint-config-recess-order": "^7.6.0",
|
|
58
|
+
"stylelint-config-standard": "^39.0.1",
|
|
59
|
+
"stylelint-config-standard-scss": "^16.0.0",
|
|
60
|
+
"stylelint-order": "^7.0.1",
|
|
61
|
+
"typescript": "~5.9.3",
|
|
62
|
+
"typescript-eslint": "^8.54.0",
|
|
63
|
+
"vite": "^7.3.1"
|
|
64
|
+
}
|
|
65
|
+
}
|