UNPKG

testcontainers

Version:

Testcontainers is a NodeJS library that supports tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container

15 lines 522 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.RandomUuid = void 0; const crypto_1 = __importDefault(require("crypto")); const hash_1 = require("./hash"); class RandomUuid { nextUuid() { return (0, hash_1.hash)(crypto_1.default.randomUUID()).substring(0, 12); } } exports.RandomUuid = RandomUuid; //# sourceMappingURL=uuid.js.map