-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Maël Nison <[email protected]> (cherry picked from commit a50d10c)
- Loading branch information
Showing
7 changed files
with
124 additions
and
17 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
diff --git a/build/ink.js b/build/ink.js | ||
index f292bccdd049835ded848da83a6daac1e4f70416..54c4ebf36dc0c8f7f2580a5e69869848c83dc46f 100644 | ||
--- a/build/ink.js | ||
+++ b/build/ink.js | ||
@@ -23,7 +23,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const react_1 = __importDefault(require("react")); | ||
-const lodash_1 = require("lodash"); | ||
+const lodash_1_throttle = require("lodash/throttle"); | ||
const log_update_1 = __importDefault(require("./log-update")); | ||
const ansi_escapes_1 = __importDefault(require("ansi-escapes")); | ||
const is_ci_1 = __importDefault(require("is-ci")); | ||
@@ -90,7 +90,7 @@ class Ink { | ||
this.rootNode = dom.createNode('ink-root'); | ||
this.rootNode.onRender = options.debug | ||
? this.onRender | ||
- : lodash_1.throttle(this.onRender, 32, { | ||
+ : lodash_1_throttle(this.onRender, 32, { | ||
leading: true, | ||
trailing: true | ||
}); | ||
@@ -98,7 +98,7 @@ class Ink { | ||
this.log = log_update_1.default.create(options.stdout); | ||
this.throttledLog = options.debug | ||
? this.log | ||
- : lodash_1.throttle(this.log, undefined, { | ||
+ : lodash_1_throttle(this.log, undefined, { | ||
leading: true, | ||
trailing: true | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
releases: | ||
"@yarnpkg/builder": patch | ||
"@yarnpkg/cli": patch | ||
|
||
declined: | ||
- "@yarnpkg/plugin-compat" | ||
- "@yarnpkg/plugin-constraints" | ||
- "@yarnpkg/plugin-dlx" | ||
- "@yarnpkg/plugin-essentials" | ||
- "@yarnpkg/plugin-exec" | ||
- "@yarnpkg/plugin-init" | ||
- "@yarnpkg/plugin-interactive-tools" | ||
- "@yarnpkg/plugin-nm" | ||
- "@yarnpkg/plugin-npm-cli" | ||
- "@yarnpkg/plugin-pack" | ||
- "@yarnpkg/plugin-patch" | ||
- "@yarnpkg/plugin-pnp" | ||
- "@yarnpkg/plugin-pnpm" | ||
- "@yarnpkg/plugin-stage" | ||
- "@yarnpkg/plugin-typescript" | ||
- "@yarnpkg/plugin-version" | ||
- "@yarnpkg/plugin-workspace-tools" | ||
- "@yarnpkg/core" | ||
- "@yarnpkg/doctor" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ | |
"typescript": "5.2.0-beta" | ||
}, | ||
"resolutions": { | ||
"ink": "patch:ink@npm%3A3.0.8#./.yarn/patches/ink-npm-3.0.8-3a8005f59f.patch", | ||
"yoga-layout-prebuilt": "patch:[email protected]#./.yarn/patches/yoga-layout-prebuilt.patch" | ||
}, | ||
"dependenciesMeta": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters