Files
login-page/backend/node_modules/async/internal/onlyOnce.js
theis.gaedigk 63d120cc4e feat: add sqlstring and supports-color modules
- Introduced sqlstring module for SQL escape and formatting.
- Added supports-color module to detect terminal color support.
- Created dashboard and login views with Bootstrap styling.
- Implemented user schema in SQL with mock data for testing.
2025-06-20 22:57:32 +02:00

15 lines
360 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = onlyOnce;
function onlyOnce(fn) {
return function (...args) {
if (fn === null) throw new Error("Callback was already called.");
var callFn = fn;
fn = null;
callFn.apply(this, args);
};
}
module.exports = exports.default;