beyond
Version:
The Full Stack Universal Typescript Framework
28 lines (22 loc) • 639 B
JavaScript
const {ipc, FinderCollection} = global.utils;
module.exports = class extends FinderCollection.Item {
#processor;
get id() {
const {specs, name} = this.#processor;
return `${specs.bundle.id}//${name}//${this.relative.file}`;
}
get is() {
return 'overwrite';
}
constructor(collection, file) {
super(collection, file);
this.#processor = collection.processor;
}
_notify() {
ipc.notify('data-notification', {
type: 'record/update',
table: 'processors-overwrites',
id: this.id
});
}
}