Skip to content

Commit a0376e3

Browse files
committed
build: update all non-major dependencies
1 parent 4090da1 commit a0376e3

File tree

2 files changed

+102
-16
lines changed

2 files changed

+102
-16
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: 64 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2427,7 +2427,7 @@ __metadata:
24272427
languageName: node
24282428
linkType: hard
24292429

2430-
"@inquirer/prompts@npm:7.4.1, @inquirer/prompts@npm:^7.0.0":
2430+
"@inquirer/prompts@npm:7.4.1":
24312431
version: 7.4.1
24322432
resolution: "@inquirer/prompts@npm:7.4.1"
24332433
dependencies:
@@ -2450,6 +2450,29 @@ __metadata:
24502450
languageName: node
24512451
linkType: hard
24522452

2453+
"@inquirer/prompts@npm:^7.0.0":
2454+
version: 7.5.0
2455+
resolution: "@inquirer/prompts@npm:7.5.0"
2456+
dependencies:
2457+
"@inquirer/checkbox": "npm:^4.1.5"
2458+
"@inquirer/confirm": "npm:^5.1.9"
2459+
"@inquirer/editor": "npm:^4.2.10"
2460+
"@inquirer/expand": "npm:^4.0.12"
2461+
"@inquirer/input": "npm:^4.1.9"
2462+
"@inquirer/number": "npm:^3.0.12"
2463+
"@inquirer/password": "npm:^4.0.12"
2464+
"@inquirer/rawlist": "npm:^4.1.0"
2465+
"@inquirer/search": "npm:^3.0.12"
2466+
"@inquirer/select": "npm:^4.2.0"
2467+
peerDependencies:
2468+
"@types/node": ">=18"
2469+
peerDependenciesMeta:
2470+
"@types/node":
2471+
optional: true
2472+
checksum: 10c0/40faf282ec35a2b89258c65f8e55f1e9193a0f8bdfbb724641ce7c7036b4e995a84f685d311807ed18885b8e0231c278a40e90469d829eb165b4993b8edf101b
2473+
languageName: node
2474+
linkType: hard
2475+
24532476
"@inquirer/rawlist@npm:^4.0.12":
24542477
version: 4.0.12
24552478
resolution: "@inquirer/rawlist@npm:4.0.12"
@@ -2466,6 +2489,22 @@ __metadata:
24662489
languageName: node
24672490
linkType: hard
24682491

2492+
"@inquirer/rawlist@npm:^4.1.0":
2493+
version: 4.1.0
2494+
resolution: "@inquirer/rawlist@npm:4.1.0"
2495+
dependencies:
2496+
"@inquirer/core": "npm:^10.1.10"
2497+
"@inquirer/type": "npm:^3.0.6"
2498+
yoctocolors-cjs: "npm:^2.1.2"
2499+
peerDependencies:
2500+
"@types/node": ">=18"
2501+
peerDependenciesMeta:
2502+
"@types/node":
2503+
optional: true
2504+
checksum: 10c0/0e92e8ee7eebd6b6ba7a81d968701f398dd372638f51dd8e3cb1fd3a03520bc0f713e112488d37fdb813f18928f338d82527c575e18a9bebde7ac3273045898c
2505+
languageName: node
2506+
linkType: hard
2507+
24692508
"@inquirer/search@npm:^3.0.12":
24702509
version: 3.0.12
24712510
resolution: "@inquirer/search@npm:3.0.12"
@@ -2501,6 +2540,24 @@ __metadata:
25012540
languageName: node
25022541
linkType: hard
25032542

2543+
"@inquirer/select@npm:^4.2.0":
2544+
version: 4.2.0
2545+
resolution: "@inquirer/select@npm:4.2.0"
2546+
dependencies:
2547+
"@inquirer/core": "npm:^10.1.10"
2548+
"@inquirer/figures": "npm:^1.0.11"
2549+
"@inquirer/type": "npm:^3.0.6"
2550+
ansi-escapes: "npm:^4.3.2"
2551+
yoctocolors-cjs: "npm:^2.1.2"
2552+
peerDependencies:
2553+
"@types/node": ">=18"
2554+
peerDependenciesMeta:
2555+
"@types/node":
2556+
optional: true
2557+
checksum: 10c0/b3cfab393d54e48012336710b8e9267a0dd5551878a7727800da3d78602398720aab8777d5687b2138261fb731b0079d1c3ec0f4d0fee194bb1c4496c97b340b
2558+
languageName: node
2559+
linkType: hard
2560+
25042561
"@inquirer/type@npm:^1.5.5":
25052562
version: 1.5.5
25062563
resolution: "@inquirer/type@npm:1.5.5"
@@ -7970,8 +8027,8 @@ __metadata:
79708027
linkType: hard
79718028

79728029
"firebase-tools@npm:^14.0.0":
7973-
version: 14.2.0
7974-
resolution: "firebase-tools@npm:14.2.0"
8030+
version: 14.2.1
8031+
resolution: "firebase-tools@npm:14.2.1"
79758032
dependencies:
79768033
"@electric-sql/pglite": "npm:^0.2.16"
79778034
"@google-cloud/cloud-sql-connector": "npm:^1.3.3"
@@ -8043,7 +8100,7 @@ __metadata:
80438100
yaml: "npm:^2.4.1"
80448101
bin:
80458102
firebase: lib/bin/firebase.js
8046-
checksum: 10c0/f1e408c886bac3e9a628e7e046b380ecd8ea42437dada950dd3ebfea10c5242d797bee81a6cb040531ed4dc9fe9aee37d13274656bab3976ddb3af25ad2cf16e
8103+
checksum: 10c0/ad56eb71abc2689e0ea4a06bcb41c601ba65761019229805bbc7c24d59dc9fa290b940f05097e03290373802c2b212081b3ad609b0ecb6b6c379603344cd6065
80478104
languageName: node
80488105
linkType: hard
80498106

@@ -14043,8 +14100,8 @@ __metadata:
1404314100
linkType: hard
1404414101

1404514102
"stylelint@npm:^16.0.0":
14046-
version: 16.19.0
14047-
resolution: "stylelint@npm:16.19.0"
14103+
version: 16.19.1
14104+
resolution: "stylelint@npm:16.19.1"
1404814105
dependencies:
1404914106
"@csstools/css-parser-algorithms": "npm:^3.0.4"
1405014107
"@csstools/css-tokenizer": "npm:^3.0.3"
@@ -14086,7 +14143,7 @@ __metadata:
1408614143
write-file-atomic: "npm:^5.0.1"
1408714144
bin:
1408814145
stylelint: bin/stylelint.mjs
14089-
checksum: 10c0/15a8c2f5c1ece526672eec05b8c69e2cb0fb41c9d77e22577d19d88610de2f1f59fd5926b067166d0d8d30cca8c745401fa119c31d2525335d631bd58c75a7a0
14146+
checksum: 10c0/e633f323ff730e8f2ac982067e4caa9a6c98b81a519e7adff96fa7a7d047f68a24c0dd2d81f3511b0943d99c915f20f19da911d16d47336705ea70d46e960c89
1409014147
languageName: node
1409114148
linkType: hard
1409214149

0 commit comments

Comments
 (0)