antietcd 1.0.5 → 1.0.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.
Files changed (2) hide show
  1. package/antietcd.js +3 -3
  2. package/package.json +1 -1
package/antietcd.js CHANGED
@@ -428,7 +428,7 @@ class AntiEtcd extends EventEmitter
428
428
  {
429
429
  throw new RequestError(400, 'Watch not found');
430
430
  }
431
- this.etctree.api_cancel_watch({ watch_id: mapped_id });
431
+ this.etctree.api_cancel_watch(mapped_id);
432
432
  delete this.api_watches[watch_id];
433
433
  }
434
434
 
@@ -514,7 +514,7 @@ class AntiEtcd extends EventEmitter
514
514
  const mapped_id = client.watches[msg.cancel_request.watch_id];
515
515
  if (mapped_id)
516
516
  {
517
- this.etctree.api_cancel_watch({ watch_id: mapped_id });
517
+ this.etctree.api_cancel_watch(mapped_id);
518
518
  delete client.watches[msg.cancel_request.watch_id];
519
519
  socket.send(JSON.stringify({ result: { header: { revision: this.etctree.mod_revision }, watch_id: msg.cancel_request.watch_id, canceled: true } }));
520
520
  }
@@ -542,7 +542,7 @@ class AntiEtcd extends EventEmitter
542
542
  for (const watch_id in this.clients[client_id].watches)
543
543
  {
544
544
  const mapped_id = this.clients[client_id].watches[watch_id];
545
- this.etctree.api_cancel_watch({ watch_id: mapped_id });
545
+ this.etctree.api_cancel_watch(mapped_id);
546
546
  }
547
547
  }
548
548
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antietcd",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Simplistic etcd replacement based on TinyRaft",
5
5
  "main": "antietcd.js",
6
6
  "scripts": {