fix: use stapps core version to compare with backends' core version

Note: not app version (e.g. 2.0.0).

Closes #77
This commit is contained in:
Jovan Krunić
2020-11-27 15:36:55 +01:00
parent 072204b748
commit 66b8720da0
4 changed files with 18 additions and 7 deletions

View File

@@ -13,18 +13,19 @@
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {
HTTP_INTERCEPTORS,
HttpClient,
HttpEvent,
HttpHandler,
HttpInterceptor,
HttpRequest,
HttpResponse,
HTTP_INTERCEPTORS,
} from '@angular/common/http';
import {Injectable} from '@angular/core';
import {SCIndexResponse, SCSettingInputType, SCThingOriginType, SCThingType} from '@openstapps/core';
import {Observable, of} from 'rxjs';
import {delay, map} from 'rxjs/operators';
import {dependencies} from '../../../package.json';
import {facetsMock} from './data/sample-facets';
import {SampleThings} from './data/sample-things';
@@ -268,7 +269,7 @@ export const sampleIndexResponse: SCIndexResponse = {
],
},
backend: {
SCVersion: '2.0.0',
SCVersion: dependencies['@openstapps/core'],
externalRequestTimeout: 5000,
hiddenTypes: [
SCThingType.DateSeries,