Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-currency-input-field

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-currency-input-field - npm Package Compare versions

Comparing version 3.6.7 to 3.6.8

5

dist/index.esm.js

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

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc