@ereo/core 0.1.22 → 0.1.23

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/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -483,8 +483,8 @@ var env = {
483
483
  type: "number",
484
484
  required: false,
485
485
  transform: (value) => {
486
- const num = parseFloat(value);
487
- if (isNaN(num)) {
486
+ const num = Number(value);
487
+ if (Number.isNaN(num)) {
488
488
  throw new Error(`Invalid number: ${value}`);
489
489
  }
490
490
  return num;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ereo/core",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "license": "MIT",
5
5
  "author": "Ereo Team",
6
6
  "homepage": "https://ereo.dev",