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

ink

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ink - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

build/apply-styles.js

4

build/components/App.js

@@ -188,3 +188,3 @@ import { EventEmitter } from 'node:events';

this.setState(previousState => {
const firstFocusableId = previousState.focusables[0]?.id;
const firstFocusableId = previousState.focusables.find(focusable => focusable.isActive)?.id;
const nextFocusableId = this.findNextFocusable(previousState);

@@ -198,3 +198,3 @@ return {

this.setState(previousState => {
const lastFocusableId = previousState.focusables.at(-1)?.id;
const lastFocusableId = previousState.focusables.findLast(focusable => focusable.isActive)?.id;
const previousFocusableId = this.findPreviousFocusable(previousState);

@@ -201,0 +201,0 @@ return {

@@ -6,11 +6,5 @@ // Ignoring missing types error to avoid adding another dependency for this hack to work

// These things must exist before importing `react-devtools-core`
if (!customGlobal.WebSocket) {
customGlobal.WebSocket = ws;
}
if (!customGlobal.window) {
customGlobal.window = global;
}
if (!customGlobal.self) {
customGlobal.self = global;
}
customGlobal.WebSocket ||= ws;
customGlobal.window ||= global;
customGlobal.self ||= global;
// Filter out Ink's internal components from devtools for a cleaner view.

@@ -17,0 +11,0 @@ // Also, ince `react-devtools-shared` package isn't published on npm, we can't

@@ -207,8 +207,6 @@ import process from 'node:process';

async waitUntilExit() {
if (!this.exitPromise) {
this.exitPromise = new Promise((resolve, reject) => {
this.resolveExitPromise = resolve;
this.rejectExitPromise = reject;
});
}
this.exitPromise ||= new Promise((resolve, reject) => {
this.resolveExitPromise = resolve;
this.rejectExitPromise = reject;
});
return this.exitPromise;

@@ -215,0 +213,0 @@ }

@@ -41,3 +41,3 @@ import process from 'node:process';

for (const key of Object.keys(before)) {
const isDeleted = after ? !Object.hasOwnProperty.call(after, key) : true;
const isDeleted = after ? !Object.hasOwn(after, key) : true;
if (isDeleted) {

@@ -44,0 +44,0 @@ changed[key] = undefined;

{
"name": "ink",
"version": "5.0.0",
"version": "5.0.1",
"description": "React for CLI",

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

"@alcalzone/ansi-tokenize": "^0.1.3",
"ansi-escapes": "^6.0.0",
"ansi-escapes": "^7.0.0",
"ansi-styles": "^6.2.1",

@@ -81,5 +81,5 @@ "auto-bind": "^5.0.1",

"@types/react-reconciler": "^0.28.2",
"@types/scheduler": "^0.16.8",
"@types/scheduler": "^0.23.0",
"@types/signal-exit": "^3.0.0",
"@types/sinon": "^10.0.20",
"@types/sinon": "^17.0.3",
"@types/stack-utils": "^2.0.2",

@@ -93,3 +93,3 @@ "@types/ws": "^8.5.10",

"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-react-hooks": "^4.6.2",
"ms": "^2.1.3",

@@ -101,7 +101,7 @@ "node-pty": "^1.0.0",

"react-devtools-core": "^5.0.0",
"sinon": "^17.0.0",
"sinon": "^18.0.0",
"strip-ansi": "^7.1.0",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"xo": "^0.56.0"
"xo": "^0.58.0"
},

@@ -108,0 +108,0 @@ "peerDependencies": {

@@ -100,2 +100,3 @@ [![](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)

- [emma](https://github.com/maticzav/emma-cli) - Find and install npm packages.
- [npm-check-extras](https://github.com/akgondber/npm-check-extras) - Check for outdated and unused dependencies, and run update/delete action over selected ones.
- [swiff](https://github.com/simple-integrated-marketing/swiff) - Multi-environment command line tools for time-saving web developers.

@@ -120,2 +121,3 @@ - [share](https://github.com/marionebl/share-cli) - Quickly share files.

- [Walle](https://github.com/Pobepto/walle) - Full-featured crypto wallet for EVM networks.
- [Sudoku](https://github.com/mrozio13pl/sudoku-in-terminal) - Sudoku game.

@@ -1849,3 +1851,3 @@ ## Contents

If there's no active component right now, focus will be given to the first focusable component.
If active component is the last in the list of focusable components, focus will be switched to the first component.
If active component is the last in the list of focusable components, focus will be switched to the first active component.

@@ -1852,0 +1854,0 @@ **Note:** Ink calls this method when user presses <kbd>Tab</kbd>.

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