eh-api-client
Advanced tools
Comparing version 0.43.0 to 0.44.0
@@ -69,2 +69,3 @@ var | ||
this.urlPlaceholders = {} | ||
this.headers = {} | ||
}; | ||
@@ -135,2 +136,6 @@ | ||
Client.prototype.setHeaders = function(headers) { | ||
this.headers = headers; | ||
}; | ||
Client.prototype.request = function(method, options, body, cb) { | ||
@@ -197,2 +202,5 @@ const callerStack = new Error().stack | ||
} | ||
if(this.headers) { | ||
_.assign(reqParams.headers, this.headers); | ||
} | ||
if(options.headers) { | ||
@@ -199,0 +207,0 @@ _.assign(reqParams.headers, options.headers); |
{ | ||
"name": "eh-api-client", | ||
"version": "0.43.0", | ||
"version": "0.44.0", | ||
"description": "Node.js rest client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
86525
2119