@timetac/js-client-library
Advanced tools
Comparing version 0.3.2 to 0.3.3
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const axios_1 = require("axios"); | ||
const DEFAULT_HOST = 'go.timetac.com'; | ||
const DEFAULT_API_VERSION = 3; | ||
@@ -40,6 +41,7 @@ class BaseApi { | ||
getAccountUrl() { | ||
var _a; | ||
if (!this.config.account) { | ||
throw 'Account is not set'; | ||
} | ||
return `${this.config.account}/`; | ||
return `${this.config.https ? 'https' : 'http'}://${(_a = this.config.host) !== null && _a !== void 0 ? _a : DEFAULT_HOST}/${this.config.account}/`; | ||
} | ||
@@ -46,0 +48,0 @@ setAccount(account) { |
{ | ||
"name": "@timetac/js-client-library", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "TimeTac API JS client library", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/TimeTac/js-client-library#readme", |
Sorry, the diff of this file is not supported yet
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
166255
2356