New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-polymorph

Package Overview
Dependencies
Maintainers
2
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-polymorph - npm Package Compare versions

Comparing version 0.9.0-rc.3 to 0.9.0-rc.4

6

__tests__/NumericInput.behavior.test.js

@@ -12,3 +12,3 @@ import React from 'react';

const input = wrapper.find('input');
input.simulate('change', { nativeEvent: { target: { value: '19.00' }}});
input.simulate('change', { nativeEvent: { target: { value: '19.00' } } });
expect(onChangeMock.mock.calls[0][0]).toBe(19.00);

@@ -21,3 +21,3 @@ });

const input = wrapper.find('input');
input.simulate('change', { nativeEvent: { target: { value: '9,999,999.00' }}});
input.simulate('change', { nativeEvent: { target: { value: '9,999,999.00' } } });
expect(onChangeMock.mock.calls[0][0]).toBe(9999999.00);

@@ -32,3 +32,3 @@ });

const input = wrapper.find('input');
input.simulate('change', { nativeEvent: { target: { value: 'A.00' }}});
input.simulate('change', { nativeEvent: { target: { value: 'A.00' } } });
expect(onChangeMock.mock.calls.length).toBe(0);

@@ -35,0 +35,0 @@ });

@@ -397,4 +397,4 @@ 'use strict';

var VALID_INPUT_REGEX = /^([0-9,\+\-\.]+)?$/;
var NUMERIC_INPUT_REGEX = /^([\+|\-])?([0-9,]+)?(\.([0-9]+)?)?$/;
var VALID_INPUT_REGEX = /^([0-9,+\-.]+)?$/;
var NUMERIC_INPUT_REGEX = /^([+|-])?([0-9,]+)?(\.([0-9]+)?)?$/;

@@ -401,0 +401,0 @@ var isValidNumericInput = function isValidNumericInput(value) {

{
"name": "react-polymorph",
"description": "React components with highly customizable logic, markup and styles.",
"version": "0.9.0-rc.3",
"version": "0.9.0-rc.4",
"scripts": {

@@ -6,0 +6,0 @@ "build": "cross-env npm run clean && npm run sass && npm run js",

@@ -194,2 +194,3 @@ # React Polymorph

- Only numeric digits `[0-9]` and dots `.` can be entered.
- When invalid characters are pasted as input, nothing happens
- When a second dot is entered it replaces the existing one and updates the fraction part accordingly

@@ -196,0 +197,0 @@ - Commas cannot be deleted but the cursor should jump over them when DEL or BACKSPACE keys are used

@@ -382,4 +382,4 @@ // @flow

const VALID_INPUT_REGEX = /^([0-9,\+\-\.]+)?$/;
const NUMERIC_INPUT_REGEX = /^([\+|\-])?([0-9,]+)?(\.([0-9]+)?)?$/;
const VALID_INPUT_REGEX = /^([0-9,+\-.]+)?$/;
const NUMERIC_INPUT_REGEX = /^([+|-])?([0-9,]+)?(\.([0-9]+)?)?$/;

@@ -386,0 +386,0 @@ const isValidNumericInput = (value: string): boolean => NUMERIC_INPUT_REGEX.test(value);

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