md-curcuma
Version:
A Typescript library for transporting and converting markdown and other data.
16 lines (15 loc) • 457 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.InsertUUID_Mapping = void 0;
const uuid_1 = require("uuid");
class InsertUUID_Mapping {
perform(mapping_properties) {
if ((0, uuid_1.validate)(mapping_properties.source_value)) {
return mapping_properties.source_value;
}
else {
return (0, uuid_1.v4)();
}
}
}
exports.InsertUUID_Mapping = InsertUUID_Mapping;