@equinor/fusion
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -15,4 +15,6 @@ import BaseApiClient from './BaseApiClient'; | ||
const url = this.resourceCollections.people.searchPersons(query); | ||
return await this.httpClient.getAsync(url); | ||
return await this.httpClient.getAsync(url, { | ||
headers: { 'api-version': '2.0' }, | ||
}); | ||
} | ||
} |
@@ -23,4 +23,6 @@ import BaseResourceCollection from './BaseResourceCollection'; | ||
searchPersons(query) { | ||
return combineUrls(this.getBaseUrl(), `persons?query=${query}`); | ||
const oDataQuery = buildQuery({ search: query }); | ||
const url = combineUrls(this.getBaseUrl(), 'persons'); | ||
return `${url}${oDataQuery}`; | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
declare const _default: "0.3.4"; | ||
declare const _default: "0.3.6"; | ||
export default _default; |
@@ -1,1 +0,1 @@ | ||
export default '0.3.4'; | ||
export default '0.3.6'; |
{ | ||
"name": "@equinor/fusion", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"description": "Everything a Fusion app needs to communicate with the core", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
169147
4025