Skip to content

Commit

Permalink
bump to v1.17.0 and build dist
Browse files Browse the repository at this point in the history
  • Loading branch information
laander committed Jul 7, 2017
1 parent b3022a5 commit bb48b11
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 17 deletions.
20 changes: 14 additions & 6 deletions dist/booking.js
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ return /******/ (function(modules) { // webpackBootstrap
// Get library version
var getVersion = function() {

return ("1.16.0");
return ("1.17.0");

};

Expand Down Expand Up @@ -1031,7 +1031,7 @@ return /******/ (function(modules) { // webpackBootstrap
* @type {Object}
*/
var config = {
app: 'demo',
app: '',
apiBaseUrl: 'https://api.timekit.io/',
apiVersion: 'v2',
convertResponseToCamelcase: false,
Expand Down Expand Up @@ -1085,10 +1085,18 @@ return /******/ (function(modules) { // webpackBootstrap
// add http headers if applicable
args.headers = args.headers || headers || {};

if (!args.headers['Timekit-App']) args.headers['Timekit-App'] = config.app;
if (config.inputTimestampFormat) { args.headers['Timekit-InputTimestampFormat'] = config.inputTimestampFormat; }
if (config.outputTimestampFormat) { args.headers['Timekit-OutputTimestampFormat'] = config.outputTimestampFormat; }
if (config.timezone) { args.headers['Timekit-Timezone'] = config.timezone; }
if (!args.headers['Timekit-App'] && config.app) {
args.headers['Timekit-App'] = config.app;
}
if (config.inputTimestampFormat) {
args.headers['Timekit-InputTimestampFormat'] = config.inputTimestampFormat;
}
if (config.outputTimestampFormat) {
args.headers['Timekit-OutputTimestampFormat'] = config.outputTimestampFormat;
}
if (config.timezone) {
args.headers['Timekit-Timezone'] = config.timezone;
}

// add auth headers if not being overwritten by request/asUser
if (!args.headers['Authorization'] && userEmail && userToken) {
Expand Down
2 changes: 1 addition & 1 deletion dist/booking.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit bb48b11

Please sign in to comment.