Initial Commit

This commit is contained in:
2026-01-15 21:52:12 +01:00
committed by erik
parent 3ed42cdeb6
commit 5a70f775f1
6702 changed files with 1389544 additions and 0 deletions

28
node_modules/app-builder-lib/out/util/timer.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.time = exports.DevTimer = void 0;
const builder_util_1 = require("builder-util");
class DevTimer {
constructor(label) {
this.label = label;
this.start = process.hrtime();
}
endAndGet() {
const end = process.hrtime(this.start);
return `${end[0]}s ${Math.round(end[1] / 1000000)}ms`;
}
end() {
console.info(`${this.label}: ${this.endAndGet()}`);
}
}
exports.DevTimer = DevTimer;
class ProductionTimer {
end() {
// ignore
}
}
function time(label) {
return builder_util_1.debug.enabled ? new DevTimer(label) : new ProductionTimer();
}
exports.time = time;
//# sourceMappingURL=timer.js.map