UNPKG

agenda-admin

Version:
16 lines (15 loc) 655 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getOptions = exports.setOptions = void 0; const constants_1 = require("./constants"); let options; const setOptions = (newOptions) => { options = newOptions; }; exports.setOptions = setOptions; const getOptions = () => ({ itemsPerPage: (options === null || options === void 0 ? void 0 : options.itemsPerPage) || constants_1.ITEMS_PER_PAGE, username: (options === null || options === void 0 ? void 0 : options.username) || 'admin', password: (options === null || options === void 0 ? void 0 : options.password) || '', }); exports.getOptions = getOptions;