Files
NapCatQQ/.pnpm-store/v3/files/e2/e48d475456c5b185bb076eb1d983ee1e646f6f266586b7c0fa85e2df0bfc552fd8d48f29b830fcf08e262e41afb99b788f132a2196e555edc85c1055db11d5
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

24 lines
812 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Validity = void 0;
const tslib_1 = require("tslib");
const asn1_schema_1 = require("@peculiar/asn1-schema");
const time_1 = require("./time");
class Validity {
constructor(params) {
this.notBefore = new time_1.Time(new Date());
this.notAfter = new time_1.Time(new Date());
if (params) {
this.notBefore = new time_1.Time(params.notBefore);
this.notAfter = new time_1.Time(params.notAfter);
}
}
}
exports.Validity = Validity;
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: time_1.Time })
], Validity.prototype, "notBefore", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: time_1.Time })
], Validity.prototype, "notAfter", void 0);