libkernelalpha
Advanced tools
Comparing version 0.0.102 to 0.0.103
export { addContextToErr, composeErr } from "./err.js"; | ||
export { testMessage } from "./messagetest.js"; | ||
export { callModule, init } from "./queries.js"; | ||
export { callModule, connectModule, init } from "./queries.js"; |
export { addContextToErr, composeErr } from "./err.js"; | ||
export { testMessage } from "./messagetest.js"; | ||
export { callModule, init } from "./queries.js"; | ||
export { callModule, connectModule, init } from "./queries.js"; |
@@ -5,2 +5,3 @@ import { dataFn, error, errTuple } from "libskynet"; | ||
declare function callModule(module: string, method: string, data?: any): Promise<errTuple>; | ||
export { callModule, init, newKernelQuery }; | ||
declare function connectModule(module: string, method: string, data: any, receiveUpdate: dataFn): [sendUpdate: dataFn, response: Promise<errTuple>]; | ||
export { callModule, connectModule, init, newKernelQuery }; |
@@ -305,2 +305,10 @@ // TODO: Change 'getKernelNonce' to 'sendKernelNonce' | ||
} | ||
export { callModule, init, newKernelQuery }; | ||
function connectModule(module, method, data, receiveUpdate) { | ||
let moduleCallData = { | ||
module, | ||
method, | ||
data, | ||
}; | ||
return newKernelQuery("moduleCall", moduleCallData, true, receiveUpdate); | ||
} | ||
export { callModule, connectModule, init, newKernelQuery }; |
{ | ||
"name": "libkernelalpha", | ||
"version": "0.0.102", | ||
"version": "0.0.103", | ||
"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
23484
611