diff --git a/.yarn/cache/@ljharb-through-npm-2.3.13-e9ca0df17f-6150c6c43a.zip b/.yarn/cache/@ljharb-through-npm-2.3.13-e9ca0df17f-6150c6c43a.zip deleted file mode 100644 index 7687e16c6..000000000 Binary files a/.yarn/cache/@ljharb-through-npm-2.3.13-e9ca0df17f-6150c6c43a.zip and /dev/null differ diff --git a/.yarn/cache/call-bind-npm-1.0.7-762763ef96-cd6fe658e0.zip b/.yarn/cache/call-bind-npm-1.0.7-762763ef96-cd6fe658e0.zip deleted file mode 100644 index c2e0f3712..000000000 Binary files a/.yarn/cache/call-bind-npm-1.0.7-762763ef96-cd6fe658e0.zip and /dev/null differ diff --git a/.yarn/cache/define-data-property-npm-1.1.4-4cbd8efc51-abdcb2505d.zip b/.yarn/cache/define-data-property-npm-1.1.4-4cbd8efc51-abdcb2505d.zip deleted file mode 100644 index e5d181683..000000000 Binary files a/.yarn/cache/define-data-property-npm-1.1.4-4cbd8efc51-abdcb2505d.zip and /dev/null differ diff --git a/.yarn/cache/es-define-property-npm-1.0.0-e23aa9b242-f66ece0a88.zip b/.yarn/cache/es-define-property-npm-1.0.0-e23aa9b242-f66ece0a88.zip deleted file mode 100644 index 67c274145..000000000 Binary files a/.yarn/cache/es-define-property-npm-1.0.0-e23aa9b242-f66ece0a88.zip and /dev/null differ diff --git a/.yarn/cache/es-errors-npm-1.3.0-fda0c9b8a8-96e65d6401.zip b/.yarn/cache/es-errors-npm-1.3.0-fda0c9b8a8-96e65d6401.zip deleted file mode 100644 index ebc44e309..000000000 Binary files a/.yarn/cache/es-errors-npm-1.3.0-fda0c9b8a8-96e65d6401.zip and /dev/null differ diff --git a/.yarn/cache/get-intrinsic-npm-1.2.4-1dad3427b2-85bbf4b234.zip b/.yarn/cache/get-intrinsic-npm-1.2.4-1dad3427b2-85bbf4b234.zip deleted file mode 100644 index 49f1ac46e..000000000 Binary files a/.yarn/cache/get-intrinsic-npm-1.2.4-1dad3427b2-85bbf4b234.zip and /dev/null differ diff --git a/.yarn/cache/gopd-npm-1.0.1-10c1d0b534-5fbc7ad57b.zip b/.yarn/cache/gopd-npm-1.0.1-10c1d0b534-5fbc7ad57b.zip deleted file mode 100644 index 32da56e32..000000000 Binary files a/.yarn/cache/gopd-npm-1.0.1-10c1d0b534-5fbc7ad57b.zip and /dev/null differ diff --git a/.yarn/cache/has-property-descriptors-npm-1.0.2-d7077d09f1-2d8c9ab8ce.zip b/.yarn/cache/has-property-descriptors-npm-1.0.2-d7077d09f1-2d8c9ab8ce.zip deleted file mode 100644 index da5e4ceaa..000000000 Binary files a/.yarn/cache/has-property-descriptors-npm-1.0.2-d7077d09f1-2d8c9ab8ce.zip and /dev/null differ diff --git a/.yarn/cache/has-proto-npm-1.0.1-631ea9d820-eab2ab0ed1.zip b/.yarn/cache/has-proto-npm-1.0.1-631ea9d820-eab2ab0ed1.zip deleted file mode 100644 index 77b871df6..000000000 Binary files a/.yarn/cache/has-proto-npm-1.0.1-631ea9d820-eab2ab0ed1.zip and /dev/null differ diff --git a/.yarn/cache/has-symbols-npm-1.0.3-1986bff2c4-464f97a820.zip b/.yarn/cache/has-symbols-npm-1.0.3-1986bff2c4-464f97a820.zip deleted file mode 100644 index f06fe4129..000000000 Binary files a/.yarn/cache/has-symbols-npm-1.0.3-1986bff2c4-464f97a820.zip and /dev/null differ diff --git a/.yarn/cache/set-function-length-npm-1.2.2-243073748b-505d62b8e0.zip b/.yarn/cache/set-function-length-npm-1.2.2-243073748b-505d62b8e0.zip deleted file mode 100644 index 8bc1e65de..000000000 Binary files a/.yarn/cache/set-function-length-npm-1.2.2-243073748b-505d62b8e0.zip and /dev/null differ diff --git a/packages/inquirer/lib/ui/bottom-bar.js b/packages/inquirer/lib/ui/bottom-bar.js index a6286c2d0..af4eba991 100644 --- a/packages/inquirer/lib/ui/bottom-bar.js +++ b/packages/inquirer/lib/ui/bottom-bar.js @@ -2,7 +2,7 @@ * Sticky bottom bar user interface */ -import through from '@ljharb/through'; +import { Writable } from 'node:stream'; import * as rlUtils from '../utils/readline.js'; import Base from './baseUI.js'; @@ -10,7 +10,13 @@ export default class BottomBar extends Base { constructor(opt = {}) { super(opt); - this.log = through(this.writeLog.bind(this)); + this.log = new Writable({ + write: (chunk, encoding, cb) => { + this.writeLog(chunk); + cb(); + }, + }); + this.bottomBar = opt.bottomBar || ''; this.render(); } diff --git a/packages/inquirer/package.json b/packages/inquirer/package.json index bf1e18a63..312c0f664 100644 --- a/packages/inquirer/package.json +++ b/packages/inquirer/package.json @@ -60,7 +60,6 @@ "license": "MIT", "dependencies": { "@inquirer/figures": "^1.0.3", - "@ljharb/through": "^2.3.13", "ansi-escapes": "^4.3.2", "chalk": "^5.3.0", "cli-width": "^4.1.0", diff --git a/yarn.lock b/yarn.lock index 625d5dd5a..0b5c20d2e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -742,15 +742,6 @@ __metadata: languageName: node linkType: hard -"@ljharb/through@npm:^2.3.13": - version: 2.3.13 - resolution: "@ljharb/through@npm:2.3.13" - dependencies: - call-bind: "npm:^1.0.7" - checksum: 10/6150c6c43a726d52c26863ed6dc4ab54fa7cf625c81463a5ddec86278c99e23bf94dfc99ebf09a9ac3191332d4a27344e092f7e07f252b8cd600e2b38e645870 - languageName: node - linkType: hard - "@nodelib/fs.scandir@npm:2.1.5": version: 2.1.5 resolution: "@nodelib/fs.scandir@npm:2.1.5" @@ -2175,19 +2166,6 @@ __metadata: languageName: node linkType: hard -"call-bind@npm:^1.0.7": - version: 1.0.7 - resolution: "call-bind@npm:1.0.7" - dependencies: - es-define-property: "npm:^1.0.0" - es-errors: "npm:^1.3.0" - function-bind: "npm:^1.1.2" - get-intrinsic: "npm:^1.2.4" - set-function-length: "npm:^1.2.1" - checksum: 10/cd6fe658e007af80985da5185bff7b55e12ef4c2b6f41829a26ed1eef254b1f1c12e3dfd5b2b068c6ba8b86aba62390842d81752e67dcbaec4f6f76e7113b6b7 - languageName: node - linkType: hard - "callsites@npm:^3.0.0": version: 3.1.0 resolution: "callsites@npm:3.1.0" @@ -2792,17 +2770,6 @@ __metadata: languageName: node linkType: hard -"define-data-property@npm:^1.1.4": - version: 1.1.4 - resolution: "define-data-property@npm:1.1.4" - dependencies: - es-define-property: "npm:^1.0.0" - es-errors: "npm:^1.3.0" - gopd: "npm:^1.0.1" - checksum: 10/abdcb2505d80a53524ba871273e5da75e77e52af9e15b3aa65d8aad82b8a3a424dad7aee2cc0b71470ac7acf501e08defac362e8b6a73cdb4309f028061df4ae - languageName: node - linkType: hard - "define-lazy-prop@npm:^2.0.0": version: 2.0.0 resolution: "define-lazy-prop@npm:2.0.0" @@ -3020,22 +2987,6 @@ __metadata: languageName: node linkType: hard -"es-define-property@npm:^1.0.0": - version: 1.0.0 - resolution: "es-define-property@npm:1.0.0" - dependencies: - get-intrinsic: "npm:^1.2.4" - checksum: 10/f66ece0a887b6dca71848fa71f70461357c0e4e7249696f81bad0a1f347eed7b31262af4a29f5d726dc026426f085483b6b90301855e647aa8e21936f07293c6 - languageName: node - linkType: hard - -"es-errors@npm:^1.3.0": - version: 1.3.0 - resolution: "es-errors@npm:1.3.0" - checksum: 10/96e65d640156f91b707517e8cdc454dd7d47c32833aa3e85d79f24f9eb7ea85f39b63e36216ef0114996581969b59fe609a94e30316b08f5f4df1d44134cf8d5 - languageName: node - linkType: hard - "esbuild@npm:^0.20.1": version: 0.20.2 resolution: "esbuild@npm:0.20.2" @@ -3715,19 +3666,6 @@ __metadata: languageName: node linkType: hard -"get-intrinsic@npm:^1.1.3, get-intrinsic@npm:^1.2.4": - version: 1.2.4 - resolution: "get-intrinsic@npm:1.2.4" - dependencies: - es-errors: "npm:^1.3.0" - function-bind: "npm:^1.1.2" - has-proto: "npm:^1.0.1" - has-symbols: "npm:^1.0.3" - hasown: "npm:^2.0.0" - checksum: 10/85bbf4b234c3940edf8a41f4ecbd4e25ce78e5e6ad4e24ca2f77037d983b9ef943fd72f00f3ee97a49ec622a506b67db49c36246150377efcda1c9eb03e5f06d - languageName: node - linkType: hard - "get-pkg-repo@npm:^4.2.1": version: 4.2.1 resolution: "get-pkg-repo@npm:4.2.1" @@ -3956,15 +3894,6 @@ __metadata: languageName: node linkType: hard -"gopd@npm:^1.0.1": - version: 1.0.1 - resolution: "gopd@npm:1.0.1" - dependencies: - get-intrinsic: "npm:^1.1.3" - checksum: 10/5fbc7ad57b368ae4cd2f41214bd947b045c1a4be2f194a7be1778d71f8af9dbf4004221f3b6f23e30820eb0d052b4f819fe6ebe8221e2a3c6f0ee4ef173421ca - languageName: node - linkType: hard - "graceful-fs@npm:4.2.11, graceful-fs@npm:^4.1.11, graceful-fs@npm:^4.1.15, graceful-fs@npm:^4.1.2, graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.4, graceful-fs@npm:^4.2.6": version: 4.2.11 resolution: "graceful-fs@npm:4.2.11" @@ -4018,29 +3947,6 @@ __metadata: languageName: node linkType: hard -"has-property-descriptors@npm:^1.0.2": - version: 1.0.2 - resolution: "has-property-descriptors@npm:1.0.2" - dependencies: - es-define-property: "npm:^1.0.0" - checksum: 10/2d8c9ab8cebb572e3362f7d06139a4592105983d4317e68f7adba320fe6ddfc8874581e0971e899e633fd5f72e262830edce36d5a0bc863dad17ad20572484b2 - languageName: node - linkType: hard - -"has-proto@npm:^1.0.1": - version: 1.0.1 - resolution: "has-proto@npm:1.0.1" - checksum: 10/eab2ab0ed1eae6d058b9bbc4c1d99d2751b29717be80d02fd03ead8b62675488de0c7359bc1fdd4b87ef6fd11e796a9631ad4d7452d9324fdada70158c2e5be7 - languageName: node - linkType: hard - -"has-symbols@npm:^1.0.3": - version: 1.0.3 - resolution: "has-symbols@npm:1.0.3" - checksum: 10/464f97a8202a7690dadd026e6d73b1ceeddd60fe6acfd06151106f050303eaa75855aaa94969df8015c11ff7c505f196114d22f7386b4a471038da5874cf5e9b - languageName: node - linkType: hard - "has-unicode@npm:2.0.1, has-unicode@npm:^2.0.1": version: 2.0.1 resolution: "has-unicode@npm:2.0.1" @@ -4340,7 +4246,6 @@ __metadata: resolution: "inquirer@workspace:packages/inquirer" dependencies: "@inquirer/figures": "npm:^1.0.3" - "@ljharb/through": "npm:^2.3.13" ansi-escapes: "npm:^4.3.2" chalk: "npm:^5.3.0" cli-width: "npm:^4.1.0" @@ -7088,20 +6993,6 @@ __metadata: languageName: node linkType: hard -"set-function-length@npm:^1.2.1": - version: 1.2.2 - resolution: "set-function-length@npm:1.2.2" - dependencies: - define-data-property: "npm:^1.1.4" - es-errors: "npm:^1.3.0" - function-bind: "npm:^1.1.2" - get-intrinsic: "npm:^1.2.4" - gopd: "npm:^1.0.1" - has-property-descriptors: "npm:^1.0.2" - checksum: 10/505d62b8e088468917ca4e3f8f39d0e29f9a563b97dbebf92f4bd2c3172ccfb3c5b8e4566d5fcd00784a00433900e7cb8fbc404e2dbd8c3818ba05bb9d4a8a6d - languageName: node - linkType: hard - "shallow-clone@npm:^3.0.0": version: 3.0.1 resolution: "shallow-clone@npm:3.0.1"