@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/dist/baseclient.js +1 -2
- package/dist/baseclient.js.map +1 -1
- package/lib/util/util.ts +1 -1
- package/package.json +1 -1
package/dist/baseclient.js
CHANGED
|
@@ -12312,8 +12312,7 @@ function toNumber(a) {
|
|
|
12312
12312
|
exports.toNumber = toNumber;
|
|
12313
12313
|
function toSafeNumber(a) {
|
|
12314
12314
|
let n = toNumber(a);
|
|
12315
|
-
|
|
12316
|
-
return 0;
|
|
12315
|
+
return (isNaN(n) || typeof n !== 'number') ? 0 : n;
|
|
12317
12316
|
}
|
|
12318
12317
|
exports.toSafeNumber = toSafeNumber;
|
|
12319
12318
|
|