@blueprintjs/core
Advanced tools
Comparing version 5.3.1 to 5.3.2
@@ -32,3 +32,4 @@ "use strict"; | ||
if (locale === void 0) { locale = "en-US"; } | ||
return sanitizeNumericInput(num.toLocaleString(locale), locale); | ||
// HACKHACK: roundingPriority is not supported yet in TypeScript https://github.com/microsoft/TypeScript/issues/43336 | ||
return sanitizeNumericInput(num.toLocaleString(locale, { roundingPriority: "morePrecision" }), locale); | ||
} | ||
@@ -35,0 +36,0 @@ exports.toLocaleString = toLocaleString; |
@@ -29,3 +29,4 @@ /* | ||
if (locale === void 0) { locale = "en-US"; } | ||
return sanitizeNumericInput(num.toLocaleString(locale), locale); | ||
// HACKHACK: roundingPriority is not supported yet in TypeScript https://github.com/microsoft/TypeScript/issues/43336 | ||
return sanitizeNumericInput(num.toLocaleString(locale, { roundingPriority: "morePrecision" }), locale); | ||
} | ||
@@ -32,0 +33,0 @@ export function clampValue(value, min, max) { |
@@ -28,3 +28,4 @@ /* | ||
export function toLocaleString(num, locale = "en-US") { | ||
return sanitizeNumericInput(num.toLocaleString(locale), locale); | ||
// HACKHACK: roundingPriority is not supported yet in TypeScript https://github.com/microsoft/TypeScript/issues/43336 | ||
return sanitizeNumericInput(num.toLocaleString(locale, { roundingPriority: "morePrecision" }), locale); | ||
} | ||
@@ -31,0 +32,0 @@ export function clampValue(value, min, max) { |
{ | ||
"name": "@blueprintjs/core", | ||
"version": "5.3.1", | ||
"version": "5.3.2", | ||
"description": "Core styles & components", | ||
@@ -5,0 +5,0 @@ "main": "lib/cjs/index.js", |
@@ -33,3 +33,4 @@ /* | ||
export function toLocaleString(num: number, locale: string = "en-US") { | ||
return sanitizeNumericInput(num.toLocaleString(locale), locale); | ||
// HACKHACK: roundingPriority is not supported yet in TypeScript https://github.com/microsoft/TypeScript/issues/43336 | ||
return sanitizeNumericInput(num.toLocaleString(locale, { roundingPriority: "morePrecision" } as any), locale); | ||
} | ||
@@ -36,0 +37,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5757575
83382