diff --git a/.yarn/cache/@babel-helper-validator-identifier-npm-7.24.5-d1938535fe-38aaf6a64a.zip b/.yarn/cache/@babel-helper-validator-identifier-npm-7.24.5-d1938535fe-38aaf6a64a.zip new file mode 100644 index 000000000..dd561db1f Binary files /dev/null and b/.yarn/cache/@babel-helper-validator-identifier-npm-7.24.5-d1938535fe-38aaf6a64a.zip differ diff --git a/.yarn/cache/@eslint-eslintrc-npm-2.1.4-1ff4b5f908-7a3b14f4b4.zip b/.yarn/cache/@eslint-eslintrc-npm-2.1.4-1ff4b5f908-7a3b14f4b4.zip deleted file mode 100644 index b00a29818..000000000 Binary files a/.yarn/cache/@eslint-eslintrc-npm-2.1.4-1ff4b5f908-7a3b14f4b4.zip and /dev/null differ diff --git a/.yarn/cache/browserslist-npm-4.22.2-87e70d8021-e3590793db.zip b/.yarn/cache/browserslist-npm-4.22.2-87e70d8021-e3590793db.zip deleted file mode 100644 index 726457684..000000000 Binary files a/.yarn/cache/browserslist-npm-4.22.2-87e70d8021-e3590793db.zip and /dev/null differ diff --git a/.yarn/cache/browserslist-npm-4.23.0-8126a959d4-496c3862df.zip b/.yarn/cache/browserslist-npm-4.23.0-8126a959d4-496c3862df.zip new file mode 100644 index 000000000..01afb2452 Binary files /dev/null and b/.yarn/cache/browserslist-npm-4.23.0-8126a959d4-496c3862df.zip differ diff --git a/.yarn/cache/caniuse-lite-npm-1.0.30001575-147736e3a7-ba07eb934d.zip b/.yarn/cache/caniuse-lite-npm-1.0.30001575-147736e3a7-ba07eb934d.zip deleted file mode 100644 index 760b7b03b..000000000 Binary files a/.yarn/cache/caniuse-lite-npm-1.0.30001575-147736e3a7-ba07eb934d.zip and /dev/null differ diff --git a/.yarn/cache/caniuse-lite-npm-1.0.30001617-5cf8ee8c51-eac442b9ad.zip b/.yarn/cache/caniuse-lite-npm-1.0.30001617-5cf8ee8c51-eac442b9ad.zip new file mode 100644 index 000000000..f5ff955bc Binary files /dev/null and b/.yarn/cache/caniuse-lite-npm-1.0.30001617-5cf8ee8c51-eac442b9ad.zip differ diff --git a/.yarn/cache/core-js-compat-npm-3.35.0-17feb82aca-aa21ad2f0c.zip b/.yarn/cache/core-js-compat-npm-3.35.0-17feb82aca-aa21ad2f0c.zip deleted file mode 100644 index 6d57a1f8e..000000000 Binary files a/.yarn/cache/core-js-compat-npm-3.35.0-17feb82aca-aa21ad2f0c.zip and /dev/null differ diff --git a/.yarn/cache/core-js-compat-npm-3.37.0-9323d119db-5f33d7ba45.zip b/.yarn/cache/core-js-compat-npm-3.37.0-9323d119db-5f33d7ba45.zip new file mode 100644 index 000000000..2f6740057 Binary files /dev/null and b/.yarn/cache/core-js-compat-npm-3.37.0-9323d119db-5f33d7ba45.zip differ diff --git a/.yarn/cache/electron-to-chromium-npm-1.4.623-950fa7fa1c-483640dbbe.zip b/.yarn/cache/electron-to-chromium-npm-1.4.623-950fa7fa1c-483640dbbe.zip deleted file mode 100644 index f4bca5371..000000000 Binary files a/.yarn/cache/electron-to-chromium-npm-1.4.623-950fa7fa1c-483640dbbe.zip and /dev/null differ diff --git a/.yarn/cache/electron-to-chromium-npm-1.4.763-ee873a602e-088c53acfe.zip b/.yarn/cache/electron-to-chromium-npm-1.4.763-ee873a602e-088c53acfe.zip new file mode 100644 index 000000000..a902d262d Binary files /dev/null and b/.yarn/cache/electron-to-chromium-npm-1.4.763-ee873a602e-088c53acfe.zip differ diff --git a/.yarn/cache/eslint-plugin-n-npm-17.5.1-a1573fe997-80ee93286f.zip b/.yarn/cache/eslint-plugin-n-npm-17.6.0-a1bd2d8101-b972b2aabe.zip similarity index 87% rename from .yarn/cache/eslint-plugin-n-npm-17.5.1-a1573fe997-80ee93286f.zip rename to .yarn/cache/eslint-plugin-n-npm-17.6.0-a1bd2d8101-b972b2aabe.zip index 5f45934db..d499ebd11 100644 Binary files a/.yarn/cache/eslint-plugin-n-npm-17.5.1-a1573fe997-80ee93286f.zip and b/.yarn/cache/eslint-plugin-n-npm-17.6.0-a1bd2d8101-b972b2aabe.zip differ diff --git a/.yarn/cache/eslint-plugin-unicorn-npm-52.0.0-9f4709a416-69b8aeee04.zip b/.yarn/cache/eslint-plugin-unicorn-npm-52.0.0-9f4709a416-69b8aeee04.zip deleted file mode 100644 index 723a53819..000000000 Binary files a/.yarn/cache/eslint-plugin-unicorn-npm-52.0.0-9f4709a416-69b8aeee04.zip and /dev/null differ diff --git a/.yarn/cache/eslint-plugin-unicorn-npm-53.0.0-7a9c8d4b1c-988673e28a.zip b/.yarn/cache/eslint-plugin-unicorn-npm-53.0.0-7a9c8d4b1c-988673e28a.zip new file mode 100644 index 000000000..4ea62dea6 Binary files /dev/null and b/.yarn/cache/eslint-plugin-unicorn-npm-53.0.0-7a9c8d4b1c-988673e28a.zip differ diff --git a/.yarn/cache/espree-npm-9.6.1-a50722a5a9-255ab260f0.zip b/.yarn/cache/espree-npm-9.6.1-a50722a5a9-255ab260f0.zip deleted file mode 100644 index 9edd42d5e..000000000 Binary files a/.yarn/cache/espree-npm-9.6.1-a50722a5a9-255ab260f0.zip and /dev/null differ diff --git a/.yarn/cache/globals-npm-13.24.0-cc7713139c-62c5b1997d.zip b/.yarn/cache/globals-npm-13.24.0-cc7713139c-62c5b1997d.zip deleted file mode 100644 index bac6ed348..000000000 Binary files a/.yarn/cache/globals-npm-13.24.0-cc7713139c-62c5b1997d.zip and /dev/null differ diff --git a/.yarn/cache/globals-npm-15.1.0-89f6f66ef9-441931212b.zip b/.yarn/cache/globals-npm-15.1.0-89f6f66ef9-441931212b.zip deleted file mode 100644 index 4944338d1..000000000 Binary files a/.yarn/cache/globals-npm-15.1.0-89f6f66ef9-441931212b.zip and /dev/null differ diff --git a/.yarn/cache/globals-npm-15.2.0-797f12c638-a3cb67b037.zip b/.yarn/cache/globals-npm-15.2.0-797f12c638-a3cb67b037.zip new file mode 100644 index 000000000..acbce3ef1 Binary files /dev/null and b/.yarn/cache/globals-npm-15.2.0-797f12c638-a3cb67b037.zip differ diff --git a/.yarn/cache/semver-npm-7.6.2-0fec6944bb-296b17d027.zip b/.yarn/cache/semver-npm-7.6.2-0fec6944bb-296b17d027.zip new file mode 100644 index 000000000..f3e5303fa Binary files /dev/null and b/.yarn/cache/semver-npm-7.6.2-0fec6944bb-296b17d027.zip differ diff --git a/package.json b/package.json index ef361f7e4..d3275bc5b 100644 --- a/package.json +++ b/package.json @@ -55,10 +55,10 @@ "@vitest/ui": "^1.6.0", "eslint": "^9.2.0", "eslint-config-prettier": "^9.1.0", - "eslint-plugin-n": "^17.5.1", + "eslint-plugin-n": "^17.6.0", "eslint-plugin-prettier": "^5.1.3", - "eslint-plugin-unicorn": "^52.0.0", - "globals": "^15.1.0", + "eslint-plugin-unicorn": "^53.0.0", + "globals": "^15.2.0", "globby": "^14.0.1", "husky": "^9.0.11", "lerna": "^8.1.2", diff --git a/packages/inquirer/examples/bottom-bar.js b/packages/inquirer/examples/bottom-bar.js index 0a5972ccb..3ce77b7d3 100644 --- a/packages/inquirer/examples/bottom-bar.js +++ b/packages/inquirer/examples/bottom-bar.js @@ -1,7 +1,7 @@ import { spawn } from 'node:child_process'; import BottomBar from '../lib/ui/bottom-bar.js'; -const loader = ['/ Installing', '| Installing', '\\ Installing', '- Installing']; +const loader = ['/ Installing', '| Installing', String.raw`\ Installing`, '- Installing']; let i = 4; const ui = new BottomBar({ bottomBar: loader[i % 4] }); diff --git a/yarn.lock b/yarn.lock index eeab3bc8e..85a0c45e5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -83,6 +83,13 @@ __metadata: languageName: node linkType: hard +"@babel/helper-validator-identifier@npm:^7.24.5": + version: 7.24.5 + resolution: "@babel/helper-validator-identifier@npm:7.24.5" + checksum: 10/38aaf6a64a0ea2e84766165b461deda3c24fd2173dff18419a2cc9e1ea1d3e709039aee94db29433a07011492717c80900a5eb564cdca7d137757c3c69e26898 + languageName: node + linkType: hard + "@babel/highlight@npm:^7.22.5": version: 7.22.5 resolution: "@babel/highlight@npm:7.22.5" @@ -316,23 +323,6 @@ __metadata: languageName: node linkType: hard -"@eslint/eslintrc@npm:^2.1.4": - version: 2.1.4 - resolution: "@eslint/eslintrc@npm:2.1.4" - dependencies: - ajv: "npm:^6.12.4" - debug: "npm:^4.3.2" - espree: "npm:^9.6.0" - globals: "npm:^13.19.0" - ignore: "npm:^5.2.0" - import-fresh: "npm:^3.2.1" - js-yaml: "npm:^4.1.0" - minimatch: "npm:^3.1.2" - strip-json-comments: "npm:^3.1.1" - checksum: 10/7a3b14f4b40fc1a22624c3f84d9f467a3d9ea1ca6e9a372116cb92507e485260359465b58e25bcb6c9981b155416b98c9973ad9b796053fd7b3f776a6946bce8 - languageName: node - linkType: hard - "@eslint/eslintrc@npm:^3.0.2": version: 3.0.2 resolution: "@eslint/eslintrc@npm:3.0.2" @@ -1760,7 +1750,7 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^8.10.0, acorn@npm:^8.11.3, acorn@npm:^8.4.1, acorn@npm:^8.9.0": +"acorn@npm:^8.10.0, acorn@npm:^8.11.3, acorn@npm:^8.4.1": version: 8.11.3 resolution: "acorn@npm:8.11.3" bin: @@ -2081,17 +2071,17 @@ __metadata: languageName: node linkType: hard -"browserslist@npm:^4.22.2": - version: 4.22.2 - resolution: "browserslist@npm:4.22.2" +"browserslist@npm:^4.23.0": + version: 4.23.0 + resolution: "browserslist@npm:4.23.0" dependencies: - caniuse-lite: "npm:^1.0.30001565" - electron-to-chromium: "npm:^1.4.601" + caniuse-lite: "npm:^1.0.30001587" + electron-to-chromium: "npm:^1.4.668" node-releases: "npm:^2.0.14" update-browserslist-db: "npm:^1.0.13" bin: browserslist: cli.js - checksum: 10/e3590793db7f66ad3a50817e7b7f195ce61e029bd7187200244db664bfbe0ac832f784e4f6b9c958aef8ea4abe001ae7880b7522682df521f4bc0a5b67660b5e + checksum: 10/496c3862df74565dd942b4ae65f502c575cbeba1fa4a3894dad7aa3b16130dc3033bc502d8848147f7b625154a284708253d9598bcdbef5a1e34cf11dc7bad8e languageName: node linkType: hard @@ -2227,10 +2217,10 @@ __metadata: languageName: node linkType: hard -"caniuse-lite@npm:^1.0.30001565": - version: 1.0.30001575 - resolution: "caniuse-lite@npm:1.0.30001575" - checksum: 10/ba07eb934d718c38e687c896fd19fd36cce13c031d3812bf7a1a21c1dbec7b3ed91aa0294995e0310b607218443b539afcf594b53bf8d0188970bb49071fb6e0 +"caniuse-lite@npm:^1.0.30001587": + version: 1.0.30001617 + resolution: "caniuse-lite@npm:1.0.30001617" + checksum: 10/eac442b9ad12801086be19f6dc17056827fe398f1c05983357e2531c8183ee890ffc8fb973d54519ad7114a2fd47de8f33ec66d98565b995fef1c6ba02b5bc5b languageName: node linkType: hard @@ -2685,12 +2675,12 @@ __metadata: languageName: node linkType: hard -"core-js-compat@npm:^3.34.0": - version: 3.35.0 - resolution: "core-js-compat@npm:3.35.0" +"core-js-compat@npm:^3.37.0": + version: 3.37.0 + resolution: "core-js-compat@npm:3.37.0" dependencies: - browserslist: "npm:^4.22.2" - checksum: 10/aa21ad2f0c946be7a8ecef92233bc003a38fa27e43a925fcd9b79e32ae49b879e0f5c23459ffc310df38ee547389b8e5e43a6a8be0b2369b9b9ebf3d04ae69b9 + browserslist: "npm:^4.23.0" + checksum: 10/5f33d7ba45acc9ceb45544d844090edfd14e46a64c2424df24084347405182c1156588cc3a877fc580c005a0b13b8a1af26bb6c73fe73f22eede89b5483b482d languageName: node linkType: hard @@ -2930,10 +2920,10 @@ __metadata: languageName: node linkType: hard -"electron-to-chromium@npm:^1.4.601": - version: 1.4.623 - resolution: "electron-to-chromium@npm:1.4.623" - checksum: 10/483640dbbedf46d627f264aae7bd2ef723326488fa5b7730fbe9c53f5bdde25ce421e54134b88ef85649e4473f42e73709692da5bbfb6aec7c08cdfe8c0037e2 +"electron-to-chromium@npm:^1.4.668": + version: 1.4.763 + resolution: "electron-to-chromium@npm:1.4.763" + checksum: 10/088c53acfe4723d40077a9fd98cc67e74af2c8d0c5c12e75ffddacfd6e98c009c75fff07e3443a3dc499f599a71b7cf0bcbfb1b0c574355436d297c88979056b languageName: node linkType: hard @@ -3184,9 +3174,9 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-n@npm:^17.5.1": - version: 17.5.1 - resolution: "eslint-plugin-n@npm:17.5.1" +"eslint-plugin-n@npm:^17.6.0": + version: 17.6.0 + resolution: "eslint-plugin-n@npm:17.6.0" dependencies: "@eslint-community/eslint-utils": "npm:^4.4.0" enhanced-resolve: "npm:^5.15.0" @@ -3198,7 +3188,7 @@ __metadata: semver: "npm:^7.5.3" peerDependencies: eslint: ">=8.23.0" - checksum: 10/80ee93286ff9d3bd411f77e2be9ae8013c76a626ec81add1b11fb90bf88f935ca139d68364398aeb586a270f2f7b0672ddaf574df9cf1b78ef21eb56e8e23d6b + checksum: 10/b972b2aabea7592b00773910cd40b5d6d022c775755945a0aa92f7d1f8e25d56c3ab03e10c4d18c513b26fbef933cb8ad6b682564923a33c836a027674c426d8 languageName: node linkType: hard @@ -3222,16 +3212,16 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-unicorn@npm:^52.0.0": - version: 52.0.0 - resolution: "eslint-plugin-unicorn@npm:52.0.0" +"eslint-plugin-unicorn@npm:^53.0.0": + version: 53.0.0 + resolution: "eslint-plugin-unicorn@npm:53.0.0" dependencies: - "@babel/helper-validator-identifier": "npm:^7.22.20" + "@babel/helper-validator-identifier": "npm:^7.24.5" "@eslint-community/eslint-utils": "npm:^4.4.0" - "@eslint/eslintrc": "npm:^2.1.4" + "@eslint/eslintrc": "npm:^3.0.2" ci-info: "npm:^4.0.0" clean-regexp: "npm:^1.0.0" - core-js-compat: "npm:^3.34.0" + core-js-compat: "npm:^3.37.0" esquery: "npm:^1.5.0" indent-string: "npm:^4.0.0" is-builtin-module: "npm:^3.2.1" @@ -3240,11 +3230,11 @@ __metadata: read-pkg-up: "npm:^7.0.1" regexp-tree: "npm:^0.1.27" regjsparser: "npm:^0.10.0" - semver: "npm:^7.5.4" + semver: "npm:^7.6.1" strip-indent: "npm:^3.0.0" peerDependencies: eslint: ">=8.56.0" - checksum: 10/69b8aeee04806b808a534fe5484ad75ee9feec6078aad90651d7ce7216e2bd14980fec5a2e05fd800b874406a54240af66f04ab83023a7f1fe67397b6dc4c032 + checksum: 10/988673e28a556ea31475dde8470b0d176fbf5089eeb6693fd56432e06b5295b2093aefc16e0a7b319133b75ec4f044f94b2b40f3cf01ff04f4a29adf30c3ac22 languageName: node linkType: hard @@ -3258,7 +3248,7 @@ __metadata: languageName: node linkType: hard -"eslint-visitor-keys@npm:^3.3.0, eslint-visitor-keys@npm:^3.4.1, eslint-visitor-keys@npm:^3.4.3": +"eslint-visitor-keys@npm:^3.3.0, eslint-visitor-keys@npm:^3.4.3": version: 3.4.3 resolution: "eslint-visitor-keys@npm:3.4.3" checksum: 10/3f357c554a9ea794b094a09bd4187e5eacd1bc0d0653c3adeb87962c548e6a1ab8f982b86963ae1337f5d976004146536dcee5d0e2806665b193fbfbf1a9231b @@ -3327,17 +3317,6 @@ __metadata: languageName: node linkType: hard -"espree@npm:^9.6.0": - version: 9.6.1 - resolution: "espree@npm:9.6.1" - dependencies: - acorn: "npm:^8.9.0" - acorn-jsx: "npm:^5.3.2" - eslint-visitor-keys: "npm:^3.4.1" - checksum: 10/255ab260f0d711a54096bdeda93adff0eadf02a6f9b92f02b323e83a2b7fc258797919437ad331efec3930475feb0142c5ecaaf3cdab4befebd336d47d3f3134 - languageName: node - linkType: hard - "esprima@npm:^4.0.0, esprima@npm:~4.0.0": version: 4.0.1 resolution: "esprima@npm:4.0.1" @@ -3939,15 +3918,6 @@ __metadata: languageName: node linkType: hard -"globals@npm:^13.19.0": - version: 13.24.0 - resolution: "globals@npm:13.24.0" - dependencies: - type-fest: "npm:^0.20.2" - checksum: 10/62c5b1997d06674fc7191d3e01e324d3eda4d65ac9cc4e78329fa3b5c4fd42a0e1c8722822497a6964eee075255ce21ccf1eec2d83f92ef3f06653af4d0ee28e - languageName: node - linkType: hard - "globals@npm:^14.0.0": version: 14.0.0 resolution: "globals@npm:14.0.0" @@ -3962,10 +3932,10 @@ __metadata: languageName: node linkType: hard -"globals@npm:^15.1.0": - version: 15.1.0 - resolution: "globals@npm:15.1.0" - checksum: 10/441931212b8b629940484aa6e505a4b7f590bed9f04f381d22e65d412bdb0c1e463aa6ca997ca0ce8a1a4966e934dc68c80ddbe74769adb33b6c7765ee6bef21 +"globals@npm:^15.2.0": + version: 15.2.0 + resolution: "globals@npm:15.2.0" + checksum: 10/a3cb67b037c84bfae1a6bedbe316a392a0e40a602b7730fe846312bcc460dd7b08059210762ae6f0e4343259334d473a821d537246983399b10c30c6911b7f9c languageName: node linkType: hard @@ -7064,10 +7034,10 @@ __metadata: "@vitest/ui": "npm:^1.6.0" eslint: "npm:^9.2.0" eslint-config-prettier: "npm:^9.1.0" - eslint-plugin-n: "npm:^17.5.1" + eslint-plugin-n: "npm:^17.6.0" eslint-plugin-prettier: "npm:^5.1.3" - eslint-plugin-unicorn: "npm:^52.0.0" - globals: "npm:^15.1.0" + eslint-plugin-unicorn: "npm:^53.0.0" + globals: "npm:^15.2.0" globby: "npm:^14.0.1" husky: "npm:^9.0.11" lerna: "npm:^8.1.2" @@ -7154,6 +7124,15 @@ __metadata: languageName: node linkType: hard +"semver@npm:^7.6.1": + version: 7.6.2 + resolution: "semver@npm:7.6.2" + bin: + semver: bin/semver.js + checksum: 10/296b17d027f57a87ef645e9c725bff4865a38dfc9caf29b26aa084b85820972fbe7372caea1ba6857162fa990702c6d9c1d82297cecb72d56c78ab29070d2ca2 + languageName: node + linkType: hard + "set-blocking@npm:^2.0.0": version: 2.0.0 resolution: "set-blocking@npm:2.0.0"