Comparing version 0.1.15 to 0.1.16
@@ -82,5 +82,6 @@ "use strict"; | ||
channel: this.name, | ||
database: dbname | ||
database: dbname, | ||
selector: {} | ||
}); | ||
peer.sendMessage(message); | ||
this.databases[dbname].handleQuery(peer, message); | ||
} | ||
@@ -87,0 +88,0 @@ return [2 /*return*/]; |
@@ -504,3 +504,3 @@ "use strict"; | ||
if (peer && this.channels[channel]) { | ||
// Send "loading" queries to this peer | ||
// Send data to the new peer | ||
this.channels[channel].handleNewPeer(peer); | ||
@@ -507,0 +507,0 @@ } |
{ | ||
"name": "axiom-api", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"description": "API for interacting with the Axiom.org platform", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -46,7 +46,9 @@ import Database from "./Database"; | ||
for (let dbname in this.databases) { | ||
// Pretend the peer asked us for all our data | ||
let message = new Message("Query", { | ||
channel: this.name, | ||
database: dbname | ||
database: dbname, | ||
selector: {} | ||
}); | ||
peer.sendMessage(message); | ||
this.databases[dbname].handleQuery(peer, message); | ||
} | ||
@@ -53,0 +55,0 @@ } |
@@ -494,3 +494,3 @@ import Channel from "./Channel"; | ||
if (peer && this.channels[channel]) { | ||
// Send "loading" queries to this peer | ||
// Send data to the new peer | ||
this.channels[channel].handleNewPeer(peer); | ||
@@ -497,0 +497,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
362780
7087