cafe-utility 33.3.4 → 33.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2453,6 +2453,7 @@ class FixedPointNumber {
2453
2453
  ;(this.value = BigInt(e)), (this.scale = t)
2454
2454
  }
2455
2455
  static fromDecimalString(e, t) {
2456
+ ;/e\-\d+$/i.test(e) && (e = parseFloat(e).toFixed(t))
2456
2457
  let [r, o] = e.split('.')
2457
2458
  return (o = (o || '').padEnd(t, '0').slice(0, t)), new FixedPointNumber(BigInt(r + o), t)
2458
2459
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cafe-utility",
3
- "version": "33.3.4",
3
+ "version": "33.3.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "exports": {