Socket
Socket
Sign inDemoInstall

ink-text-input

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ink-text-input - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

15

build/index.js

@@ -13,2 +13,17 @@ "use strict";

});
react_1.useEffect(() => {
setState(previousState => {
if (!focus || !showCursor) {
return previousState;
}
const newValue = originalValue || '';
if (previousState.cursorOffset > newValue.length - 1) {
return {
cursorOffset: newValue.length,
cursorWidth: 0
};
}
return previousState;
});
}, [originalValue, focus, showCursor]);
const cursorActualWidth = highlightPastedText ? cursorWidth : 0;

@@ -15,0 +30,0 @@ const value = mask ? mask.repeat(originalValue.length) : originalValue;

4

package.json
{
"name": "ink-text-input",
"version": "4.0.0",
"version": "4.0.1",
"description": "Text input component for Ink",

@@ -54,3 +54,3 @@ "license": "MIT",

"husky": "^4.2.5",
"ink": "^3.0.0-3",
"ink": "^3.0.5",
"ink-testing-library": "^2.0.0",

@@ -57,0 +57,0 @@ "prettier": "^2.0.5",

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