@dra2020/baseclient 1.0.139 → 1.0.141

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.
@@ -24,9 +24,8 @@ function formatNumber(n: number, format: string): string
24
24
  let parts = format.split('.');
25
25
  let fmt = parts[0];
26
26
  let precision = Number(parts[1] || '0');
27
- n = Util.precisionRound(n, precision);
28
27
  // Only have implementation for 'locale'
29
- return n.toLocaleString();
28
+ return n.toLocaleString(undefined, { maximumFractionDigits: precision, minimumFractionDigits: precision } );
30
29
  }
31
30
 
32
31
  export interface DetailOptions
@@ -114,7 +113,7 @@ export interface DetailResult
114
113
  v: string, // value
115
114
  }
116
115
 
117
- const reInvalidChars = /[\.\[\]\\]/;
116
+ const reInvalidChars = /[\[\]\\]/;
118
117
  const reExpr = /^=(.*)$/
119
118
 
120
119
  export class FormatDetail
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/baseclient",
3
- "version": "1.0.139",
3
+ "version": "1.0.141",
4
4
  "description": "Utility functions for Javascript projects.",
5
5
  "main": "dist/baseclient.js",
6
6
  "types": "./dist/all/all.d.ts",