Skip to content

Commit

Permalink
remove enquire.js depend
Browse files Browse the repository at this point in the history
  • Loading branch information
luckycat0426 committed Oct 30, 2021
1 parent bb6e58f commit 74fa65c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@
"cheerio": "^1.0.0-rc.10",
"node-fetch": "^2.6.5",
"signale": "^1.4.0",
"terminal-image": "2.0.0",
"terminal-image": "^2.0.0",
"tesseract.js": "^2.1.5",
"enquirer": "^2.3.6",
"user-agents": "^1.0.799"
},
"devDependencies": {
Expand Down
3 changes: 0 additions & 3 deletions core/src/crawler/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import log from '../utils/logger.js'
import ocr from './capcha.js'
import * as readline from 'node:readline'
import { stdin, stdout } from 'node:process'
import enquirer from 'enquirer'
import fs from 'fs'
import type { Response } from 'node-fetch'
import UserAgent from 'user-agents'
Expand All @@ -16,8 +15,6 @@ import type { HandleCookieOptions } from '../types/cookie'
import type { StringKV } from '../types/helper'
import FetchWithCookie from '../utils/fetch-helper.js'

const { prompt } = enquirer

/**
* Process to login to the unified auth
*/
Expand Down

0 comments on commit 74fa65c

Please sign in to comment.