Skip to content

Commit f6163ad

Browse files
committed
build: update all non-major dependencies
1 parent 46b5942 commit f6163ad

File tree

2 files changed

+105
-19
lines changed

2 files changed

+105
-19
lines changed

.github/local-actions/branch-manager/main.js

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61187,22 +61187,36 @@ function normalizeChoices3(choices) {
6118761187
};
6118861188
});
6118961189
}
61190+
function getSelectedChoice(input, choices) {
61191+
let selectedChoice;
61192+
const selectableChoices = choices.filter(isSelectableChoice);
61193+
if (numberRegex.test(input)) {
61194+
const answer = Number.parseInt(input, 10) - 1;
61195+
selectedChoice = selectableChoices[answer];
61196+
} else {
61197+
selectedChoice = selectableChoices.find((choice) => choice.key === input);
61198+
}
61199+
return selectedChoice ? [selectedChoice, choices.indexOf(selectedChoice)] : [void 0, void 0];
61200+
}
6119061201
var esm_default8 = createPrompt((config2, done) => {
61202+
const { loop = true } = config2;
6119161203
const choices = useMemo(() => normalizeChoices3(config2.choices), [config2.choices]);
6119261204
const [status, setStatus] = useState("idle");
6119361205
const [value, setValue] = useState("");
6119461206
const [errorMsg, setError] = useState();
6119561207
const theme = makeTheme(config2.theme);
6119661208
const prefix = usePrefix({ status, theme });
61209+
const bounds = useMemo(() => {
61210+
const first = choices.findIndex(isSelectableChoice);
61211+
const last = choices.findLastIndex(isSelectableChoice);
61212+
if (first === -1) {
61213+
throw new ValidationError("[select prompt] No selectable choices. All choices are disabled.");
61214+
}
61215+
return { first, last };
61216+
}, [choices]);
6119761217
useKeypress((key, rl) => {
6119861218
if (isEnterKey(key)) {
61199-
let selectedChoice;
61200-
if (numberRegex.test(value)) {
61201-
const answer = Number.parseInt(value, 10) - 1;
61202-
selectedChoice = choices.filter(isSelectableChoice)[answer];
61203-
} else {
61204-
selectedChoice = choices.find((choice) => isSelectableChoice(choice) && choice.key === value);
61205-
}
61219+
const [selectedChoice] = getSelectedChoice(value, choices);
6120661220
if (isSelectableChoice(selectedChoice)) {
6120761221
setValue(selectedChoice.short);
6120861222
setStatus("done");
@@ -61212,6 +61226,20 @@ var esm_default8 = createPrompt((config2, done) => {
6121261226
} else {
6121361227
setError(`"${import_yoctocolors_cjs5.default.red(value)}" isn't an available option`);
6121461228
}
61229+
} else if (key.name === "up" || key.name === "down") {
61230+
rl.clearLine(0);
61231+
const [selectedChoice, active] = getSelectedChoice(value, choices);
61232+
if (!selectedChoice) {
61233+
const firstChoice = key.name === "down" ? choices.find(isSelectableChoice) : choices.findLast(isSelectableChoice);
61234+
setValue(firstChoice.key);
61235+
} else if (loop || key.name === "up" && active !== bounds.first || key.name === "down" && active !== bounds.last) {
61236+
const offset = key.name === "up" ? -1 : 1;
61237+
let next = active;
61238+
do {
61239+
next = (next + offset + choices.length) % choices.length;
61240+
} while (!isSelectableChoice(choices[next]));
61241+
setValue(choices[next].key);
61242+
}
6121561243
} else {
6121661244
setValue(rl.line);
6121761245
setError(void 0);
@@ -61498,6 +61526,7 @@ function normalizeChoices5(choices) {
6149861526
});
6149961527
}
6150061528
var esm_default11 = createPrompt((config2, done) => {
61529+
var _a, _b;
6150161530
const { loop = true, pageSize = 7 } = config2;
6150261531
const firstRender = useRef(true);
6150361532
const theme = makeTheme(selectTheme, config2.theme);
@@ -61571,9 +61600,9 @@ var esm_default11 = createPrompt((config2, done) => {
6157161600
firstRender.current = false;
6157261601
if (items.length > pageSize) {
6157361602
helpTipBottom = `
61574-
${theme.style.help("(Use arrow keys to reveal more choices)")}`;
61603+
${theme.style.help(`(${((_a = config2.instructions) == null ? void 0 : _a.pager) ?? "Use arrow keys to reveal more choices"})`)}`;
6157561604
} else {
61576-
helpTipTop = theme.style.help("(Use arrow keys)");
61605+
helpTipTop = theme.style.help(`(${((_b = config2.instructions) == null ? void 0 : _b.navigation) ?? "Use arrow keys"})`);
6157761606
}
6157861607
}
6157961608
const page = usePagination({

yarn.lock

Lines changed: 67 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2255,7 +2255,7 @@ __metadata:
22552255
languageName: node
22562256
linkType: hard
22572257

2258-
"@inquirer/prompts@npm:7.4.1, @inquirer/prompts@npm:^7.0.0":
2258+
"@inquirer/prompts@npm:7.4.1":
22592259
version: 7.4.1
22602260
resolution: "@inquirer/prompts@npm:7.4.1"
22612261
dependencies:
@@ -2278,6 +2278,29 @@ __metadata:
22782278
languageName: node
22792279
linkType: hard
22802280

2281+
"@inquirer/prompts@npm:^7.0.0":
2282+
version: 7.5.0
2283+
resolution: "@inquirer/prompts@npm:7.5.0"
2284+
dependencies:
2285+
"@inquirer/checkbox": "npm:^4.1.5"
2286+
"@inquirer/confirm": "npm:^5.1.9"
2287+
"@inquirer/editor": "npm:^4.2.10"
2288+
"@inquirer/expand": "npm:^4.0.12"
2289+
"@inquirer/input": "npm:^4.1.9"
2290+
"@inquirer/number": "npm:^3.0.12"
2291+
"@inquirer/password": "npm:^4.0.12"
2292+
"@inquirer/rawlist": "npm:^4.1.0"
2293+
"@inquirer/search": "npm:^3.0.12"
2294+
"@inquirer/select": "npm:^4.2.0"
2295+
peerDependencies:
2296+
"@types/node": ">=18"
2297+
peerDependenciesMeta:
2298+
"@types/node":
2299+
optional: true
2300+
checksum: 10c0/40faf282ec35a2b89258c65f8e55f1e9193a0f8bdfbb724641ce7c7036b4e995a84f685d311807ed18885b8e0231c278a40e90469d829eb165b4993b8edf101b
2301+
languageName: node
2302+
linkType: hard
2303+
22812304
"@inquirer/rawlist@npm:^4.0.12":
22822305
version: 4.0.12
22832306
resolution: "@inquirer/rawlist@npm:4.0.12"
@@ -2294,6 +2317,22 @@ __metadata:
22942317
languageName: node
22952318
linkType: hard
22962319

2320+
"@inquirer/rawlist@npm:^4.1.0":
2321+
version: 4.1.0
2322+
resolution: "@inquirer/rawlist@npm:4.1.0"
2323+
dependencies:
2324+
"@inquirer/core": "npm:^10.1.10"
2325+
"@inquirer/type": "npm:^3.0.6"
2326+
yoctocolors-cjs: "npm:^2.1.2"
2327+
peerDependencies:
2328+
"@types/node": ">=18"
2329+
peerDependenciesMeta:
2330+
"@types/node":
2331+
optional: true
2332+
checksum: 10c0/0e92e8ee7eebd6b6ba7a81d968701f398dd372638f51dd8e3cb1fd3a03520bc0f713e112488d37fdb813f18928f338d82527c575e18a9bebde7ac3273045898c
2333+
languageName: node
2334+
linkType: hard
2335+
22972336
"@inquirer/search@npm:^3.0.12":
22982337
version: 3.0.12
22992338
resolution: "@inquirer/search@npm:3.0.12"
@@ -2329,6 +2368,24 @@ __metadata:
23292368
languageName: node
23302369
linkType: hard
23312370

2371+
"@inquirer/select@npm:^4.2.0":
2372+
version: 4.2.0
2373+
resolution: "@inquirer/select@npm:4.2.0"
2374+
dependencies:
2375+
"@inquirer/core": "npm:^10.1.10"
2376+
"@inquirer/figures": "npm:^1.0.11"
2377+
"@inquirer/type": "npm:^3.0.6"
2378+
ansi-escapes: "npm:^4.3.2"
2379+
yoctocolors-cjs: "npm:^2.1.2"
2380+
peerDependencies:
2381+
"@types/node": ">=18"
2382+
peerDependenciesMeta:
2383+
"@types/node":
2384+
optional: true
2385+
checksum: 10c0/b3cfab393d54e48012336710b8e9267a0dd5551878a7727800da3d78602398720aab8777d5687b2138261fb731b0079d1c3ec0f4d0fee194bb1c4496c97b340b
2386+
languageName: node
2387+
linkType: hard
2388+
23322389
"@inquirer/type@npm:^1.5.5":
23332390
version: 1.5.5
23342391
resolution: "@inquirer/type@npm:1.5.5"
@@ -7712,8 +7769,8 @@ __metadata:
77127769
linkType: hard
77137770

77147771
"firebase-tools@npm:^14.0.0":
7715-
version: 14.2.0
7716-
resolution: "firebase-tools@npm:14.2.0"
7772+
version: 14.2.1
7773+
resolution: "firebase-tools@npm:14.2.1"
77177774
dependencies:
77187775
"@electric-sql/pglite": "npm:^0.2.16"
77197776
"@google-cloud/cloud-sql-connector": "npm:^1.3.3"
@@ -7785,7 +7842,7 @@ __metadata:
77857842
yaml: "npm:^2.4.1"
77867843
bin:
77877844
firebase: lib/bin/firebase.js
7788-
checksum: 10c0/f1e408c886bac3e9a628e7e046b380ecd8ea42437dada950dd3ebfea10c5242d797bee81a6cb040531ed4dc9fe9aee37d13274656bab3976ddb3af25ad2cf16e
7845+
checksum: 10c0/ad56eb71abc2689e0ea4a06bcb41c601ba65761019229805bbc7c24d59dc9fa290b940f05097e03290373802c2b212081b3ad609b0ecb6b6c379603344cd6065
77897846
languageName: node
77907847
linkType: hard
77917848

@@ -13785,8 +13842,8 @@ __metadata:
1378513842
linkType: hard
1378613843

1378713844
"stylelint@npm:^16.0.0":
13788-
version: 16.19.0
13789-
resolution: "stylelint@npm:16.19.0"
13845+
version: 16.19.1
13846+
resolution: "stylelint@npm:16.19.1"
1379013847
dependencies:
1379113848
"@csstools/css-parser-algorithms": "npm:^3.0.4"
1379213849
"@csstools/css-tokenizer": "npm:^3.0.3"
@@ -13828,7 +13885,7 @@ __metadata:
1382813885
write-file-atomic: "npm:^5.0.1"
1382913886
bin:
1383013887
stylelint: bin/stylelint.mjs
13831-
checksum: 10c0/15a8c2f5c1ece526672eec05b8c69e2cb0fb41c9d77e22577d19d88610de2f1f59fd5926b067166d0d8d30cca8c745401fa119c31d2525335d631bd58c75a7a0
13888+
checksum: 10c0/e633f323ff730e8f2ac982067e4caa9a6c98b81a519e7adff96fa7a7d047f68a24c0dd2d81f3511b0943d99c915f20f19da911d16d47336705ea70d46e960c89
1383213889
languageName: node
1383313890
linkType: hard
1383413891

@@ -14352,8 +14409,8 @@ __metadata:
1435214409
linkType: hard
1435314410

1435414411
"tsx@npm:^4.15.7":
14355-
version: 4.19.3
14356-
resolution: "tsx@npm:4.19.3"
14412+
version: 4.19.4
14413+
resolution: "tsx@npm:4.19.4"
1435714414
dependencies:
1435814415
esbuild: "npm:~0.25.0"
1435914416
fsevents: "npm:~2.3.3"
@@ -14363,7 +14420,7 @@ __metadata:
1436314420
optional: true
1436414421
bin:
1436514422
tsx: dist/cli.mjs
14366-
checksum: 10c0/cacfb4cf1392ae10e8e4fe032ad26ccb07cd8a3b32e5a0da270d9c48d06ee74f743e4a84686cbc9d89b48032d59bbc56cd911e076f53cebe61dc24fa525ff790
14423+
checksum: 10c0/f7b8d44362343fbde1f2ecc9832d243a450e1168dd09702a545ebe5f699aa6912e45b431a54b885466db414cceda48e5067b36d182027c43b2c02a4f99d8721e
1436714424
languageName: node
1436814425
linkType: hard
1436914426

0 commit comments

Comments
 (0)