upgrade deps

pull/396/head
starknt 2024-11-18 10:08:39 +08:00
parent bb7a2d0df9
commit feddcc5257
3 changed files with 4 additions and 5 deletions

0
packages/cli/cli.js Normal file → Executable file
View File

View File

@ -15,17 +15,18 @@
"agentkeepalive": "^4.5.0",
"axios": "^1.7.7",
"baidu-aip-sdk": "^4.16.16",
"crypto-js": "^4.0.0",
"dns-over-http": "^0.2.0",
"dns-over-tls": "^0.0.9",
"is-browser": "^2.1.0",
"json5": "^2.2.3",
"lodash": "^4.17.20",
"lru-cache": "^6.0.0",
"mkdirp": "^0.5.1",
"node-forge": "^1.3.1",
"stream-throttle": "^0.1.3",
"through2": "^4.0.2",
"tunnel-agent": "^0.6.0"
},
"devDependencies": {
"crypto-js": "^4.2.0"
}
}

View File

@ -1,7 +1,6 @@
const fs = require('fs')
const path = require('path')
const _ = require('lodash')
const mkdirp = require('mkdirp')
const forge = require('node-forge')
const log = require('../../../utils/util.log')
const config = require('../common/config')
@ -253,8 +252,7 @@ utils.initCA = function ({ caCertPath, caKeyPath }) {
const certPem = pki.certificateToPem(caCert)
const keyPem = pki.privateKeyToPem(cakey)
mkdirp.sync(path.dirname(caCertPath))
fs.mkdirSync(path.dirname(caCertPath), { recursive: true })
fs.writeFileSync(caCertPath, certPem)
fs.writeFileSync(caKeyPath, keyPem)
log.info('生成证书文件成功共2个文件:', caCertPath, caKeyPath)