Source: constants.js

"use strict";
/**
 * @file A Unique Identifier Generator for Node
 * @author Adam Mill <hismajesty@theroyalwhee.com>
 * @copyright Copyright 2021-2022 Adam Mill
 * @license Apache-2.0
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.re_lax = exports.re_strict = exports.ALL_SIZE = exports.SIGN_SIZE = exports.VERIFY_SIZE = exports.RND_SIZE = exports.ID_SIZE = exports.HMAC_ALGO = void 0;
/**
 * General.
 * @private
 */
exports.HMAC_ALGO = 'sha256';
/**
 * Size constants.
 * @private
 */
exports.ID_SIZE = 8;
exports.RND_SIZE = 8;
exports.VERIFY_SIZE = 2;
exports.SIGN_SIZE = 4;
exports.ALL_SIZE = exports.ID_SIZE + exports.RND_SIZE + exports.VERIFY_SIZE + exports.SIGN_SIZE;
/**
 * Validation regexp.
 * @private
 */
exports.re_strict = /^[123456789ABCDEFGHJKLMNPQRTVWXYZ][0123456789ABCDEFGHJKLMNPQRTVWXYZ]+$/;
exports.re_lax = /^[0-9A-Za-z]+$/;
//# sourceMappingURL=constants.js.map