@astrojs/cli-kit
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -14,3 +14,4 @@ import readline from 'node:readline'; | ||
process.stdin.off('keypress', done); | ||
process.stdin.setRawMode(false); | ||
if (process.stdin.isTTY) | ||
process.stdin.setRawMode(false); | ||
rl.close(); | ||
@@ -31,3 +32,4 @@ cancelled = true; | ||
process.stdin.on('keypress', (str, key) => { | ||
process.stdin.setRawMode(true); | ||
if (process.stdin.isTTY) | ||
process.stdin.setRawMode(true); | ||
const k = action(key, false); | ||
@@ -68,2 +70,4 @@ if (k === 'abort') { | ||
eye = random(eyes); | ||
if (i == 1) | ||
eye = color.redBright(eye); | ||
logUpdate('\n' + face(msg.join(' '), { mouth, eye })); | ||
@@ -76,6 +80,6 @@ if (!cancelled) | ||
await sleep(100); | ||
const text = '\n' + face(_message.join(' '), { mouth: useAscii() ? 'u' : '◡', eye: useAscii() ? '^' : '◠' }); | ||
const text = '\n' + face(_message.join(' '), { mouth: useAscii() ? 'u' : i == 1 ? color.red('-') : '◡', eye: useAscii() ? '^' : i == 1 ? color.red('◡') : '◠' }); | ||
logUpdate(text); | ||
if (!cancelled) | ||
await sleep(randomBetween(800, 900)); | ||
await sleep(randomBetween(1200, 1400)); | ||
i++; | ||
@@ -82,0 +86,0 @@ } |
{ | ||
"name": "@astrojs/cli-kit", | ||
"type": "module", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"license": "MIT", | ||
@@ -23,2 +23,6 @@ "types": "./dist/index.d.ts", | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/withastro/cli-kit.git" | ||
}, | ||
"scripts": { | ||
@@ -25,0 +29,0 @@ "build": "tsc -p ." |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
52153
1595
0