mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 06:05:02 +03:00
34 lines
728 B
JavaScript
34 lines
728 B
JavaScript
"use strict";
|
|
var t = (this && this.__importDefault) || function(t) {
|
|
return t && t.__esModule ? t : {
|
|
default: t
|
|
};
|
|
};
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
const e = t(require("./config.json"));
|
|
function n({ config: t = e.default } = {}) {
|
|
function n(e) {
|
|
const n = t[e] || null;
|
|
if (!n) {
|
|
return false;
|
|
}
|
|
const { available: r , availableBy: u } = n;
|
|
if (!u) {
|
|
return r;
|
|
}
|
|
return Date.now() >= u && r;
|
|
}
|
|
function r(e) {
|
|
const n = t[e] || null;
|
|
return n;
|
|
}
|
|
return {
|
|
longlong10: r,
|
|
longlong2: n,
|
|
longlong100: t
|
|
};
|
|
}
|
|
exports.default = n;
|