@moosty/lisk-connection-provider
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -6,4 +6,4 @@ import { ConnectionController } from "./ConnectionController"; | ||
subscribe: (method: SubscribeMethods) => void; | ||
get: (method: GetMethods, params: object, v1?: boolean) => Promise<object>; | ||
getMore: (method: GetMethods, params: { | ||
get: (method: GetMethods, params?: object, v1?: boolean) => Promise<object>; | ||
getMore: (method: GetMethods, params?: { | ||
offset?: number; | ||
@@ -10,0 +10,0 @@ limit?: number; |
@@ -20,3 +20,3 @@ "use strict"; | ||
}; | ||
this.get = async (method, params, v1 = false) => { | ||
this.get = async (method, params = {}, v1 = false) => { | ||
if (this.isConnected()) { | ||
@@ -35,3 +35,3 @@ this.id++; | ||
}; | ||
this.getMore = async (method, params, v1 = false) => { | ||
this.getMore = async (method, params = {}, v1 = false) => { | ||
if (this.isConnected()) { | ||
@@ -38,0 +38,0 @@ const requests = []; |
{ | ||
"name": "@moosty/lisk-connection-provider", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Lisk connection provider component to connect react to Lisk endpoints", | ||
@@ -37,3 +37,3 @@ "author": "Moosty <info@moosty.com>", | ||
}, | ||
"gitHead": "79f9763876b95fbdcca78f234ac6ca8b037c0363" | ||
"gitHead": "4aac6c93f66061a4e1a1219e2f8e626f637195d6" | ||
} |
Sorry, the diff of this file is not supported yet
39074