barcode-detector-api-polyfill 1.0.10 → 1.0.11
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/browser/barcode-detector-polyfill.min.js +1 -1
- package/browser/barcode-detector-polyfill.min.js.map +1 -1
- package/package.json +21 -11
- package/cjs/browser.d.ts +0 -1
- package/cjs/browser.js +0 -7
- package/cjs/browser.js.map +0 -1
- package/es2022/browser.d.ts +0 -1
- package/es2022/browser.js +0 -7
- package/es2022/browser.js.map +0 -1
- /package/{es2022 → esm}/BarcodeDetector.d.ts +0 -0
- /package/{es2022 → esm}/BarcodeDetector.js +0 -0
- /package/{es2022 → esm}/BarcodeDetector.js.map +0 -0
- /package/{es2022 → esm}/constants.d.ts +0 -0
- /package/{es2022 → esm}/constants.js +0 -0
- /package/{es2022 → esm}/constants.js.map +0 -0
- /package/{es2022 → esm}/index.d.ts +0 -0
- /package/{es2022 → esm}/index.js +0 -0
- /package/{es2022 → esm}/index.js.map +0 -0
- /package/{es2022 → esm}/models/IBarcodeDetector.d.ts +0 -0
- /package/{es2022 → esm}/models/IBarcodeDetector.js +0 -0
- /package/{es2022 → esm}/models/IBarcodeDetector.js.map +0 -0
- /package/{es2022 → esm}/models/ICornerPoint.d.ts +0 -0
- /package/{es2022 → esm}/models/ICornerPoint.js +0 -0
- /package/{es2022 → esm}/models/ICornerPoint.js.map +0 -0
- /package/{es2022 → esm}/models/IDetectedBarcode.d.ts +0 -0
- /package/{es2022 → esm}/models/IDetectedBarcode.js +0 -0
- /package/{es2022 → esm}/models/IDetectedBarcode.js.map +0 -0
- /package/{es2022 → esm}/models/WindowWithBarcodeDetector.d.ts +0 -0
- /package/{es2022 → esm}/models/WindowWithBarcodeDetector.js +0 -0
- /package/{es2022 → esm}/models/WindowWithBarcodeDetector.js.map +0 -0
- /package/{es2022 → esm}/models/index.d.ts +0 -0
- /package/{es2022 → esm}/models/index.js +0 -0
- /package/{es2022 → esm}/models/index.js.map +0 -0
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "barcode-detector-api-polyfill",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A polyfill for the BarcodeDetector API using the ZXing library",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"clean": "shx rm -rf dist",
|
|
8
|
-
"build": "npm run clean && npm run test && npm run build:
|
|
9
|
-
"build:
|
|
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
10
|
"build:cjs": "tsc --build tsconfig.cjs.json",
|
|
11
11
|
"build:browser": "esbuild src/browser.ts --outfile=dist/browser/barcode-detector-polyfill.min.js --bundle --tree-shaking --target=firefox112,safari16 --minify --sourcemap",
|
|
12
12
|
"build:copy": "shx cp README.md dist && shx cp package.json dist && shx cp LICENSE dist",
|
|
@@ -28,28 +28,38 @@
|
|
|
28
28
|
},
|
|
29
29
|
"author": "Stefan Nedelchev",
|
|
30
30
|
"license": "MIT",
|
|
31
|
+
"types": "./cjs/index.d.ts",
|
|
31
32
|
"main": "./cjs/index.js",
|
|
32
|
-
"module": "./es2022/inedx.js",
|
|
33
|
-
"typings": "./es2022/index.d.ts",
|
|
34
|
-
"esnext": "./es2022/index.js",
|
|
35
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
|
+
},
|
|
36
46
|
"dependencies": {
|
|
37
47
|
"@zxing/browser": "^0.1.4",
|
|
38
48
|
"@zxing/library": "^0.20.0"
|
|
39
49
|
},
|
|
40
50
|
"devDependencies": {
|
|
41
51
|
"@types/jest": "^29.5.11",
|
|
42
|
-
"@types/node": "^18.19.
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
44
|
-
"@typescript-eslint/parser": "^6.
|
|
52
|
+
"@types/node": "^18.19.9",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^6.19.1",
|
|
54
|
+
"@typescript-eslint/parser": "^6.19.1",
|
|
45
55
|
"canvas": "^2.11.2",
|
|
46
|
-
"esbuild": "^0.19.
|
|
56
|
+
"esbuild": "^0.19.12",
|
|
47
57
|
"eslint": "^8.56.0",
|
|
48
58
|
"jest": "^29.7.0",
|
|
49
59
|
"jest-canvas-mock": "^2.5.2",
|
|
50
60
|
"jest-environment-jsdom": "^29.7.0",
|
|
51
61
|
"shx": "^0.3.4",
|
|
52
|
-
"ts-jest": "^29.1.
|
|
62
|
+
"ts-jest": "^29.1.2",
|
|
53
63
|
"typescript": "~5.3.3"
|
|
54
64
|
}
|
|
55
65
|
}
|
package/cjs/browser.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/cjs/browser.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const BarcodeDetector_1 = require("./BarcodeDetector");
|
|
4
|
-
if (!('BarcodeDetector' in window)) {
|
|
5
|
-
window.BarcodeDetector = BarcodeDetector_1.BarcodeDetector;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=browser.js.map
|
package/cjs/browser.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../../src/browser.ts"],"names":[],"mappings":";;AACA,uDAAoD;AAEpD,IAAI,CAAC,CAAC,iBAAiB,IAAI,MAAM,CAAC,EAAE,CAAC;IAClC,MAAoC,CAAC,eAAe,GAAG,iCAAe,CAAC;AAC1E,CAAC"}
|
package/es2022/browser.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/es2022/browser.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const BarcodeDetector_1 = require("./BarcodeDetector");
|
|
4
|
-
if (!('BarcodeDetector' in window)) {
|
|
5
|
-
window.BarcodeDetector = BarcodeDetector_1.BarcodeDetector;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=browser.js.map
|
package/es2022/browser.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../../src/browser.ts"],"names":[],"mappings":";;AACA,uDAAoD;AAEpD,IAAI,CAAC,CAAC,iBAAiB,IAAI,MAAM,CAAC,EAAE,CAAC;IAClC,MAAoC,CAAC,eAAe,GAAG,iCAAe,CAAC;AAC1E,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{es2022 → esm}/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|