git-stack-cli
Advanced tools
@@ -5,2 +5,3 @@ import * as React from "react"; | ||
| import { colors } from "../core/colors.js"; | ||
| import { is_finite_value } from "../core/is_finite_value.js"; | ||
| import { wrap_index } from "../core/wrap_index.js"; | ||
@@ -29,14 +30,14 @@ export function MultiSelect(props) { | ||
| }, 0, function find_initial_index() { | ||
| let firstEnabled; | ||
| let last_enabled; | ||
| for (let i = props.items.length - 1; i >= 0; i--) { | ||
| const item = props.items[i]; | ||
| if (!item.disabled && firstEnabled === undefined) { | ||
| firstEnabled = i; | ||
| if (!item.disabled) { | ||
| last_enabled = i; | ||
| } | ||
| if (item.selected && !item.disabled) { | ||
| if (!item.selected && !item.disabled) { | ||
| return i; | ||
| } | ||
| } | ||
| if (typeof firstEnabled === "number") { | ||
| return firstEnabled; | ||
| if (is_finite_value(last_enabled)) { | ||
| return last_enabled; | ||
| } | ||
@@ -43,0 +44,0 @@ return 0; |
+1
-1
| { | ||
| "name": "git-stack-cli", | ||
| "version": "0.7.1", | ||
| "version": "0.7.2", | ||
| "description": "", | ||
@@ -5,0 +5,0 @@ "author": "magus", |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
216899
0.01%5494
0.02%