epic-sql
Version:
A Simple But Powerful SQL ORM!!!
19 lines (18 loc) • 659 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Utils = void 0;
class Utils {
static uuidShort() {
return parseInt((parseInt(parseInt((new Date().getTime() / 3.3).toString()).toString() +
parseInt((Math.random() * 10000).toString())) + new Date().getMilliseconds())
.toString()
.replace(".", ""));
}
static uuid() {
return "xxxxxxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g, (c) => {
var r = (Math.random() * 16) | 0, v = c == "x" ? r : (r & 0x3) | 0x8;
return v.toString(16);
});
}
}
exports.Utils = Utils;
;