libkernel
Advanced tools
Comparing version 0.0.35 to 0.0.36
@@ -81,2 +81,11 @@ // log provides a wrapper for console.log that prefixes 'libkernel'. | ||
} | ||
// Check that the method is a string. | ||
if (typeof event.data.method !== "string") { | ||
return; | ||
} | ||
// Check that the method is an inbound method. | ||
if (!(event.data.method.endsWith("Query")) && !(event.data.method.endsWith("QueryUpdate"))) { | ||
return; | ||
} | ||
// Check that we have a nonce for this message. | ||
if (!(event.data.nonce in queries)) { | ||
@@ -83,0 +92,0 @@ logErr("message received with no matching nonce\n", event.data, "\n", queries); |
{ | ||
"name": "libkernel", | ||
"version": "0.0.35", | ||
"version": "0.0.36", | ||
"description": "helper library to interact with the skynet kernel", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
11717
300