watcher
This commit is contained in:
@@ -78,7 +78,16 @@ function writeStoreWatch(profileId, entries = []) {
|
||||
return sanitized;
|
||||
}
|
||||
|
||||
function listWatcherProfiles() {
|
||||
ensureDir();
|
||||
return fs
|
||||
.readdirSync(STORE_WATCH_DIR)
|
||||
.filter((file) => file.endsWith('-store-watch.json'))
|
||||
.map((file) => file.replace(/-store-watch\.json$/, ''));
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
readStoreWatch,
|
||||
writeStoreWatch
|
||||
writeStoreWatch,
|
||||
listWatcherProfiles
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user