Skip to content

Commit b87f457

Browse files
committed
Upgrade angular cli to fix security vulnerability
1 parent 8604e75 commit b87f457

File tree

10 files changed

+7677
-1398
lines changed

10 files changed

+7677
-1398
lines changed

package-lock.json

Lines changed: 7644 additions & 1354 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,28 @@
1212
},
1313
"private": true,
1414
"dependencies": {
15-
"@angular-redux/form": "^6.1.1",
16-
"@angular-redux/store": "^6.1.0",
17-
"@angular/animations": "^4.0.0",
18-
"@angular/common": "^4.0.0",
19-
"@angular/compiler": "^4.0.0",
20-
"@angular/core": "^4.0.0",
21-
"@angular/forms": "^4.0.0",
22-
"@angular/http": "^4.0.0",
23-
"@angular/platform-browser": "^4.0.0",
24-
"@angular/platform-browser-dynamic": "^4.0.0",
25-
"@angular/router": "^4.0.0",
26-
"core-js": "^2.4.1",
27-
"immutable": "^3.8.1",
28-
"ngx-bootstrap": "^1.7.1",
29-
"redux": "^3.6.0",
30-
"rxjs": "^5.1.0",
31-
"zone.js": "^0.8.4"
15+
"@angular-redux/form": "6.1.1",
16+
"@angular-redux/store": "6.1.0",
17+
"@angular/animations": "4.0.0",
18+
"@angular/common": "4.0.0",
19+
"@angular/compiler": "4.0.0",
20+
"@angular/core": "4.0.0",
21+
"@angular/forms": "4.0.0",
22+
"@angular/http": "4.0.0",
23+
"@angular/platform-browser": "4.0.0",
24+
"@angular/platform-browser-dynamic": "4.0.0",
25+
"@angular/router": "4.0.0",
26+
"core-js": "2.4.1",
27+
"immutable": "3.8.1",
28+
"ngx-bootstrap": "1.7.1",
29+
"redux": "3.6.0",
30+
"rxjs": "5.1.0",
31+
"zone.js": "0.8.4"
3232
},
3333
"devDependencies": {
34-
"@angular/cli": "1.1.0",
35-
"@angular/compiler-cli": "^4.0.0",
36-
"@angular/language-service": "^4.0.0",
34+
"@angular/cli": "1.6.7",
35+
"@angular/compiler-cli": "4.0.0",
36+
"@angular/language-service": "4.0.0",
3737
"@types/jasmine": "2.5.45",
3838
"@types/node": "~6.0.60",
3939
"codelyzer": "~3.0.1",
@@ -42,9 +42,9 @@
4242
"karma": "~1.7.0",
4343
"karma-chrome-launcher": "~2.1.1",
4444
"karma-cli": "~1.0.1",
45+
"karma-coverage-istanbul-reporter": "1.2.1",
4546
"karma-jasmine": "~1.1.0",
46-
"karma-jasmine-html-reporter": "^0.2.2",
47-
"karma-coverage-istanbul-reporter": "^1.2.1",
47+
"karma-jasmine-html-reporter": "0.2.2",
4848
"protractor": "~5.1.2",
4949
"ts-node": "~3.0.4",
5050
"tslint": "~5.3.2",

src/app/shared/http/error-handling.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11

22
import { API_ERRORS, notifyError } from './error-handling';
3-
import { mockErrorResponse } from '../testing/http-helper';
43
import { NotificationService } from '../../components/notifications/notification.service';
5-
import createSpy = jasmine.createSpy;
64
import { MockNotificationService } from '../testing/mock-helper.spec';
5+
import { mockErrorResponse } from '../testing/http-helper.spec';
76
describe('Http error handler', () => {
87
let service: NotificationService;
98

src/app/shared/services/auth.service.spec.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,11 @@ import {
55
BaseRequestOptions, ConnectionBackend, Http, RequestOptions, ResponseOptions, Response,
66
RequestMethod
77
} from '@angular/http';
8-
import createSpy = jasmine.createSpy;
98
import { Router } from '@angular/router';
10-
import { NgRedux } from '@angular-redux/store';
11-
import { AppState } from 'app/app.state';
12-
import { mockErrorResponse } from '../testing/http-helper';
13-
import { HOVERFLY_ACTIONS } from './hoverfly.service';
149
import { API_ERRORS } from '../http/error-handling';
1510
import { MockNotificationService, MockRouter } from '../testing/mock-helper.spec';
1611
import { NotificationService } from '../../components/notifications/notification.service';
12+
import { mockErrorResponse } from '../testing/http-helper.spec';
1713

1814
describe('Service: Auth', () => {
1915

src/app/shared/services/hoverfly.service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import {
1212
import { HOVERFLY_ACTIONS, HoverflyService } from './hoverfly.service';
1313
import { NgRedux } from '@angular-redux/store';
1414
import { AppState } from '../../app.state';
15-
import { mockErrorResponse } from '../testing/http-helper';
1615
import { API_ERRORS } from '../http/error-handling';
1716
import { NotificationService } from '../../components/notifications/notification.service';
1817
import { MockNotificationService } from '../testing/mock-helper.spec';
18+
import { mockErrorResponse } from '../testing/http-helper.spec';
1919

2020
describe('Service: Hoverfly', () => {
2121

src/app/shared/testing/redux-helper.ts renamed to src/app/shared/testing/redux-helper.spec.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
import { MockNgRedux } from '@angular-redux/store/lib/testing';
21
import { Observable } from 'rxjs/Observable';
32
import { NgRedux } from '@angular-redux/store';
43

5-
export class MockRedux extends MockNgRedux<any> {
4+
export class MockRedux extends NgRedux<any> {
65
constructor(private state: any) {
7-
super();
6+
super(null);
87
}
98

10-
select = () => {
9+
dispatch = () => {
10+
};
11+
12+
select() {
1113
return Observable.of(this.state);
1214
}
1315
}

src/app/views/dashboard/dashboard.component.spec.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ import { DashboardModule } from './dashboard.module';
66
import createSpy = jasmine.createSpy;
77
import { HoverflyService } from '../../shared/services/hoverfly.service';
88
import { NgRedux } from '@angular-redux/store';
9-
import { createMockRedux } from '../../shared/testing/redux-helper';
109
import { fromJS } from 'immutable';
1110
import { Subscription } from 'rxjs/Subscription';
1211
import { By } from '@angular/platform-browser';
13-
import { MockNgRedux } from '@angular-redux/store/lib/testing';
14-
import { click } from '../../shared/testing/click-helper';
12+
import { createMockRedux } from '../../shared/testing/redux-helper.spec';
13+
import { click } from '../../shared/testing/click-helper.spec';
1514

1615

1716
const mockState: Map<any, any> = fromJS(
@@ -51,7 +50,6 @@ describe('Component: Dashboard', () => {
5150
beforeEach(async(() => configureTestModule(mockState)));
5251

5352
beforeEach(() => {
54-
MockNgRedux.reset(); // This seem to be required to use our mock state
5553
fixture = TestBed.createComponent(DashboardComponent);
5654
component = fixture.componentInstance;
5755
hoverflyService = TestBed.get(HoverflyService);
@@ -89,7 +87,6 @@ describe('Component: Dashboard', () => {
8987
});
9088

9189
configureTestModule(stateWithMiddleware).then(() => {
92-
MockNgRedux.reset();
9390
fixture = TestBed.createComponent(DashboardComponent);
9491

9592
const binaryField = fixture.debugElement.query(By.css('#hoverfly-middleware-details-binary code'));
@@ -137,7 +134,6 @@ describe('Component: Dashboard', () => {
137134
});
138135

139136
configureTestModule(stateWithMiddleware).then(() => {
140-
MockNgRedux.reset();
141137
fixture = TestBed.createComponent(DashboardComponent);
142138

143139
const counters = fixture.debugElement.query(By.css('#hoverfly-counters'));

src/app/views/login/login.component.spec.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ import { async, ComponentFixture, ComponentFixtureAutoDetect, fakeAsync, TestBed
55
import { LoginModule } from './login.module';
66
import { RouterTestingModule } from '@angular/router/testing';
77
import { AuthService } from '../../shared/services/auth.service';
8-
import createSpy = jasmine.createSpy;
9-
import { By } from '@angular/platform-browser';
10-
import { click } from '../../shared/testing/click-helper';
11-
import { NgModel } from '@angular/forms';
128
import { AlertModule } from 'ngx-bootstrap';
139
import { MockAuthService } from '../../shared/testing/mock-helper.spec';
1410

0 commit comments

Comments
 (0)