barcode-detector-api-polyfill 1.0.18 → 1.0.20
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,65 +1,65 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "barcode-detector-api-polyfill",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"private": false,
|
|
5
|
-
"description": "A polyfill for the BarcodeDetector API using the ZXing library",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"clean": "shx rm -rf dist",
|
|
8
|
-
"build": "npm run clean && npm run test && npm run build:esm && npm run build:cjs && npm run build:browser && npm run build:copy",
|
|
9
|
-
"build:esm": "tsc --build tsconfig.esm.json",
|
|
10
|
-
"build:cjs": "tsc --build tsconfig.cjs.json",
|
|
11
|
-
"build:browser": "esbuild src/browser.ts --outfile=dist/browser/barcode-detector-polyfill.min.js --bundle --tree-shaking --target=firefox112,safari16 --minify --sourcemap",
|
|
12
|
-
"build:copy": "shx cp README.md dist && shx cp package.json dist && shx cp LICENSE dist",
|
|
13
|
-
"lint": "eslint src __tests__",
|
|
14
|
-
"test": "jest",
|
|
15
|
-
"test:coverage": "jest --coverage"
|
|
16
|
-
},
|
|
17
|
-
"keywords": [
|
|
18
|
-
"barcode",
|
|
19
|
-
"detector",
|
|
20
|
-
"reader",
|
|
21
|
-
"api",
|
|
22
|
-
"polyfill",
|
|
23
|
-
"browser"
|
|
24
|
-
],
|
|
25
|
-
"repository": {
|
|
26
|
-
"type": "git",
|
|
27
|
-
"url": "https://github.com/StefanNedelchev/barcode-detector-polyfill.git"
|
|
28
|
-
},
|
|
29
|
-
"author": "Stefan Nedelchev",
|
|
30
|
-
"license": "MIT",
|
|
31
|
-
"types": "./cjs/index.d.ts",
|
|
32
|
-
"main": "./cjs/index.js",
|
|
33
|
-
"unpkg": "./browser/barcode-detector-polyfill.min.js",
|
|
34
|
-
"exports": {
|
|
35
|
-
".": {
|
|
36
|
-
"import": {
|
|
37
|
-
"types": "./esm/index.d.ts",
|
|
38
|
-
"default": "./esm/index.js"
|
|
39
|
-
},
|
|
40
|
-
"require": {
|
|
41
|
-
"types": "./cjs/index.d.ts",
|
|
42
|
-
"default": "./cjs/index.js"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"dependencies": {
|
|
47
|
-
"@zxing/browser": "^0.1.5",
|
|
48
|
-
"@zxing/library": "^0.21.3"
|
|
49
|
-
},
|
|
50
|
-
"devDependencies": {
|
|
51
|
-
"@types/jest": "^30.0.0",
|
|
52
|
-
"@types/node": "^20.19.
|
|
53
|
-
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
54
|
-
"@typescript-eslint/parser": "^7.18.0",
|
|
55
|
-
"canvas": "^3.2.0",
|
|
56
|
-
"esbuild": "^0.25.
|
|
57
|
-
"eslint": "^8.57.1",
|
|
58
|
-
"jest": "^30.
|
|
59
|
-
"jest-canvas-mock": "^2.5.2",
|
|
60
|
-
"jest-environment-jsdom": "^30.
|
|
61
|
-
"shx": "^0.4.0",
|
|
62
|
-
"ts-jest": "^29.4.
|
|
63
|
-
"typescript": "~5.4.5"
|
|
64
|
-
}
|
|
65
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "barcode-detector-api-polyfill",
|
|
3
|
+
"version": "1.0.20",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "A polyfill for the BarcodeDetector API using the ZXing library",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"clean": "shx rm -rf dist",
|
|
8
|
+
"build": "npm run clean && npm run test && npm run build:esm && npm run build:cjs && npm run build:browser && npm run build:copy",
|
|
9
|
+
"build:esm": "tsc --build tsconfig.esm.json",
|
|
10
|
+
"build:cjs": "tsc --build tsconfig.cjs.json",
|
|
11
|
+
"build:browser": "esbuild src/browser.ts --outfile=dist/browser/barcode-detector-polyfill.min.js --bundle --tree-shaking --target=firefox112,safari16 --minify --sourcemap",
|
|
12
|
+
"build:copy": "shx cp README.md dist && shx cp package.json dist && shx cp LICENSE dist",
|
|
13
|
+
"lint": "eslint src __tests__",
|
|
14
|
+
"test": "jest",
|
|
15
|
+
"test:coverage": "jest --coverage"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"barcode",
|
|
19
|
+
"detector",
|
|
20
|
+
"reader",
|
|
21
|
+
"api",
|
|
22
|
+
"polyfill",
|
|
23
|
+
"browser"
|
|
24
|
+
],
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "https://github.com/StefanNedelchev/barcode-detector-polyfill.git"
|
|
28
|
+
},
|
|
29
|
+
"author": "Stefan Nedelchev",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"types": "./cjs/index.d.ts",
|
|
32
|
+
"main": "./cjs/index.js",
|
|
33
|
+
"unpkg": "./browser/barcode-detector-polyfill.min.js",
|
|
34
|
+
"exports": {
|
|
35
|
+
".": {
|
|
36
|
+
"import": {
|
|
37
|
+
"types": "./esm/index.d.ts",
|
|
38
|
+
"default": "./esm/index.js"
|
|
39
|
+
},
|
|
40
|
+
"require": {
|
|
41
|
+
"types": "./cjs/index.d.ts",
|
|
42
|
+
"default": "./cjs/index.js"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@zxing/browser": "^0.1.5",
|
|
48
|
+
"@zxing/library": "^0.21.3"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@types/jest": "^30.0.0",
|
|
52
|
+
"@types/node": "^20.19.26",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
54
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
55
|
+
"canvas": "^3.2.0",
|
|
56
|
+
"esbuild": "^0.25.12",
|
|
57
|
+
"eslint": "^8.57.1",
|
|
58
|
+
"jest": "^30.2.0",
|
|
59
|
+
"jest-canvas-mock": "^2.5.2",
|
|
60
|
+
"jest-environment-jsdom": "^30.2.0",
|
|
61
|
+
"shx": "^0.4.0",
|
|
62
|
+
"ts-jest": "^29.4.6",
|
|
63
|
+
"typescript": "~5.4.5"
|
|
64
|
+
}
|
|
65
|
+
}
|