@hiki9/rich-domain
Version:
Rich Domain is a library that provides a set of tools to help you build complex business logic in NodeJS using Domain Driven Design principles.
19 lines • 517 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Snapshot = void 0;
class Snapshot {
constructor(input) {
this.fromDeepWatch = false;
this.deepWatchPath = null;
this.props = input.props;
this.trace = input.trace;
}
hasChange(key) {
return this.trace.update.split('.').includes(key);
}
get timestamp() {
return this.trace.updatedAt;
}
}
exports.Snapshot = Snapshot;
//# sourceMappingURL=history-snapshot.js.map