UNPKG

@amirmarmul/waba-common

Version:

![GitHub release](https://img.shields.io/github/v/release/amirmarmul/waba-common?style=flat-square)

12 lines (11 loc) 374 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UniqueId = void 0; const node_crypto_1 = require("node:crypto"); const Identifier_1 = require("../../core/domain/Identifier"); class UniqueId extends Identifier_1.Identifier { constructor(id) { super(id ?? (0, node_crypto_1.randomUUID)()); } } exports.UniqueId = UniqueId;