rest-client-sdk
Advanced tools
Comparing version 0.8.1 to 0.8.2
@@ -172,4 +172,5 @@ Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _urijs=require('urijs');var _urijs2=_interopRequireDefault(_urijs); | ||
var tokenHeaders={ | ||
Authorization:this.sdk.config.authorizationType+' '+accessToken}; | ||
var baseHeaders={ | ||
Authorization:this.sdk.config.authorizationType+' '+accessToken, | ||
'Content-Type':'application/json'}; | ||
@@ -182,5 +183,5 @@ | ||
params.headers=_extends(params.headers,tokenHeaders); | ||
params.headers=_extends(params.headers,baseHeaders); | ||
}else{ | ||
params={headers:tokenHeaders}; | ||
params={headers:baseHeaders}; | ||
} | ||
@@ -187,0 +188,0 @@ |
{ | ||
"name": "rest-client-sdk", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "Rest Client SDK for API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
38985
510