Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Dec 11, 2023
1 parent 1682444 commit 2bf1378
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
24 changes: 12 additions & 12 deletions package.json
Expand Up @@ -62,26 +62,26 @@
"slice-ansi": "^7.1.0",
"stack-utils": "^2.0.6",
"string-width": "^7.0.0",
"type-fest": "^4.6.0",
"type-fest": "^4.8.3",
"widest-line": "^5.0.0",
"wrap-ansi": "^9.0.0",
"ws": "^8.12.0",
"ws": "^8.15.0",
"yoga-wasm-web": "~0.3.3"
},
"devDependencies": {
"@faker-js/faker": "^8.2.0",
"@faker-js/faker": "^8.3.1",
"@sindresorhus/tsconfig": "^5.0.0",
"@types/benchmark": "^2.1.2",
"@types/lodash": "^4.14.191",
"@types/lodash": "^4.14.202",
"@types/ms": "^0.7.31",
"@types/node": "*",
"@types/react": "^18.0.0",
"@types/node": "^20.10.4",
"@types/react": "^18.2.43",
"@types/react-reconciler": "^0.28.2",
"@types/scheduler": "^0.16.2",
"@types/scheduler": "^0.16.8",
"@types/signal-exit": "^3.0.0",
"@types/sinon": "^10.0.20",
"@types/stack-utils": "^2.0.2",
"@types/ws": "^8.5.4",
"@types/ws": "^8.5.10",
"@vdemedes/prettier-config": "^1.0.1",
"ava": "^5.1.1",
"boxen": "^7.0.1",
Expand All @@ -91,14 +91,14 @@
"eslint-plugin-react-hooks": "4.6.0",
"ms": "^2.1.3",
"node-pty": "^1.0.0",
"p-queue": "^7.3.4",
"p-queue": "^8.0.0",
"prettier": "^2.0.4",
"react": "^18.0.0",
"react-devtools-core": "^4.19.1",
"react-devtools-core": "^5.0.0",
"sinon": "^17.0.0",
"strip-ansi": "^7.1.0",
"ts-node": "10.9.1",
"typescript": "^5.2.2",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"xo": "^0.56.0"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/ink.tsx
Expand Up @@ -56,7 +56,7 @@ export default class Ink {
: throttle(this.onRender, 32, {
leading: true,
trailing: true
});
});

this.rootNode.onImmediateRender = this.onRender;
this.log = logUpdate.create(options.stdout);
Expand All @@ -65,7 +65,7 @@ export default class Ink {
: throttle(this.log, undefined, {
leading: true,
trailing: true
});
});

// Ignore last render after unmounting a tree to prevent empty output before exit
this.isUnmounted = false;
Expand Down
4 changes: 2 additions & 2 deletions src/render-border.ts
Expand Up @@ -53,7 +53,7 @@ const renderBorder = (
(showRightBorder ? box.topRight : ''),
topBorderColor,
'foreground'
)
)
: undefined;

if (showTopBorder && dimTopBorderColor) {
Expand Down Expand Up @@ -93,7 +93,7 @@ const renderBorder = (
(showRightBorder ? box.bottomRight : ''),
bottomBorderColor,
'foreground'
)
)
: undefined;

if (showBottomBorder && dimBottomBorderColor) {
Expand Down
8 changes: 4 additions & 4 deletions src/render-node-to-output.ts
Expand Up @@ -106,8 +106,8 @@ const renderNodeToOutput = (

const x2 = clipHorizontally
? x +
yogaNode.getComputedWidth() -
yogaNode.getComputedBorder(Yoga.EDGE_RIGHT)
yogaNode.getComputedWidth() -
yogaNode.getComputedBorder(Yoga.EDGE_RIGHT)
: undefined;

const y1 = clipVertically
Expand All @@ -116,8 +116,8 @@ const renderNodeToOutput = (

const y2 = clipVertically
? y +
yogaNode.getComputedHeight() -
yogaNode.getComputedBorder(Yoga.EDGE_BOTTOM)
yogaNode.getComputedHeight() -
yogaNode.getComputedBorder(Yoga.EDGE_BOTTOM)
: undefined;

output.clip({x1, x2, y1, y2});
Expand Down

0 comments on commit 2bf1378

Please sign in to comment.