Comparing version 6.0.0 to 6.0.1
{ | ||
"name": "bent", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Functional HTTP client for Node.js w/ async/await.", | ||
@@ -15,2 +15,3 @@ "main": "src/nodejs.js", | ||
"dependencies": { | ||
"bytesish": "^0.3.1", | ||
"caseless": "~0.12.0", | ||
@@ -17,0 +18,0 @@ "is-stream": "^2.0.0" |
@@ -7,2 +7,3 @@ 'use strict' | ||
const caseless = require('caseless') | ||
const bytes = require('bytesish') | ||
const bent = require('./core') | ||
@@ -84,2 +85,5 @@ | ||
if (body) { | ||
if (body instanceof ArrayBuffer || ArrayBuffer.isView(body)) { | ||
body = bytes.native(body) | ||
} | ||
if (Buffer.isBuffer(body) || typeof body === 'string') { | ||
@@ -86,0 +90,0 @@ req.end(body) |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
14881
380
3
3
+ Addedbytesish@^0.3.1
+ Addedbytesish@0.3.3(transitive)