feat(proxy-cli): clearer call headers

This commit is contained in:
Julien Fontanet 2021-02-26 17:50:47 +01:00
parent d920a97f4f
commit be2257153c
2 changed files with 3 additions and 1 deletions

View File

@ -31,6 +31,7 @@
"dependencies": {
"@iarna/toml": "^2.2.0",
"@vates/read-chunk": "^0.1.1",
"ansi-colors": "^4.1.1",
"app-conf": "^0.9.0",
"content-type": "^1.0.4",
"cson-parser": "^4.0.7",

View File

@ -1,6 +1,7 @@
#!/usr/bin/env node
import assert from 'assert'
import colors from 'ansi-colors'
import contentType from 'content-type'
import CSON from 'cson-parser'
import fromCallback from 'promise-toolbox/fromCallback'
@ -84,7 +85,7 @@ ${pkg.name} v${pkg.version}`
}
const call = async ({ method, params }) => {
if (callPath.length !== 0) {
process.stderr.write(`\ncall #${callPath.join('.')}\n`)
process.stderr.write(`\n${colors.bold(`--- call #${callPath.join('.')}`)} ---\n\n`)
}
const response = await hrp.post(baseRequest, {