r2-lcp-js
Version:
Readium 2 LCP bits for NodeJS (TypeScript)
49 lines • 1.81 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Encrypted = void 0;
const tslib_1 = require("tslib");
const ta_json_x_1 = require("ta-json-x");
let Encrypted = class Encrypted {
constructor() {
this.DecryptedLengthBeforeInflate = -1;
this.CypherBlockPadding = -1;
}
get OriginalLength() {
return typeof this.OriginalLength2 !== "undefined" ? this.OriginalLength2 : this.OriginalLength1;
}
set OriginalLength(length) {
if (typeof length !== "undefined") {
this.OriginalLength1 = undefined;
this.OriginalLength2 = length;
}
}
};
exports.Encrypted = Encrypted;
tslib_1.__decorate([
(0, ta_json_x_1.JsonProperty)("scheme"),
tslib_1.__metadata("design:type", String)
], Encrypted.prototype, "Scheme", void 0);
tslib_1.__decorate([
(0, ta_json_x_1.JsonProperty)("profile"),
tslib_1.__metadata("design:type", String)
], Encrypted.prototype, "Profile", void 0);
tslib_1.__decorate([
(0, ta_json_x_1.JsonProperty)("algorithm"),
tslib_1.__metadata("design:type", String)
], Encrypted.prototype, "Algorithm", void 0);
tslib_1.__decorate([
(0, ta_json_x_1.JsonProperty)("compression"),
tslib_1.__metadata("design:type", String)
], Encrypted.prototype, "Compression", void 0);
tslib_1.__decorate([
(0, ta_json_x_1.JsonProperty)("originalLength"),
tslib_1.__metadata("design:type", Number)
], Encrypted.prototype, "OriginalLength2", void 0);
tslib_1.__decorate([
(0, ta_json_x_1.JsonProperty)("original-length"),
tslib_1.__metadata("design:type", Object)
], Encrypted.prototype, "OriginalLength1", void 0);
exports.Encrypted = Encrypted = tslib_1.__decorate([
(0, ta_json_x_1.JsonObject)()
], Encrypted);
//# sourceMappingURL=metadata-encrypted.js.map