duojie-helper 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +2 -4
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -41,10 +41,9 @@ program
|
|
|
41
41
|
// 步骤 1: 输入 API Key
|
|
42
42
|
const result = await inquirer.prompt([
|
|
43
43
|
{
|
|
44
|
-
type: '
|
|
44
|
+
type: 'input',
|
|
45
45
|
name: 'apiKey',
|
|
46
46
|
message: '请输入你的 Duojie API Key (Ctrl+C 退出):',
|
|
47
|
-
mask: '*',
|
|
48
47
|
validate: (input) => {
|
|
49
48
|
if (!input || input.trim().length < 10) {
|
|
50
49
|
return 'API Key 不能为空且长度至少 10 位';
|
|
@@ -211,10 +210,9 @@ program
|
|
|
211
210
|
if (!apiKey) {
|
|
212
211
|
const answer = await inquirer.prompt([
|
|
213
212
|
{
|
|
214
|
-
type: '
|
|
213
|
+
type: 'input',
|
|
215
214
|
name: 'apiKey',
|
|
216
215
|
message: '请输入你的 Duojie API Key:',
|
|
217
|
-
mask: '*',
|
|
218
216
|
}
|
|
219
217
|
]);
|
|
220
218
|
apiKey = answer.apiKey;
|