libkernel
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -119,3 +119,14 @@ import { log, logErr } from "./log.js"; | ||
} | ||
// TODO: need to handle responseNonce. | ||
// Handle a responseNonce. | ||
// | ||
// TODO: Might be able to just resolve the kernelNonceReceived promise with | ||
// the nonce rather than having multiple fields. | ||
if (event.data.method === "responseNonce") { | ||
let knr = queries[event.data.nonce].kernelNonceReceived; | ||
if ("kernelNonce" in queries[event.data.nonce] && typeof knr === "function") { | ||
queries[event.data.nonce].kernelNonce = event.data.data.nonce; | ||
knr(); | ||
} | ||
return; | ||
} | ||
} | ||
@@ -122,0 +133,0 @@ // launchKernelFrame will launch the skt.us iframe that is used to connect to the |
{ | ||
"name": "libkernel", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "helper library to interact with skynet and the skynet kernel", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
23600
512