Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed May 21, 2020
1 parent 51294eb commit 8314b53
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 157 deletions.
30 changes: 15 additions & 15 deletions packages/altair-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"test:watch": "ng test",
"prepare": "npm run generate-settings-schema-validator && node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ng build --outputHashing=none --prod --aot --stats-json",
"test-build": "ng lint && npm run build && npm run test-single-run",
"postinstall": "ngcc && npm run generate-settings-schema-validator",
"postinstall": "npm run generate-settings-schema-validator",
"lint": "ng lint",
"e2e": "ng e2e",
"e2e:ci": "ng e2e --webdriver-update=false",
Expand All @@ -38,11 +38,11 @@
"@angular/router": "^9.1.9",
"@beyerleinf/ngx-dnd": "^8.0.3",
"@ctrl/ngx-codemirror": "^3.1.3",
"@ngrx/effects": "^8.1.0",
"@ngrx/store": "^8.1.0",
"@ngrx/store-devtools": "^8.1.0",
"@ngrx/effects": "^9.1.2",
"@ngrx/store": "^9.1.2",
"@ngrx/store-devtools": "^9.1.2",
"@ngui/auto-complete": "^3.0.0",
"@ngx-translate/core": "^11.0.1",
"@ngx-translate/core": "^12.1.2",
"@ngx-translate/http-loader": "^4.0.0",
"@webcomponents/custom-elements": "^1.4.1",
"angular-feather": "^6.0.10",
Expand All @@ -64,21 +64,21 @@
"mousetrap": "^1.6.3",
"mousetrap-global-bind": "^1.1.0",
"new-github-issue-url": "^0.2.1",
"ng-zorro-antd": "8.5.2",
"ng-zorro-antd": "9.1.2",
"ngrx-store-localstorage": "^9.0.0",
"ngx-contextmenu": "^5.4.0",
"ngx-cookie-service": "^2.2.0",
"ngx-electron": "^2.1.1",
"ngx-markdown": "^8.1.0",
"ngx-pipes": "^2.5.6",
"ngx-markdown": "^9.1.1",
"ngx-pipes": "^2.7.3",
"ngx-popper": "^7.0.0",
"ngx-sortablejs": "^3.1.3",
"ngx-sortablejs": "^3.1.4",
"ngx-take-until-destroy": "^5.4.0",
"ngx-toastr": "^11.0.0",
"ngx-toastr": "^12.0.1",
"popper.js": "^1.15.0",
"prettier": "^1.18.2",
"rxjs": "^6.5.5",
"sortablejs": "^1.10.0-rc3",
"sortablejs": "^1.10.2",
"subscriptions-transport-ws": "^0.9.16",
"sval": "^0.4.6",
"to-snake-case": "^1.0.0",
Expand All @@ -87,7 +87,7 @@
"zone.js": "^0.10.3"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.901.6",
"@angular-devkit/build-angular": "^0.901.6",
"@angular/compiler": "^9.1.9",
"@angular/compiler-cli": "^9.1.9",
"@types/chrome": "^0.0.90",
Expand All @@ -108,7 +108,7 @@
"babel-preset-react": "^6.24.1",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"codelyzer": "^5.1.0",
"codelyzer": "^5.2.2",
"jasmine-core": "^3.4.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^4.2.0",
Expand All @@ -120,11 +120,11 @@
"ncp": "^2.0.0",
"ngrx-store-freeze": "^0.2.0",
"protractor": "^5.4.2",
"rxjs-tslint-rules": "^4.24.3",
"rxjs-tslint-rules": "^4.32.0",
"start-server-and-test": "^1.10.6",
"ts-mocks": "^2.6.1",
"ts-node": "^8.3.0",
"tslint": "^5.18.0",
"tslint": "^6.1.2",
"typescript": "3.8.3",
"typescript-json-schema": "^0.42.0"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/altair-app/src/app/services/api.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

import { throwError as observableThrowError, Observable } from 'rxjs';
import { throwError as observableThrowError, Observable } from 'rxjs';

import { map, catchError } from 'rxjs/operators';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { HttpClient, HttpHeaders, HttpResponse } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { debug } from 'app/utils/logger';
import { IDictionary } from 'app/interfaces/shared';
Expand All @@ -21,7 +21,7 @@ export class ApiService {

}

private checkForError(res: Response): Response {
private checkForError(res: HttpResponse<any>): HttpResponse<any> {
if (res.status >= 200 && res.status < 300) {
return res;
} else {
Expand Down
15 changes: 2 additions & 13 deletions packages/altair-app/src/app/services/gql/gql.service.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

import {throwError as observableThrowError, Observable, of } from 'rxjs';

import {map, catchError, tap} from 'rxjs/operators';
import { HttpHeaders, HttpClient, HttpResponse, HttpParams, HttpRequest, HttpErrorResponse } from '@angular/common/http';
import { map, catchError } from 'rxjs/operators';
import { HttpHeaders, HttpClient, HttpResponse, HttpParams, HttpErrorResponse } from '@angular/common/http';
import { Injectable } from '@angular/core';

// import * as prettier from 'prettier/standalone';
Expand Down Expand Up @@ -85,17 +85,6 @@ export class GqlService {
this.setHeaders();
}

private checkForError(res: HttpResponse<any>): HttpResponse<any> {
// debug.log(res);
if (res.status >= 200 && res.status < 300) {
return res;
} else {
const err: any = new Error(res.statusText);
err['response'] = res;
throw err;
}
}

/**
* Send request and return the response object
* @param query
Expand Down
Loading

0 comments on commit 8314b53

Please sign in to comment.