UNPKG

emvco-qr-sdk

Version:

A robust TypeScript SDK for decoding, validating, and processing EMVCo-compliant QR codes used in digital payment systems.

14 lines (13 loc) 622 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PARSE_ERRORS = void 0; /** * Collection of parse-time error messages and error factories. */ exports.PARSE_ERRORS = { EMPTY_QR: 'The QR string is empty or invalid.', INVALID_TLV_FORMAT: (value) => `The QR string does not follow expected TLV format: "${value}"`, INVALID_LENGTH: (lengthStr, tag) => `Invalid length '${lengthStr}' for tag ${tag}.`, EXCEEDS_AVAILABLE: (tag) => `The value for tag ${tag} exceeds the available characters.`, UNSUPPORTED_MODE: (mode) => `Unsupported parse mode for full QR: ${mode}`, };