@bignum/template
Advanced tools
Comparing version 0.2.9 to 0.3.0
@@ -9,3 +9,3 @@ // src/index.mts | ||
if (typeof value === "number") { | ||
if (Math.trunc(value) === value) | ||
if (Number.isSafeInteger(value)) | ||
return BigInt(value); | ||
@@ -12,0 +12,0 @@ } else if (typeof value === "string") { |
{ | ||
"name": "@bignum/template", | ||
"version": "0.2.9", | ||
"version": "0.3.0", | ||
"description": "Write formulas with template literals.", | ||
@@ -64,5 +64,5 @@ "type": "module", | ||
"@bignum/shared": "^0.1.2", | ||
"@bignum/template-compiler": "^0.2.0" | ||
"@bignum/template-compiler": "^0.3.0" | ||
}, | ||
"devDependencies": {} | ||
} |
Sorry, the diff of this file is not supported yet
+ Added@bignum/template-compiler@0.3.0(transitive)
- Removed@bignum/template-compiler@0.2.0(transitive)