Comparing version 7.2.2 to 7.3.0
@@ -134,4 +134,4 @@ module.exports = { | ||
? purple | ||
? status > 199 | ||
: green | ||
? status > 199 | ||
: green | ||
: blue)(status) | ||
@@ -138,0 +138,0 @@ } |
@@ -30,3 +30,2 @@ module.exports = { | ||
function handler ({ filter, includeUnofficial, onlyUnofficial }) { | ||
const c = require('@buzuli/color') | ||
const h = require('@buzuli/http') | ||
@@ -47,3 +46,3 @@ | ||
console.log(`Source: ${c.blue(h.status.codesSource())}`) | ||
console.log(`Source: ${h.url.color(h.status.codesSource())}`) | ||
} |
@@ -130,3 +130,8 @@ module.exports = { | ||
const { data, headers: responseHeaders, status, statusText } = res | ||
const [codeColored, textColored] = h.status.color(status, statusText) | ||
let statusDescription = statusText | ||
if (!statusText || statusText === 'unknown') { | ||
statusDescription = h.status.codeInfo(status).description | ||
} | ||
console.info({ statusText, statusDescription }) | ||
const [codeColored, textColored] = h.status.color(status, statusDescription) | ||
@@ -133,0 +138,0 @@ if (data) { |
{ | ||
"name": "aqui", | ||
"version": "7.2.2", | ||
"version": "7.3.0", | ||
"description": "Simple CLI HTTP utilities", | ||
@@ -30,15 +30,15 @@ "repository": "github:joeledwards/node-aqui", | ||
"@buzuli/hexdump": "^1.1.0", | ||
"@buzuli/http": "^1.0.3", | ||
"@buzuli/http": "^1.1.0", | ||
"@buzuli/json": "^2.1.0", | ||
"@buzuli/url": "^1.0.1", | ||
"axios": "^0.20.0", | ||
"axios": "^0.21.0", | ||
"durations": "^3.4.2", | ||
"ramda": "^0.27.1", | ||
"yargs": "^16.0.3" | ||
"yargs": "^16.1.0" | ||
}, | ||
"devDependencies": { | ||
"express": "^4.17.1", | ||
"standard": "^14.3.4", | ||
"standard": "^15.0.1", | ||
"tap": "^14.10.8" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19694
583
+ Addedaxios@0.21.4(transitive)
- Removedaxios@0.20.0(transitive)
Updated@buzuli/http@^1.1.0
Updatedaxios@^0.21.0
Updatedyargs@^16.1.0