Socket
Socket
Sign inDemoInstall

ink

Package Overview
Dependencies
34
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-15 to 2.0.0-16

3

build/build-layout.js

@@ -39,3 +39,4 @@ "use strict";

if (node.nodeName === 'ROOT') {
yogaNode.setWidth(terminalWidth);
// `terminalWidth` can be `undefined` if env isn't a TTY
yogaNode.setWidth(terminalWidth || 100);

@@ -42,0 +43,0 @@ if (node.childNodes.length > 0) {

@@ -44,2 +44,3 @@ "use strict";

stdin.removeListener('data', this.handleInput);
stdin.pause();
}

@@ -52,5 +53,10 @@ });

// eslint-disable-line unicorn/no-hex-escape
process.exit(0); // eslint-disable-line unicorn/no-process-exit
this.handleExit();
}
});
_defineProperty(this, "handleExit", () => {
this.handleSetRawMode(false);
this.props.onExit();
});
}

@@ -61,3 +67,3 @@

value: {
exit: this.props.onExit
exit: this.handleExit
}

@@ -82,2 +88,4 @@ }, _react.default.createElement(_StdinContext.default.Provider, {

_cliCursor.default.show(this.props.stdout);
this.handleSetRawMode(false);
}

@@ -84,0 +92,0 @@

@@ -107,2 +107,7 @@ "use strict";

let resolveExitPromise;
const exitPromise = new Promise(resolve => {
resolveExitPromise = resolve;
});
const unmount = () => {

@@ -113,11 +118,2 @@ onRender();

reconciler.updateContainer(null, options.stdout._inkContainer);
};
let resolveExitPromise;
const exitPromise = new Promise(resolve => {
resolveExitPromise = resolve;
});
const onExit = () => {
unmount();
resolveExitPromise();

@@ -130,3 +126,3 @@ };

exitOnCtrlC: options.exitOnCtrlC,
onExit: onExit
onExit: unmount
}, node);

@@ -133,0 +129,0 @@

{
"name": "ink",
"version": "2.0.0-15",
"version": "2.0.0-16",
"description": "React for CLI",

@@ -68,2 +68,3 @@ "license": "MIT",

"ms": "^2.1.1",
"node-pty": "^0.8.1",
"p-queue": "^3.0.0",

@@ -70,0 +71,0 @@ "react": "^16.6.1",

@@ -117,5 +117,3 @@ <h1 align="center">

To get started quickly, scaffold out a project using [Ink CLI](https://github.com/vadimdemedes/generator-ink-cli) Yeoman generator. To create a new component that you intend to publish, you can use [Ink Component](https://github.com/vadimdemedes/generator-ink-component) generator.
## Examples

@@ -122,0 +120,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc