From 13d34accdd74321be565f24fbbade90850b393a4 Mon Sep 17 00:00:00 2001 From: Marcin Olszowy Date: Sun, 2 Oct 2022 03:06:55 +0300 Subject: [PATCH] * removes some unnecessary legacy stuff --- lib/index.js | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/lib/index.js b/lib/index.js index 0bce1df..07dc592 100644 --- a/lib/index.js +++ b/lib/index.js @@ -24,10 +24,9 @@ function Client(transferServer) { * * @param endpoint (string), e.g. /deposit * @param params (object), a list of GET parameters to be included in the request - * @param callback (function), processes the response */ - this.get = async function(endpoint, params, callback) { - return await sendRequest('get', endpoint, params, callback); + this.get = async function(endpoint, params) { + return await sendRequest('get', endpoint, params); }; /** @@ -35,10 +34,9 @@ function Client(transferServer) { * * @param endpoint (string) * @param params (object), a list of POST parameters to be included in the request - * @param callback (function), processes the response */ - this.post = async function(endpoint, params, callback) { - return await sendRequest('post', endpoint, params, callback); + this.post = async function(endpoint, params) { + return await sendRequest('post', endpoint, params); }; /** @@ -46,10 +44,9 @@ function Client(transferServer) { * * @param endpoint (string) * @param params (object), a list of PUT parameters to be included in the request - * @param callback (function), processes the response */ - this.put = async function(endpoint, params, callback) { - return await sendRequest('put', endpoint, params, callback); + this.put = async function(endpoint, params) { + return await sendRequest('put', endpoint, params); }; /** @@ -57,10 +54,9 @@ function Client(transferServer) { * * @param endpoint (string) * @param params (object), a list of DELETE parameters to be included in the request - * @param callback (function), processes the response */ - this.delete = async function(endpoint, params, callback) { - return await sendRequest('delete', endpoint, params, callback); + this.delete = async function(endpoint, params) { + return await sendRequest('delete', endpoint, params); }; // private validator function