Socket
Socket
Sign inDemoInstall

@xchainjs/xchain-util

Package Overview
Dependencies
Maintainers
6
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.2.3 to 0.2.4

6

CHANGELOG.md

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

# v.x.x.x
# v.0.2.4 (2021-03-01)
### Update
- Update `chainToString` to support Bitcoin cash.
# v.0.2.3 (2021-02-09)

@@ -4,0 +8,0 @@

2

lib/chain.d.ts

@@ -15,2 +15,2 @@ import { Chain } from './types';

*/
export declare const chainToString: (chainId: Chain) => "Thorchain" | "Bitcoin" | "Litecoin" | "Ethereum" | "Binance Chain" | "Cosmos" | "Polkadot" | "unknown chain";
export declare const chainToString: (chainId: Chain) => "Thorchain" | "Bitcoin" | "Bitcoin Cash" | "Litecoin" | "Ethereum" | "Binance Chain" | "Cosmos" | "Polkadot" | "unknown chain";

@@ -182,2 +182,4 @@ import BigNumber from 'bignumber.js';

return 'Bitcoin';
case 'BCH':
return 'Bitcoin Cash';
case 'LTC':

@@ -184,0 +186,0 @@ return 'Litecoin';

@@ -190,2 +190,4 @@ 'use strict';

return 'Bitcoin';
case 'BCH':
return 'Bitcoin Cash';
case 'LTC':

@@ -192,0 +194,0 @@ return 'Litecoin';

{
"name": "@xchainjs/xchain-util",
"version": "0.2.3",
"version": "0.2.4",
"description": "Helper utilities for XChain clients",

@@ -41,14 +41,3 @@ "keywords": [

"access": "public"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,ts}": [
"yarn lint",
"git add"
]
}
}

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