New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@exodus/currency

Package Overview
Dependencies
Maintainers
0
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exodus/currency - npm Package Compare versions

Comparing version 1.0.5 to 1.1.0

47

CHANGELOG.md

@@ -1,26 +0,34 @@

1.0.4 / 2019-06-22
------------------
## 1.1.0 / 2020-12-22
- Add `numberUnit.isPositive` getter method
- Add `numberUnit.toBaseBufferLE` and `numberUnit.toBaseBufferBE` methods
## 1.0.4 / 2019-06-22
- Add `number-unit.div`
- Use `number-unit.div` in `conversion-by-rate` to avoid using `parseFloat`
1.0.3 / 2019-06-21
------------------
1.0.3 / 2019-06-21
---
- Remove `unitType` from `unit`'s `toJSON` output to prevent cyclic errors.
1.0.2 / 2019-06-19
------------------
1.0.2 / 2019-06-19
---
- Parameter type checking in conversion-by-rate
- `number-unit` explicitly check for the `Infinity` cases and throw an error
1.0.1 / 2019-06-12
------------------
1.0.1 / 2019-06-12
---
- Switch unit.toJSON's output to include `power` instead of `multiplier`. This change might have needed a minor bump but I'm including it in a patch because `1.0.0` is unused at this point.
1.0.0 / 2019-06-11
------------------
1.0.0 / 2019-06-11
---
- Switch to `BN.js` from `big-rational` for the underlying representation of values.

@@ -30,21 +38,22 @@ - Add support for coercing params to number-unit for the add/sub methods, but with a deprecation warning.

0.1.2 / 2018-11-14
------------------
0.1.2 / 2018-11-14
---
- explicitly support numbers represented as hex strings
0.1.1 / 2018-11-11
------------------
0.1.1 / 2018-11-11
---
- fix `conversion` due to upgrade to `big-rational`
0.1.0 / 2018-11-11
------------------
0.1.0 / 2018-11-11
---
Using `big-rational` instead of `bignumber.js` for the underlying representation of values.
## 0.0.1 / 2018-10-25
0.0.1 / 2018-10-25
------------------
Initial release that mostly matched what was in Exodus.

@@ -374,2 +374,10 @@ "use strict";

toBaseBufferLE() {
return this.toBase()._number.toBuffer('le');
}
toBaseBufferBE() {
return this.toBase()._number.toBuffer('be');
}
toNumberString() {

@@ -376,0 +384,0 @@ let number = this._number.toString(10);

{
"name": "@exodus/currency",
"version": "1.0.5",
"version": "1.1.0",
"description": "Currency support.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -1,3 +0,2 @@

Exodus Currency
===================
# Exodus Currency

@@ -12,11 +11,8 @@ [![npm][npm-image]][npm-url]

Install
-------
## Install
yarn add @exodus/currency
## Usage
Usage
-----
```js

@@ -23,0 +19,0 @@ import assets from '@exodus/assets-base'

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc