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

@coinmasters/helpers

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coinmasters/helpers - npm Package Compare versions

Comparing version 10.0.0 to 10.0.1

30

dist/index.es.js

@@ -150,3 +150,3 @@ var bt = Object.defineProperty;

case i.Base:
return "Native";
return t === i.Ethereum ? "Native" : "ERC20";
case i.Arbitrum:

@@ -161,6 +161,6 @@ return [i.Ethereum, i.Arbitrum].includes(t) ? "Native" : "ARBITRUM";

return { chain: t, symbol: n, ticker: a, synth: s };
}, Bt = new RegExp(
}, Et = new RegExp(
/(.)\1{6}|\.ORG|\.NET|\.FINANCE|\.COM|WWW|HTTP|\\\\|\/\/|[\s$%:[\]]/,
"gmi"
), Et = (r) => {
), Bt = (r) => {
const [t, e] = r.split(".");

@@ -173,3 +173,3 @@ if (!At.includes(t))

const e = `${t.chain}.${t.symbol}`;
return !Bt.test(e) && Et(e) && t.value !== "0";
return !Et.test(e) && Bt(e) && t.value !== "0";
}), Mt = ({

@@ -662,7 +662,7 @@ liquidityUnits: r,

);
}, B = 8, A = (r) => 10n ** BigInt(r), I = (r) => Math.log10(parseFloat(r.toString()));
}, E = 8, A = (r) => 10n ** BigInt(r), I = (r) => Math.log10(parseFloat(r.toString()));
function j({
value: r,
bigIntDecimal: t = B,
decimal: e = B
bigIntDecimal: t = E,
decimal: e = E
}) {

@@ -817,3 +817,3 @@ const s = r < 0n;

formatBigIntToSafeValue(t, e) {
const s = e || this.decimal || B, n = Math.max(
const s = e || this.decimal || E, n = Math.max(
s,

@@ -881,3 +881,3 @@ I(this.decimalMultiplier)

const e = t.map((s) => typeof s == "object" ? s.decimal || I(s.decimalMultiplier) : rt(q(s))).filter(Boolean);
return Math.max(...e, B);
return Math.max(...e, E);
}, x = new WeakSet(), W = function(t, e) {

@@ -887,3 +887,3 @@ const s = e ? A(e) : this.decimalMultiplier, n = I(s), [a = "", o = ""] = t.split(".");

};
let E = Z;
let B = Z;
const se = Intl.NumberFormat("fullwide", {

@@ -900,3 +900,3 @@ useGrouping: !1,

const t = ((e = r.split(".")[1]) == null ? void 0 : e.length) || 0;
return Math.max(t, B);
return Math.max(t, E);
}

@@ -917,7 +917,7 @@ function Y(r) {

};
class v extends E {
class v extends B {
constructor(e) {
const s = "identifier" in e ? e.identifier : `${e.chain}.${e.symbol}`;
super(
e.value instanceof E ? e.value : { decimal: e.decimal, value: e.value }
e.value instanceof B ? e.value : { decimal: e.decimal, value: e.value }
);

@@ -1112,3 +1112,3 @@ f(this, "address");

}
class y extends E {
class y extends B {
eq(t) {

@@ -1126,3 +1126,3 @@ return this.eqValue(t);

v as AssetValue,
E as BigIntArithmetics,
B as BigIntArithmetics,
te as RequestClient,

@@ -1129,0 +1129,0 @@ pt as SwapKitError,

@@ -11,5 +11,5 @@ {

"vitest": "0.34.6",
"@internal/config": "2.6.0",
"@coinmasters/types": "4.6.0",
"@coinmasters/tokens": "3.6.0"
"@internal/config": "2.6.1",
"@coinmasters/tokens": "3.6.1",
"@coinmasters/types": "4.6.1"
},

@@ -20,4 +20,4 @@ "eslintConfig": {

"peerDependencies": {
"@coinmasters/tokens": "3.6.0",
"@coinmasters/types": "4.6.0"
"@coinmasters/tokens": "3.6.1",
"@coinmasters/types": "4.6.1"
},

@@ -47,3 +47,3 @@ "exports": {

"types": "./dist/index.d.ts",
"version": "10.0.0",
"version": "10.0.1",
"scripts": {

@@ -50,0 +50,0 @@ "build": "vite build",

@@ -176,3 +176,3 @@ import type { EVMChain } from '@coinmasters/types';

case Chain.Base:
return 'Native';
return symbol === Chain.Ethereum ? 'Native' : 'ERC20';
case Chain.Arbitrum:

@@ -179,0 +179,0 @@ return [Chain.Ethereum, Chain.Arbitrum].includes(symbol as Chain) ? 'Native' : 'ARBITRUM';

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