ink
Advanced tools
Comparing version 3.0.0-5 to 3.0.0-6
@@ -76,2 +76,8 @@ "use strict"; | ||
const parsedLine = stackUtils.parseLine(line); | ||
// If the line from the stack cannot be parsed, we print out the unparsed line. | ||
if (!parsedLine) { | ||
return (react_1.default.createElement(Box_1.default, { key: line }, | ||
react_1.default.createElement(Text_1.default, { dimColor: true }, "- "), | ||
react_1.default.createElement(Text_1.default, { dimColor: true, bold: true }, line))); | ||
} | ||
return (react_1.default.createElement(Box_1.default, { key: line }, | ||
@@ -78,0 +84,0 @@ react_1.default.createElement(Text_1.default, { dimColor: true }, "- "), |
@@ -46,6 +46,10 @@ "use strict"; | ||
this.onRender = () => { | ||
var _a; | ||
if (this.isUnmounted) { | ||
return; | ||
} | ||
const { output, outputHeight, staticOutput } = renderer_1.default(this.rootNode, this.options.stdout.columns); | ||
const { output, outputHeight, staticOutput } = renderer_1.default(this.rootNode, (_a = | ||
// The 'columns' property can be undefined when not using a TTY. | ||
// In that case we fall back to 80. | ||
this.options.stdout.columns) !== null && _a !== void 0 ? _a : 80); | ||
// If <Static> output isn't empty, it means new children have been added to it | ||
@@ -52,0 +56,0 @@ const hasStaticOutput = staticOutput && staticOutput !== '\n'; |
{ | ||
"name": "ink", | ||
"version": "3.0.0-5", | ||
"version": "3.0.0-6", | ||
"description": "React for CLI", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -12,3 +12,4 @@ <h1 align="center"> | ||
![Build Status](https://github.com/vadimdemedes/ink/workflows/tests/badge.svg) | ||
[![Build Status](https://github.com/vadimdemedes/ink/workflows/test/badge.svg)](https://github.com/vadimdemedes/ink/actions) | ||
[![npm](https://img.shields.io/npm/dm/ink?logo=npm)](https://npmjs.com/package/ink) | ||
@@ -23,3 +24,3 @@ Ink provides the same component-based UI building experience that React offers in the browser, but for command-line apps. | ||
**Note:** This is documentation for Ink 3, which is unreleased yet. If you're looking for docs on Ink 2, go to https://github.com/vadimdemedes/ink/tree/v2.7.1. | ||
**Note:** This is documentation for Ink 3, which is unreleased yet. If you're looking for docs on Ink 2, check out [this release](https://github.com/vadimdemedes/ink/tree/v2.7.1). There's also a [migration guide](migrate.md) from Ink 2 available. | ||
@@ -67,6 +68,13 @@ ## Install | ||
- [tap](https://node-tap.org) - A Test-Anything-Protocol library for JavaScript. | ||
- [Yarn 2](https://yarnpkg.com) - Fast, reliable, and secure dependency management for JavaScript. | ||
- [Typewriter](https://github.com/segmentio/typewriter) - Generates strongly-typed [Segment](https://segment.com) analytics clients from arbitrary JSON Schema. | ||
- [Prisma](https://www.prisma.io) - The unified data layer for modern applications. | ||
- [Wallace](https://www.projectwallace.com) - Pretty CSS analytics on the CLI. | ||
- [Blitz](https://blitzjs.com) - The Fullstack React Framework. | ||
- [New York Times](https://github.com/nytimes/kyt) - NYT uses Ink `kyt` - a toolkit that encapsulates and manages the configuration for web apps. | ||
- [tink](https://github.com/npm/tink) - Next-generation runtime and package manager. | ||
- [loki](https://github.com/oblador/loki) - Visual Regression Testing for Storybook. | ||
- [Bit](https://github.com/teambit/bit) - Build, distribute and collaborate on components. | ||
- [Remirror](https://github.com/remirror/remirror) - Your friendly, world-class editor toolkit. | ||
- [Prime CSS](https://github.com/birkir/prime) - Open Source GraphQL CMS. | ||
- [Splash](https://github.com/Shopify/polaris-react/tree/master/scripts/splash) - Observe the splash zone of a change across the Shopify's [Polaris](https://polaris.shopify.com) component library. | ||
@@ -73,0 +81,0 @@ - [emoj](https://github.com/sindresorhus/emoj) - Find relevant emoji on the command-line. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
281147
3846
1737