Innovenergy_trunk/frontend/node_modules/testcafe-hammerhead/lib/utils/generate-unique-id.js

12 lines
454 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const nanoid_1 = require("nanoid");
const UNIQUE_ID_ALPHABET = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
const DEFAULT_ID_LENGTH = 9;
function default_1(length) {
const generator = (0, nanoid_1.customAlphabet)(UNIQUE_ID_ALPHABET, length || DEFAULT_ID_LENGTH);
return generator();
}
exports.default = default_1;module.exports = exports.default;