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

@bloks/utils

Package Overview
Dependencies
Maintainers
3
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bloks/utils - npm Package Compare versions

Comparing version 3.5.93 to 3.5.94

4

package.json
{
"name": "@bloks/utils",
"version": "3.5.93",
"version": "3.5.94",
"description": "",

@@ -21,3 +21,3 @@ "publishConfig": {

},
"gitHead": "0a632dd6a20aef390b20a279cda5b7a894d8c5ba"
"gitHead": "e13817a8982fd9084a599735efc7a7d243b40178"
}

@@ -18,3 +18,3 @@ import { BigNumber } from 'bignumber.js'

SAR: { symbol: 'SR', precision: 2 },
ETH: { symbol: 'Ξ', precision: 4 },

@@ -119,4 +119,4 @@ BTC: { symbol: '₿', precision: 8 },

*/
export function numberToAsset (number, symbol = constants.CORE_SYMBOL, precision = constants.CORE_PRECISION) {
const amount = numbro(number).format({ thousandSeparated: false, mantissa: precision })
export function numberToAsset (number, symbol = constants.CORE_SYMBOL, precision = constants.CORE_PRECISION, trimMantissa = false) {
const amount = numbro(number).format({ thousandSeparated: false, mantissa: precision, trimMantissa })
return `${amount} ${symbol}`

@@ -123,0 +123,0 @@ }

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