mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 19:52:21 +03:00
064bcf4854
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
34 lines
725 B
JavaScript
34 lines
725 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;
|