feat: readme fix + serialize fn defaults

This commit is contained in:
tiagosiebler
2020-10-08 22:16:53 +01:00
parent 2ec70f22c2
commit 24d8ce58f1
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
# bybit-api # 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] [![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) [![CodeFactor](https://www.codefactor.io/repository/github/tiagosiebler/bybit-api/badge)](https://www.codefactor.io/repository/github/tiagosiebler/bybit-api)

View File

@@ -6,7 +6,7 @@ module.exports = {
.update(message) .update(message)
.digest('hex'); .digest('hex');
}, },
serializeParams(params, strict_validation) { serializeParams(params = {}, strict_validation = false) {
return Object.keys(params) return Object.keys(params)
.sort() .sort()
.map(key => { .map(key => {