Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function PluginTestWatcher(dir, opts) {
opts = common.assignOptions(this, opts);
this.watched = Object.create(null);
this.root = path.resolve(dir);
watch.createMonitor(
this.root,
{
interval: (opts.interval || DEFAULT_DELAY) / 1000,
filter: this.filter.bind(this),
},
this.init.bind(this)
);
}
constructor(dir, opts) {
super();
opts = common.assignOptions(this, opts);
this.watched = Object.create(null);
this.root = path.resolve(dir);
watch.createMonitor(
this.root,
{
interval: (opts.interval || DEFAULT_DELAY) / 1000,
filter: this.filter.bind(this),
},
this.init.bind(this)
);
}
constructor(dir, opts) {
super();
opts = common.assignOptions(this, opts);
this.watched = Object.create(null);
this.root = path.resolve(dir);
watch.createMonitor(
this.root,
{
interval: (opts.interval || DEFAULT_DELAY) / 1000,
filter: this.filter.bind(this),
},
this.init.bind(this)
);
}