Huge News!Announcing our $40M Series B led by Abstract Ventures.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 11.0.22 to 11.0.23

6

dist/index.es.js

@@ -663,3 +663,7 @@ var be = Object.defineProperty;

);
}, O = 8, v = (r) => 10n ** BigInt(r), I = (r) => Math.log10(parseFloat(r.toString()));
}, O = 8, v = (r) => {
console.log("toMultiplier input decimal:", r);
const e = 10n ** BigInt(r);
return console.log("toMultiplier result:", e), e;
}, I = (r) => Math.log10(parseFloat(r.toString()));
function H({

@@ -666,0 +670,0 @@ value: r,

12

package.json

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

"vitest": "0.34.6",
"@internal/config": "2.7.22",
"@coinmasters/tokens": "3.7.22",
"@coinmasters/types": "4.7.22"
"@coinmasters/tokens": "3.7.23",
"@internal/config": "2.7.23",
"@coinmasters/types": "4.7.23"
},

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

"peerDependencies": {
"@coinmasters/tokens": "3.7.22",
"@coinmasters/types": "4.7.22"
"@coinmasters/types": "4.7.23",
"@coinmasters/tokens": "3.7.23"
},

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

"types": "./dist/index.d.ts",
"version": "11.0.22",
"version": "11.0.23",
"scripts": {

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

@@ -17,3 +17,10 @@ import { BaseDecimal } from '@coinmasters/types';

const DEFAULT_DECIMAL = 8;
const toMultiplier = (decimal: number) => 10n ** BigInt(decimal);
const toMultiplier = (decimal: number): bigint => {
console.log('toMultiplier input decimal:', decimal);
const result = 10n ** BigInt(decimal);
console.log('toMultiplier result:', result);
return result;
};
// const toMultiplier = (decimal: number) => 10n ** BigInt(decimal);
const decimalFromMultiplier = (multiplier: bigint) => Math.log10(parseFloat(multiplier.toString()));

@@ -20,0 +27,0 @@

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