Add barcode-detector-api-polyfill dependency and update environment variable declarations in SvelteKit project
This commit is contained in:
+40
@@ -0,0 +1,40 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.nativeToZxingFormat = exports.zxingToNativeFormat = void 0;
|
||||
const library_1 = require("@zxing/library");
|
||||
// format names taken from https://developer.mozilla.org/en-US/docs/Web/API/Barcode_Detection_API#supported_barcode_formats
|
||||
exports.zxingToNativeFormat = {
|
||||
[library_1.BarcodeFormat.AZTEC]: 'aztec',
|
||||
[library_1.BarcodeFormat.CODABAR]: 'codabar',
|
||||
[library_1.BarcodeFormat.CODE_39]: 'code_39',
|
||||
[library_1.BarcodeFormat.CODE_93]: 'code_93',
|
||||
[library_1.BarcodeFormat.CODE_128]: 'code_128',
|
||||
[library_1.BarcodeFormat.DATA_MATRIX]: 'data_matrix',
|
||||
[library_1.BarcodeFormat.EAN_8]: 'ean_8',
|
||||
[library_1.BarcodeFormat.EAN_13]: 'ean_13',
|
||||
[library_1.BarcodeFormat.ITF]: 'itf',
|
||||
[library_1.BarcodeFormat.PDF_417]: 'pdf417',
|
||||
[library_1.BarcodeFormat.QR_CODE]: 'qr_code',
|
||||
[library_1.BarcodeFormat.UPC_A]: 'upc_a',
|
||||
[library_1.BarcodeFormat.UPC_E]: 'upc_e',
|
||||
[library_1.BarcodeFormat.UPC_EAN_EXTENSION]: 'unknown',
|
||||
[library_1.BarcodeFormat.MAXICODE]: 'unknown',
|
||||
[library_1.BarcodeFormat.RSS_14]: 'unknown',
|
||||
[library_1.BarcodeFormat.RSS_EXPANDED]: 'unknown',
|
||||
};
|
||||
exports.nativeToZxingFormat = {
|
||||
aztec: library_1.BarcodeFormat.AZTEC,
|
||||
codabar: library_1.BarcodeFormat.CODABAR,
|
||||
code_39: library_1.BarcodeFormat.CODE_39,
|
||||
code_93: library_1.BarcodeFormat.CODE_93,
|
||||
code_128: library_1.BarcodeFormat.CODE_128,
|
||||
data_matrix: library_1.BarcodeFormat.DATA_MATRIX,
|
||||
ean_8: library_1.BarcodeFormat.EAN_8,
|
||||
ean_13: library_1.BarcodeFormat.EAN_13,
|
||||
itf: library_1.BarcodeFormat.ITF,
|
||||
pdf417: library_1.BarcodeFormat.PDF_417,
|
||||
qr_code: library_1.BarcodeFormat.QR_CODE,
|
||||
upc_a: library_1.BarcodeFormat.UPC_A,
|
||||
upc_e: library_1.BarcodeFormat.UPC_E,
|
||||
};
|
||||
//# sourceMappingURL=constants.js.map
|
||||
Reference in New Issue
Block a user