ldn-inbox-server 1.6.4 → 1.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -63,7 +63,9 @@ program
63
63
  if (config.registry) {
64
64
  for (let i = 0 ; i < config.registry.length ; i++) {
65
65
  const registry_item = config.registry[i];
66
- registry_item['do'] = doInbox;
66
+ if (! registry_item['do']) {
67
+ registry_item['do'] = doInbox;
68
+ }
67
69
  registry_item['with'] = {...options,...registry_item['with']};
68
70
  registry = registry.concat(registry_item);
69
71
  }
package/lib/handler.js CHANGED
@@ -50,7 +50,8 @@ async function watcherInboxHandler({path,options}) {
50
50
 
51
51
  const watcher = chokidar.watch(path, {
52
52
  ignored: /(^|[\/\\])\../, // ignore dotfiles
53
- persistent: true
53
+ persistent: true,
54
+ awaitWriteFinish: true
54
55
  });
55
56
 
56
57
  watcher.on('ready', () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ldn-inbox-server",
3
- "version": "1.6.4",
3
+ "version": "1.6.6",
4
4
  "description": "A demonstration Event Notifications Inbox server",
5
5
  "main": "lib/index.js",
6
6
  "author": "Patrick Hochstenbach <Patrick.Hochstenbach@UGent.be>",