penneo-js-sdk
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -37,6 +37,10 @@ 'use strict'; | ||
value: function getAuthHeaders() { | ||
var headers = { | ||
'X-Auth-Token': this._token | ||
}; | ||
var headers = {}; | ||
if (this._token) { | ||
headers['X-Auth-Token'] = this._token; | ||
} | ||
headers['X-Requested-With'] = "XHttpRequest"; | ||
var mergedHeaders = (0, _objectAssign2['default'])({}, headers, this.headers); | ||
@@ -43,0 +47,0 @@ return mergedHeaders; |
{ | ||
"name": "penneo-js-sdk", | ||
"title": "Penneo - Javascript SDK", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Penneo Javascript SDK", | ||
@@ -6,0 +6,0 @@ "author": "Jesús Otero <jo@penneo.com> - http://penneo.com", |
@@ -15,6 +15,10 @@ import axios from 'axios'; | ||
getAuthHeaders() { | ||
let headers = { | ||
'X-Auth-Token': this._token | ||
}; | ||
let headers = {}; | ||
if (this._token) { | ||
headers['X-Auth-Token'] = this._token; | ||
} | ||
headers['X-Requested-With'] = "XHttpRequest"; | ||
let mergedHeaders = assign({}, headers, this.headers); | ||
@@ -21,0 +25,0 @@ return mergedHeaders; |
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
33803
423