react-currency-input-field
Advanced tools
Comparing version 3.6.7 to 3.6.8
@@ -422,3 +422,6 @@ import React, { forwardRef, useMemo, useState, useRef, useEffect } from 'react'; | ||
} | ||
var numberValue = parseFloat(stringValue.replace(decimalSeparator, '.')); | ||
var stringValueWithoutSeparator = decimalSeparator | ||
? stringValue.replace(decimalSeparator, '.') | ||
: stringValue; | ||
var numberValue = parseFloat(stringValueWithoutSeparator); | ||
var formattedValue = formatValue(__assign({ value: stringValue }, formatValueOptions)); | ||
@@ -425,0 +428,0 @@ if (cursorPosition !== undefined && cursorPosition !== null) { |
@@ -430,3 +430,6 @@ (function (global, factory) { | ||
} | ||
var numberValue = parseFloat(stringValue.replace(decimalSeparator, '.')); | ||
var stringValueWithoutSeparator = decimalSeparator | ||
? stringValue.replace(decimalSeparator, '.') | ||
: stringValue; | ||
var numberValue = parseFloat(stringValueWithoutSeparator); | ||
var formattedValue = formatValue(__assign({ value: stringValue }, formatValueOptions)); | ||
@@ -433,0 +436,0 @@ if (cursorPosition !== undefined && cursorPosition !== null) { |
{ | ||
"name": "react-currency-input-field", | ||
"version": "3.6.7", | ||
"version": "3.6.8", | ||
"description": "React <input/> component for formatting currency and numbers.", | ||
@@ -16,4 +16,4 @@ "files": [ | ||
"start": "parcel src/examples/index.html", | ||
"test": "jest --coverage --roots ./src", | ||
"test-ci": "cross-env NODE_ICU_DATA=node_modules/full-icu jest --coverage", | ||
"test": "LANG=en_GB jest --coverage --roots ./src", | ||
"test-ci": "LANG=en_GB.UTF-8 cross-env NODE_ICU_DATA=node_modules/full-icu jest --coverage", | ||
"typecheck": "tsc && tsc --project tsconfig.test.json", | ||
@@ -20,0 +20,0 @@ "lint": "eslint src --max-warnings=0", |
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
274673
5225