Compare commits

..

No commits in common. "0a2e7afa76b9d4e548672acab5d7d7886abfb8b0" and "bc4f6e59c0ab3473cd54f1ee299f28d145e63e58" have entirely different histories.

3 changed files with 3 additions and 3 deletions

View File

@ -280,7 +280,7 @@ function setDefaults(defs) {
var requester;
if (opts.body) {
if (true === opts.json && 'string' !== typeof opts.body) {
if (true === opts.json) {
_body = JSON.stringify(opts.body);
} else {
_body = opts.body;

2
package-lock.json generated
View File

@ -1,5 +1,5 @@
{
"name": "@root/request",
"version": "1.8.1",
"version": "1.8.0",
"lockfileVersion": 1
}

View File

@ -1,6 +1,6 @@
{
"name": "@root/request",
"version": "1.8.1",
"version": "1.8.0",
"description": "A lightweight, zero-dependency drop-in replacement for request",
"main": "index.js",
"files": [