directory-sync
Advanced tools
Comparing version 2.0.6 to 2.0.7
{ | ||
"name": "directory-sync", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "Easily synchronize directories between two machines over the internet.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -281,4 +281,7 @@ import fetch from 'node-fetch'; | ||
// Handle the incoming mutation event | ||
const { type, uri, md5, is_directory } = message; | ||
return reference._handle_remote_mutation(type, uri, md5, is_directory); | ||
const { host, type, uri, md5, is_directory } = message; | ||
// Ensure the incoming event is for this host as we may be sharing the websocket connection | ||
if (this.#host === host) reference._handle_remote_mutation(type, uri, md5, is_directory); | ||
break; | ||
} | ||
@@ -285,0 +288,0 @@ }); |
@@ -355,2 +355,3 @@ import Path from 'path'; | ||
command: 'MUTATION', | ||
host, | ||
uri, | ||
@@ -357,0 +358,0 @@ md5, |
72503
1606