@obelisk/client
Advanced tools
Comparing version 2.8.1 to 2.8.2
@@ -12,2 +12,3 @@ import { Observable } from 'rxjs'; | ||
private _url; | ||
private _apiVersion; | ||
/** | ||
@@ -14,0 +15,0 @@ * Absolute url to use in requests |
@@ -13,2 +13,3 @@ "use strict"; | ||
this.client = client; | ||
this._apiVersion = apiVersion; | ||
this._url = util_1.InternalUtils.norm(client, uri, apiVersion); | ||
@@ -31,3 +32,3 @@ } | ||
util_1.Logger.debug(uri, 'AJAX'); | ||
uri = util_1.InternalUtils.norm(this.client, uri); | ||
uri = util_1.InternalUtils.norm(this.client, uri, this._apiVersion); | ||
const request = { | ||
@@ -34,0 +35,0 @@ responseType: 'json', |
@@ -128,5 +128,4 @@ import { Observable } from "rxjs"; | ||
* Api version of the Obelisk API | ||
* @deprecated apiVersion is no longer used here. They have to be set per endpoint defaulting to 'v1'. | ||
* */ | ||
apiVersion?: string; | ||
apiVersion: string; | ||
/** Authentication Realm */ | ||
@@ -133,0 +132,0 @@ realm: string; |
{ | ||
"name": "@obelisk/client", | ||
"version": "2.8.1", | ||
"version": "2.8.2", | ||
"description": "Typescript client to interact with Obelisk on a higher level than the regular ReST API calls.", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
"jest": "^24.1.0", | ||
"rxjs": "^6.5.2", | ||
"rxjs": "^6.5.3", | ||
"ts-jest": "^22.4.6", | ||
@@ -38,0 +38,0 @@ "typedoc": "^0.14.2", |
2283
87885