@ambassify/ambassify-client
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -41,3 +41,4 @@ 'use strict'; | ||
var tokenType = options.tokenType, | ||
var _options$tokenType = options.tokenType, | ||
tokenType = _options$tokenType === undefined ? 'Bearer' : _options$tokenType, | ||
headers = options.headers, | ||
@@ -61,3 +62,3 @@ fetchOptions = options.fetchOptions; | ||
headers = (0, _extends3.default)({ | ||
authorization: (tokenType || 'Bearer') + ' ' + options.token | ||
authorization: tokenType + ' ' + options.token | ||
}, headers); | ||
@@ -64,0 +65,0 @@ |
{ | ||
"name": "@ambassify/ambassify-client", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Base API client library for all Ambassify clients", | ||
@@ -45,3 +45,3 @@ "engines": { | ||
"homepage": "https://github.com/ambassify/api-clients#readme", | ||
"gitHead": "51c8d3a4d1e600b650e214ae0cc8efc9478e7c9b" | ||
"gitHead": "ded10788e75d3a295643e09e767a8bb12d24c70a" | ||
} |
@@ -12,3 +12,3 @@ const FetchApi = require('@ambassify/fetch-api'); | ||
let { tokenType, headers, fetchOptions } = options; | ||
let { tokenType = 'Bearer', headers, fetchOptions } = options; | ||
@@ -30,3 +30,3 @@ /** | ||
headers = { | ||
authorization: `${tokenType || 'Bearer'} ${options.token}`, | ||
authorization: `${tokenType} ${options.token}`, | ||
...headers | ||
@@ -33,0 +33,0 @@ }; |
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
6036
98