Socket
Socket
Sign inDemoInstall

rc-input-number

Package Overview
Dependencies
Maintainers
8
Versions
217
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-input-number - npm Package Compare versions

Comparing version 9.1.0 to 9.2.0

6

es/hooks/useCursor.js

@@ -45,6 +45,6 @@ import { useRef } from 'react';

var startPos = value.length;
if (value.endsWith(afterTxt)) {
if (value.startsWith(beforeTxt)) {
startPos = beforeTxt.length;
} else if (value.endsWith(afterTxt)) {
startPos = value.length - selectionRef.current.afterTxt.length;
} else if (value.startsWith(beforeTxt)) {
startPos = beforeTxt.length;
} else {

@@ -51,0 +51,0 @@ var beforeLastChar = beforeTxt[start - 1];

@@ -52,6 +52,6 @@ "use strict";

var startPos = value.length;
if (value.endsWith(afterTxt)) {
if (value.startsWith(beforeTxt)) {
startPos = beforeTxt.length;
} else if (value.endsWith(afterTxt)) {
startPos = value.length - selectionRef.current.afterTxt.length;
} else if (value.startsWith(beforeTxt)) {
startPos = beforeTxt.length;
} else {

@@ -58,0 +58,0 @@ var beforeLastChar = beforeTxt[start - 1];

{
"name": "rc-input-number",
"version": "9.1.0",
"version": "9.2.0",
"description": "React input-number component",

@@ -52,3 +52,3 @@ "keywords": [

"classnames": "^2.2.5",
"rc-input": "~1.5.0",
"rc-input": "~1.6.0",
"rc-util": "^5.40.1"

@@ -60,3 +60,3 @@ },

"@testing-library/jest-dom": "^6.1.5",
"@testing-library/react": "^14.0.0",
"@testing-library/react": "^16.0.0",
"@types/classnames": "^2.2.9",

@@ -72,4 +72,4 @@ "@types/jest": "^29.2.4",

"eslint": "^8.54.0",
"eslint-plugin-jest": "^27.6.0",
"eslint-plugin-unicorn": "^50.0.1",
"eslint-plugin-jest": "^28.2.0",
"eslint-plugin-unicorn": "^54.0.0",
"expect.js": "~0.3.1",

@@ -82,3 +82,3 @@ "father": "^4.1.1",

"lint-staged": "^15.1.0",
"np": "^9.2.0",
"np": "^10.0.5",
"rc-test": "^7.0.14",

@@ -85,0 +85,0 @@ "rc-tooltip": "^6.0.1",

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