Socket
Socket
Sign inDemoInstall

@xchainjs/xchain-util

Package Overview
Dependencies
Maintainers
8
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xchainjs/xchain-util - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

6

CHANGELOG.md

@@ -0,1 +1,7 @@

# v.0.3.1 (2021-07-14)
### Fix
- Fix `formatAssetAmountCurrency` for `XRUNE`
# v.0.3.0 (2021-07-07)

@@ -2,0 +8,0 @@

5

lib/index.esm.js

@@ -535,7 +535,6 @@ import BigNumber from 'bignumber.js';

// RUNE
var regex = new RegExp(AssetRune67C.ticker + "|" + AssetRuneB1A.ticker + "|" + AssetRuneNative.ticker, 'i');
if (ticker.match(regex))
if (ticker === RUNE_TICKER)
return AssetCurrencySymbol.RUNE + " " + amountFormatted;
// BTC
regex = new RegExp(AssetBTC.ticker, 'i');
var regex = new RegExp(AssetBTC.ticker, 'i');
if (ticker.match(new RegExp(AssetBTC.ticker, 'i'))) {

@@ -542,0 +541,0 @@ var base = assetToBase(amount);

@@ -537,7 +537,6 @@ 'use strict';

// RUNE
var regex = new RegExp(AssetRune67C.ticker + "|" + AssetRuneB1A.ticker + "|" + AssetRuneNative.ticker, 'i');
if (ticker.match(regex))
if (ticker === RUNE_TICKER)
return exports.AssetCurrencySymbol.RUNE + " " + amountFormatted;
// BTC
regex = new RegExp(AssetBTC.ticker, 'i');
var regex = new RegExp(AssetBTC.ticker, 'i');
if (ticker.match(new RegExp(AssetBTC.ticker, 'i'))) {

@@ -544,0 +543,0 @@ var base = assetToBase(amount);

2

package.json
{
"name": "@xchainjs/xchain-util",
"version": "0.3.0",
"version": "0.3.1",
"description": "Helper utilities for XChain clients",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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