@inquirer/select
Advanced tools
Comparing version 0.0.20-alpha.0 to 0.0.21-alpha.0
@@ -1,2 +0,2 @@ | ||
const select = require('.'); | ||
import select from './index.js'; | ||
@@ -3,0 +3,0 @@ (async () => { |
26
index.js
@@ -1,10 +0,18 @@ | ||
const { createPrompt, useState, useKeypress, useRef } = require('@inquirer/core/hooks'); | ||
const { usePrefix } = require('@inquirer/core/lib/prefix'); | ||
const { isEnterKey, isUpKey, isDownKey, isNumberKey } = require('@inquirer/core/lib/key'); | ||
const Paginator = require('@inquirer/core/lib/Paginator'); | ||
const chalk = require('chalk'); | ||
const figures = require('figures'); | ||
const { cursorHide } = require('ansi-escapes'); | ||
import { | ||
createPrompt, | ||
useState, | ||
useKeypress, | ||
useRef, | ||
usePrefix, | ||
isEnterKey, | ||
isUpKey, | ||
isDownKey, | ||
isNumberKey, | ||
Paginator, | ||
} from '@inquirer/core'; | ||
import chalk from 'chalk'; | ||
import figures from 'figures'; | ||
import ansiEscapes from 'ansi-escapes'; | ||
module.exports = createPrompt((config, done) => { | ||
export default createPrompt((config, done) => { | ||
const [status, setStatus] = useState('pending'); | ||
@@ -71,3 +79,3 @@ const [cursorPosition, setCursorPos] = useState(0); | ||
return `${prefix} ${message}\n${windowedChoices}${choiceDescription}${cursorHide}`; | ||
return `${prefix} ${message}\n${windowedChoices}${choiceDescription}${ansiEscapes.cursorHide}`; | ||
}); |
{ | ||
"name": "@inquirer/select", | ||
"version": "0.0.20-alpha.0", | ||
"type": "module", | ||
"version": "0.0.21-alpha.0", | ||
"description": "Inquirer select/list prompt", | ||
@@ -17,5 +18,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"@inquirer/core": "^0.0.20-alpha.0", | ||
"chalk": "^4.1.1", | ||
"figures": "^3.0.0" | ||
"@inquirer/core": "^0.0.21-alpha.0", | ||
"ansi-escapes": "^5.0.0", | ||
"chalk": "^5.0.1", | ||
"figures": "^4.0.1" | ||
}, | ||
@@ -25,3 +27,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "83b807522ca6e10ab90a6921eac9d9655e2dac38" | ||
"gitHead": "cd0d1465327c0e98a89c937a80b7c473b6d00f74" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116
Yes
6936
4
+ Addedansi-escapes@^5.0.0
+ Added@inquirer/core@0.0.21-alpha.0(transitive)
+ Addedansi-escapes@5.0.0(transitive)
+ Addedansi-regex@6.1.0(transitive)
+ Addedansi-styles@6.2.1(transitive)
+ Addedchalk@5.3.0(transitive)
+ Addedcli-width@4.1.0(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@9.2.2(transitive)
+ Addedescape-string-regexp@5.0.0(transitive)
+ Addedfigures@4.0.1(transitive)
+ Addedis-unicode-supported@1.3.0(transitive)
+ Addedstring-width@5.1.2(transitive)
+ Addedstrip-ansi@7.1.0(transitive)
+ Addedtype-fest@1.4.0(transitive)
+ Addedwrap-ansi@8.1.0(transitive)
- Removed@inquirer/core@0.0.20-alpha.0(transitive)
- Removedansi-escapes@4.3.2(transitive)
- Removedansi-regex@5.0.1(transitive)
- Removedansi-styles@4.3.0(transitive)
- Removedchalk@4.1.2(transitive)
- Removedcli-width@3.0.0(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedfigures@3.2.0(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedstring-width@4.2.3(transitive)
- Removedstrip-ansi@6.0.1(transitive)
- Removedsupports-color@7.2.0(transitive)
- Removedtype-fest@0.21.3(transitive)
- Removedwrap-ansi@7.0.0(transitive)
Updatedchalk@^5.0.1
Updatedfigures@^4.0.1