Skip to content

Commit

Permalink
[Package] Update packages version to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartheleway committed Oct 6, 2024
1 parent 8f24a6b commit 870c0dc
Show file tree
Hide file tree
Showing 111 changed files with 931 additions and 1,169 deletions.
1,067 changes: 469 additions & 598 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/ufo-npm-1.5.3-8c9d710312-1df1070258.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@
"coverage": "vitest run --coverage"
},
"dependencies": {
"@inquirer/core": "^8.0.1",
"ansi-escapes": "^6.2.1",
"@inquirer/core": "^9.2.1",
"ansi-escapes": "^7.0.0",
"chalk": "^5.3.0",
"cli-table3": "^0.6.4",
"cli-table3": "^0.6.5",
"figures": "^6.1.0"
},
"devDependencies": {
"@inquirer/testing": "^2.1.17",
"@inquirer/testing": "^2.1.34",
"@types/inquirer": "^9.0.7",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "^7.7.0",
"@typescript-eslint/parser": "^7.7.0",
"@vitest/coverage-v8": "^1.5.0",
"eslint": "^8.57.0",
"typescript": "^5.4.5",
"vitest": "^1.5.0"
"@types/node": "^22.7.4",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vitest/coverage-v8": "^2.1.2",
"eslint": "^8.57.1",
"typescript": "^5.6.2",
"vitest": "^2.1.2"
}
}
14 changes: 7 additions & 7 deletions src/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
KeypressEvent,
isSpaceKey,
Separator,
Status,
} from '@inquirer/core'
import chalk from 'chalk'
import figures from 'figures'
Expand Down Expand Up @@ -85,7 +86,7 @@ function printTable<Value>(
currentIndex,
}: Pagination,
columnIndex: number,
status: string,
status: Status,
multiple?: boolean,
) {
const table = new Table({
Expand Down Expand Up @@ -207,7 +208,7 @@ export default createPrompt(
validate = () => true,
} = config

const [status, setStatus] = useState('pending')
const [status, setStatus] = useState<Status>('idle')
const [rowIndex, setRowIndex] = useState(0)
const [columnIndex, setColumnIndex] = useState(0)
const [showHelpTip, setShowHelpTip] = useState(true)
Expand Down Expand Up @@ -245,7 +246,7 @@ export default createPrompt(

useKeypress(async (key) => {
// Ignore keypress while our prompt is doing other processing.
if (status !== 'pending') {
if (status !== 'idle') {
return
}

Expand All @@ -257,7 +258,7 @@ export default createPrompt(
&& !values.find(value => value.answers.length)
) {
setError('Please select at least one value.')
setStatus('pending')
setStatus('idle')
}
else {
const isValid = await validate(values)
Expand All @@ -268,7 +269,7 @@ export default createPrompt(
done(values.filter(value => value.answers.length))
} else {
setError(isValid || 'You must provide a valid value')
setStatus('pending')
setStatus('idle')
}
}
}
Expand Down Expand Up @@ -382,8 +383,7 @@ export default createPrompt(
error = chalk.red('>> ' + errorMsg)
}

const isLoading = status === 'loading'
const prefix = usePrefix({ isLoading })
const prefix = usePrefix({ status })

return [
[
Expand Down
Loading

0 comments on commit 870c0dc

Please sign in to comment.