diff --git a/CHANGELOG.md b/CHANGELOG.md index 179c78c..8bd1c1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.10.15] - 2020-12-23 +- Adding a new property `amount_precise` to the `CelsiusTransactionRecord` type. It provides the exact transaction amount, without any rounding applied. +- Fixing typos in jsdoc. Kudos to [@saginadir](https://github.com/saginadir) who noticed the typo and contributed code that fixes it! + ## [0.10.14] - 2020-11-25 - Fixing error handling to cover unhandled cases such as Wallet API being offline and signature verification failing. - Adding a new class `CelsiusSDKError` that encapsulates errors raised within the Celsius SDK. This class extends the Error class and contains the following additional attributes: diff --git a/index.d.ts b/index.d.ts index 2bdf27a..17ec6c6 100644 --- a/index.d.ts +++ b/index.d.ts @@ -111,10 +111,12 @@ declare module 'celsius-sdk' { } interface CelsiusTransactionRecord extends CelsiusCoinBalanceResponse { - /** The amount in this coin */ + /** The amount in this coin rounded down to coin's decimals */ amount: string; /** The amount in US dollars for this coin */ amount_usd: string, + /** The amount in this coin without any rounding applied **/ + amount_precise: string, /** The coin of the transaction */ coin: string; /** In which state the transaction is in */ diff --git a/lib/http-client.js b/lib/http-client.js index b6137b6..e7ae4c2 100644 --- a/lib/http-client.js +++ b/lib/http-client.js @@ -34,7 +34,7 @@ const HttpClient = function (config) { } /** - * Sends HTTP requst to the api. + * Sends HTTP request to the api. * * @private * @function _dispatchAxiosRequest diff --git a/package.json b/package.json index df94cd6..9e90ac9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "celsius-sdk", - "version": "0.10.14", + "version": "0.10.15", "author": { "name": "Celsius Network", "email": "", diff --git a/yarn.lock b/yarn.lock index ba969e2..cabb941 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1005,9 +1005,9 @@ inherits@2, inherits@^2.0.3, inherits@~2.0.3: resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" ini@^1.3.4: - version "1.3.5" - resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" - integrity sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw== + version "1.3.7" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.7.tgz#a09363e1911972ea16d7a8851005d84cf09a9a84" + integrity sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ== inquirer@^6.1.0: version "6.2.1"