@beyond-js/bundles-sdk
Version:
BeyondJS Bundles SDK
29 lines (23 loc) • 577 B
JavaScript
const ipc = require('@beyond-js/ipc/main');
const { FinderCollection } = require('@beyond-js/finder');
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,
});
}
};