Socket
Socket
Sign inDemoInstall

@blueprintjs/core

Package Overview
Dependencies
Maintainers
1
Versions
296
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blueprintjs/core - npm Package Compare versions

Comparing version 5.3.1 to 5.3.2

3

lib/cjs/components/forms/numericInputUtils.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc