@x5e/gink
Version:
an eventually consistent database
19 lines • 706 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Property = void 0;
const utils_1 = require("./utils");
const builders_1 = require("./builders");
const Keyed_1 = require("./Keyed");
class Property extends Keyed_1.Keyed {
constructor(database, address, containerBuilder) {
super(database, address, builders_1.Behavior.PROPERTY);
if (this.address.timestamp < 0) {
(0, utils_1.ensure)(address.offset === builders_1.Behavior.PROPERTY);
}
else {
(0, utils_1.ensure)(containerBuilder.getBehavior() === builders_1.Behavior.PROPERTY);
}
}
}
exports.Property = Property;
//# sourceMappingURL=Property.js.map