Comparing version 1.1.9 to 1.1.10
12
index.js
@@ -61,3 +61,2 @@ 'use strict'; | ||
this._max_running = n; | ||
this._max_concurrent = n; | ||
} | ||
@@ -112,2 +111,3 @@ | ||
this.retries = 0; | ||
this.auto_format = true; | ||
this.secure = false; | ||
@@ -231,2 +231,7 @@ this.follow = false; | ||
format_payload (fmt) { | ||
this.auto_format = fmt; | ||
return this; | ||
} | ||
logger (logger) { | ||
@@ -304,3 +309,3 @@ this.logger = logger; | ||
} | ||
else { | ||
else if (this.auto_format) { | ||
payload = (!this.headers['Content-Type'] && this.data) | ||
@@ -310,2 +315,5 @@ ? Request.stringify(this.data) | ||
} | ||
else { | ||
payload = this.data; | ||
} | ||
@@ -312,0 +320,0 @@ |
{ | ||
"name": "cuddle", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"description": "Cuddle is a minimal, chainable and readability first http client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
16291
374