From 24d8ce58f1e63ac6f11a3b74822e5b6361671f2a Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Thu, 8 Oct 2020 22:16:53 +0100 Subject: [PATCH] feat: readme fix + serialize fn defaults --- README.md | 2 +- lib/util/requestUtils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 74550c8..6cceccb 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # bybit-api -[![npm version](https://img.shields.io/npm/v/bybit-api/latest)][1] [![npm size](https://img.shields.io/bundlephobia/min/bybit-api/latest)][1] [![npm downloads](https://img.shields.io/npm/dt/bybit-api)][1] +[![npm version](https://img.shields.io/npm/v/bybit-api)][1] [![npm size](https://img.shields.io/bundlephobia/min/bybit-api/latest)][1] [![npm downloads](https://img.shields.io/npm/dt/bybit-api)][1] [![last commit](https://img.shields.io/github/last-commit/tiagosiebler/bybit-api)][1] [![CodeFactor](https://www.codefactor.io/repository/github/tiagosiebler/bybit-api/badge)](https://www.codefactor.io/repository/github/tiagosiebler/bybit-api) diff --git a/lib/util/requestUtils.js b/lib/util/requestUtils.js index 5dafab5..1e7f348 100644 --- a/lib/util/requestUtils.js +++ b/lib/util/requestUtils.js @@ -6,7 +6,7 @@ module.exports = { .update(message) .digest('hex'); }, - serializeParams(params, strict_validation) { + serializeParams(params = {}, strict_validation = false) { return Object.keys(params) .sort() .map(key => {