@dra2020/baseclient 1.0.135 → 1.0.136

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.
package/lib/util/util.ts CHANGED
@@ -720,5 +720,5 @@ export function toNumber(a: any): number
720
720
  export function toSafeNumber(a: any): number
721
721
  {
722
722
  let n = toNumber(a);
723
- if (isNaN(n) || typeof n !== 'number') return 0;
723
+ return (isNaN(n) || typeof n !== 'number') ? 0 : n;
724
724
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/baseclient",
3
- "version": "1.0.135",
3
+ "version": "1.0.136",
4
4
  "description": "Utility functions for Javascript projects.",
5
5
  "main": "dist/baseclient.js",
6
6
  "types": "./dist/all/all.d.ts",