connoropolous-hc-web-client
Advanced tools
Comparing version 0.5.5 to 0.5.6
@@ -1,3 +0,3 @@ | ||
declare type Call = (...segments: Array<string>) => (params: any) => Promise<any>; | ||
declare type CallZome = (instanceId: string, zome: string, func: string) => (params: any) => Promise<any>; | ||
declare type Call = (...segments: Array<string>) => (timeoutOverride?: number) => (params: any) => Promise<any>; | ||
declare type CallZome = (instanceId: string, zome: string, func: string) => (timeoutOverride?: number) => (params: any) => Promise<any>; | ||
declare type OnSignal = (callback: (params: any) => void) => void; | ||
@@ -4,0 +4,0 @@ declare type Close = () => Promise<any>; |
@@ -83,10 +83,10 @@ "use strict"; | ||
} | ||
return function (params) { | ||
return function (timeoutOverride) { return function (params) { | ||
var method = methodSegments.length === 1 | ||
? methodSegments[0] | ||
: methodSegments.join('/'); | ||
return callWhenConnected(ws, method, params, timeout); | ||
}; | ||
return callWhenConnected(ws, method, params, timeoutOverride || timeout); | ||
}; }; | ||
}; | ||
var callZome = function (instanceId, zome, func) { return function (args) { | ||
var callZome = function (instanceId, zome, func) { return function (timeoutOverride) { return function (args) { | ||
var callObject = { | ||
@@ -98,4 +98,4 @@ instance_id: instanceId, | ||
}; | ||
return callWhenConnected(ws, 'call', callObject, timeout); | ||
}; }; | ||
return callWhenConnected(ws, 'call', callObject, timeoutOverride || timeout); | ||
}; }; }; | ||
var onSignal = function (callback) { | ||
@@ -102,0 +102,0 @@ // go down to the underlying websocket connection (.socket) |
{ | ||
"name": "connoropolous-hc-web-client", | ||
"version": "0.5.5", | ||
"version": "0.5.6", | ||
"description": "Holochain Conductor connection helper for web based UIs and any Javascript client", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
531606