Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uniswap/conedison

Package Overview
Dependencies
Maintainers
18
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uniswap/conedison - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

1

dist/format.d.ts

@@ -12,2 +12,3 @@ import { Currency, CurrencyAmount, Percent, Price } from '@uniswap/sdk-core';

FiatGasPrice = "fiat-gas-price",
PortfolioBalance = "portfolio-balance",
NFTTokenFloorPrice = "nft-token-floor-price",

@@ -14,0 +15,0 @@ NFTCollectionStats = "nft-collection-stats",

45

dist/format.js

@@ -104,16 +104,2 @@ var __read = (this && this.__read) || function (o, n) {

});
var SCIENTIFIC = new Intl.NumberFormat('en-US', {
notation: 'scientific',
maximumSignificantDigits: 3,
});
var SCIENTIFIC_SIX_DIGITS = new Intl.NumberFormat('en-US', {
notation: 'scientific',
maximumSignificantDigits: 6,
});
var SCIENTIFIC_USD = new Intl.NumberFormat('en-US', {
notation: 'scientific',
maximumSignificantDigits: 3,
currency: 'USD',
style: 'currency',
});
var SIX_SIG_FIGS_TWO_DECIMALS = new Intl.NumberFormat('en-US', {

@@ -155,3 +141,3 @@ notation: 'standard',

{ upperBound: 1e15, formatter: SHORTHAND_TWO_DECIMALS },
{ upperBound: Infinity, formatter: SCIENTIFIC },
{ upperBound: Infinity, formatter: '>999T' },
];

@@ -172,3 +158,4 @@ var tokenTxFormatter = [

var fiatTokenDetailsFormatter = [
{ upperBound: 0.000001, formatter: SCIENTIFIC_USD },
{ exact: 0, formatter: '$0.00' },
{ upperBound: 0.00000001, formatter: '<$0.00000001' },
{ upperBound: 0.1, formatter: THREE_SIG_FIGS_USD },

@@ -180,6 +167,9 @@ { upperBound: 1.05, formatter: THREE_DECIMALS_USD },

var fiatTokenPricesFormatter = [
{ upperBound: 0.000001, formatter: SCIENTIFIC_USD },
{ upperBound: 1, formatter: THREE_SIG_FIGS_USD },
{ upperBound: 1e6, formatter: TWO_DECIMALS_USD },
{ upperBound: Infinity, formatter: SHORTHAND_USD_TWO_DECIMALS },
{ exact: 0, formatter: '$0.00' },
{ upperBound: 0.00000001, formatter: '<$0.00000001' },
{ upperBound: 0.1, formatter: THREE_SIG_FIGS_USD },
{ upperBound: 1.05, formatter: THREE_DECIMALS_USD },
{ upperBound: 1000000, formatter: TWO_DECIMALS_USD },
{ upperBound: 1000000000000000, formatter: SHORTHAND_USD_TWO_DECIMALS },
{ upperBound: Infinity, formatter: '>$999T' }, // Use M/B/T abbreviations
];

@@ -199,2 +189,6 @@ var fiatTokenStatsFormatter = [

var fiatTokenQuantityFormatter = __spreadArray([{ exact: 0, formatter: '$0.00' }], __read(fiatGasPriceFormatter), false);
var portfolioBalanceFormatter = [
{ exact: 0, formatter: '$0.00' },
{ upperBound: Infinity, formatter: TWO_DECIMALS_USD },
];
var ntfTokenFloorPriceFormatterTrailingZeros = [

@@ -206,3 +200,3 @@ { exact: 0, formatter: '0' },

{ upperBound: 1e15, formatter: SHORTHAND_TWO_DECIMALS },
{ upperBound: Infinity, formatter: SCIENTIFIC },
{ upperBound: Infinity, formatter: '>999T' },
];

@@ -215,3 +209,3 @@ var ntfTokenFloorPriceFormatter = [

{ upperBound: 1e15, formatter: SHORTHAND_TWO_DECIMALS_NO_TRAILING_ZEROS },
{ upperBound: Infinity, formatter: SCIENTIFIC },
{ upperBound: Infinity, formatter: '>999T' },
];

@@ -224,3 +218,3 @@ var ntfCollectionStatsFormatter = [

{ upperBound: 1e15, formatter: SHORTHAND_FIVE_DECIMALS_NO_TRAILING_ZEROS },
{ upperBound: Infinity, formatter: SCIENTIFIC_SIX_DIGITS },
{ upperBound: Infinity, formatter: '>999T' },
];

@@ -246,2 +240,4 @@ export var NumberType;

NumberType["FiatGasPrice"] = "fiat-gas-price";
// portfolio balance
NumberType["PortfolioBalance"] = "portfolio-balance";
// nft floor price denominated in a token (e.g, ETH)

@@ -263,2 +259,3 @@ NumberType["NFTTokenFloorPrice"] = "nft-token-floor-price";

_a[NumberType.FiatGasPrice] = fiatGasPriceFormatter,
_a[NumberType.PortfolioBalance] = portfolioBalanceFormatter,
_a[NumberType.NFTTokenFloorPrice] = ntfTokenFloorPriceFormatter,

@@ -288,3 +285,3 @@ _a[NumberType.NFTTokenFloorPriceTrailingZeros] = ntfTokenFloorPriceFormatterTrailingZeros,

return formatter;
return formatter.format(input).replace('E', 'e'); // the E in scientific notation should be lowercase
return formatter.format(input);
}

@@ -291,0 +288,0 @@ export function formatCurrencyAmount(amount, type, placeholder) {

{
"name": "@uniswap/conedison",
"version": "1.1.0",
"version": "1.1.1",
"description": "Utilities for Uniswap front-end development",

@@ -5,0 +5,0 @@ "repository": "https://github.com/Uniswap/conedison",

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