libkernel
Advanced tools
Comparing version 0.0.5 to 0.0.6
// Establish a system for matching messages to the kernel with responses from | ||
// the kernel. | ||
var nextNonce = 0; | ||
var nextNonce = 1; | ||
var queries = new Object(); | ||
@@ -26,2 +26,3 @@ // handleMessage will handle a message from the kernel, using the reponse to | ||
if (event.data.resp !== null) { | ||
console.log("trying to do a resolve"); | ||
let resolve = queries[event.data.nonce].resolve; | ||
@@ -31,2 +32,3 @@ resolve(event.data.resp); | ||
else if (event.data.resp !== null) { | ||
console.log("trying to do a reject"); | ||
let reject = queries[event.data.nonce].reject; | ||
@@ -33,0 +35,0 @@ reject(event.data.err); |
{ | ||
"name": "libkernel", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "helper library to interact with the skynet kernel", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
3066
81