@coinmasters/helpers
Advanced tools
Comparing version 11.0.23 to 11.0.24
@@ -665,4 +665,8 @@ var be = Object.defineProperty; | ||
console.log("toMultiplier input decimal:", r); | ||
const e = 10n ** BigInt(r); | ||
return console.log("toMultiplier result:", e), e; | ||
try { | ||
const e = 10n ** BigInt(r); | ||
return console.log("toMultiplier result:", e), e; | ||
} catch (e) { | ||
return console.error("Error in toMultiplier:", e), 10n ** 0n; | ||
} | ||
}, I = (r) => Math.log10(parseFloat(r.toString())); | ||
@@ -669,0 +673,0 @@ function H({ |
@@ -11,5 +11,5 @@ { | ||
"vitest": "0.34.6", | ||
"@coinmasters/tokens": "3.7.23", | ||
"@internal/config": "2.7.23", | ||
"@coinmasters/types": "4.7.23" | ||
"@internal/config": "2.7.24", | ||
"@coinmasters/tokens": "3.7.24", | ||
"@coinmasters/types": "4.7.24" | ||
}, | ||
@@ -20,4 +20,4 @@ "eslintConfig": { | ||
"peerDependencies": { | ||
"@coinmasters/types": "4.7.23", | ||
"@coinmasters/tokens": "3.7.23" | ||
"@coinmasters/tokens": "3.7.24", | ||
"@coinmasters/types": "4.7.24" | ||
}, | ||
@@ -47,3 +47,3 @@ "exports": { | ||
"types": "./dist/index.d.ts", | ||
"version": "11.0.23", | ||
"version": "11.0.24", | ||
"scripts": { | ||
@@ -50,0 +50,0 @@ "build": "vite build", |
@@ -19,5 +19,10 @@ import { BaseDecimal } from '@coinmasters/types'; | ||
console.log('toMultiplier input decimal:', decimal); | ||
const result = 10n ** BigInt(decimal); | ||
console.log('toMultiplier result:', result); | ||
return result; | ||
try { | ||
const result = 10n ** BigInt(decimal); | ||
console.log('toMultiplier result:', result); | ||
return result; | ||
} catch (error) { | ||
console.error('Error in toMultiplier:', error); | ||
return 10n ** 0n; | ||
} | ||
}; | ||
@@ -24,0 +29,0 @@ // const toMultiplier = (decimal: number) => 10n ** BigInt(decimal); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
240442
4062