Skip to content

Commit c0d119b

Browse files
committed
fix ssri security
1 parent 3892adf commit c0d119b

File tree

9 files changed

+9332
-10472
lines changed

9 files changed

+9332
-10472
lines changed

package-lock.json

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

package.json

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -24,51 +24,52 @@
2424
},
2525
"private": true,
2626
"dependencies": {
27-
"@angular/animations": "5.2.4",
28-
"@angular/common": "5.2.4",
29-
"@angular/compiler": "5.2.4",
30-
"@angular/core": "5.2.4",
31-
"@angular/forms": "5.2.4",
32-
"@angular/http": "5.2.4",
33-
"@angular/platform-browser": "5.2.4",
34-
"@angular/platform-browser-dynamic": "5.2.4",
35-
"@angular/router": "5.2.4",
36-
"@angular/service-worker": "5.2.4",
37-
"@nguniversal/common": "5.0.0-beta.5",
38-
"@nguniversal/express-engine": "5.0.0-beta.5",
39-
"@nguniversal/module-map-ngfactory-loader": "5.0.0-beta.5",
27+
"@angular/animations": "5.2.8",
28+
"@angular/common": "5.2.8",
29+
"@angular/compiler": "5.2.8",
30+
"@angular/core": "5.2.8",
31+
"@angular/forms": "5.2.8",
32+
"@angular/http": "5.2.8",
33+
"@angular/platform-browser": "5.2.8",
34+
"@angular/platform-browser-dynamic": "5.2.8",
35+
"@angular/router": "5.2.8",
36+
"@angular/service-worker": "5.2.8",
37+
"@nguniversal/common": "5.0.0-beta.6",
38+
"@nguniversal/express-engine": "5.0.0-beta.6",
39+
"@nguniversal/module-map-ngfactory-loader": "5.0.0-beta.6",
4040
"@ngx-meta/core": "5.0.0",
4141
"@ngx-translate/core": "9.1.1",
4242
"@ngx-translate/http-loader": "2.0.1",
4343
"cookie-parser": "1.4.3",
4444
"core-js": "2.5.3",
4545
"ngx-cookie-service": "1.0.10",
4646
"rxjs": "5.5.6",
47-
"node-fetch": "2.0.0",
47+
"node-fetch": "2.1.1",
4848
"zone.js": "0.8.20"
4949
},
5050
"devDependencies": {
51-
"@angular/cli": "1.6.8",
52-
"@angular/compiler-cli": "5.2.4",
53-
"@angular/language-service": "5.2.4",
54-
"@angular/platform-server": "5.2.4",
55-
"@ngtools/webpack": "1.9.8",
51+
"@angular/cli": "1.7.3",
52+
"@angular/compiler-cli": "5.2.8",
53+
"@angular/language-service": "5.2.8",
54+
"@angular/platform-server": "5.2.8",
55+
"@ngtools/webpack": "1.10.2",
5656
"@types/jasmine": "2.8.6",
5757
"@types/jasminewd2": "2.0.3",
58-
"@types/node": "9.4.3",
59-
"codelyzer": "4.1.0",
60-
"jasmine-core": "2.99.1",
58+
"@types/node": "9.4.7",
59+
"codelyzer": "4.2.1",
60+
"jasmine-core": "3.1.0",
6161
"jasmine-spec-reporter": "4.2.1",
6262
"karma": "2.0.0",
6363
"karma-chrome-launcher": "2.2.0",
6464
"karma-cli": "1.0.1",
65-
"karma-coverage-istanbul-reporter": "1.4.1",
65+
"karma-coverage-istanbul-reporter": "1.4.2",
6666
"karma-jasmine": "1.1.1",
6767
"karma-jasmine-html-reporter": "0.2.2",
68-
"nodemon": "1.14.12",
69-
"preboot": "6.0.0-beta.1",
68+
"nodemon": "1.17.1",
69+
"preboot": "6.0.0-beta.3",
7070
"protractor": "5.3.0",
7171
"tslint": "5.9.1",
72-
"typescript": "2.6.2"
72+
"typescript": "2.6.2",
73+
"ssri": "5.2.4"
7374
}
74-
}
75+
}

prerender.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import { ROUTES } from './static.paths';
4545
const mainFiles = files.filter(file => file.startsWith('main'));
4646
const hash = mainFiles[0].split('.')[1];
4747
const { AppServerModuleNgFactory, LAZY_MODULE_MAP } = require(`./dist-server/main.${hash}.bundle`);
48-
import { REQUEST, RESPONSE } from '@nguniversal/express-engine/tokens';
48+
import { REQUEST, RESPONSE } from '@nguniversal/express-engine';
4949

5050
const BROWSER_FOLDER = join(process.cwd(), 'static');
5151

server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const mainFiles = files.filter(file => file.startsWith('main'));
3737
const hash = mainFiles[0].split('.')[1];
3838
const { AppServerModuleNgFactory, LAZY_MODULE_MAP } = require(`./dist-server/main.${hash}.bundle`);
3939
import { ngExpressEngine } from '@nguniversal/express-engine';
40-
import { REQUEST, RESPONSE } from '@nguniversal/express-engine/tokens';
40+
import { REQUEST, RESPONSE } from '@nguniversal/express-engine';
4141
const PORT = 4000;
4242

4343
enableProdMode();

src/app/app.browser.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { NgModule } from '@angular/core';
33
import { BrowserModule, BrowserTransferStateModule } from '@angular/platform-browser';
44
// libs
55
import { TransferHttpCacheModule } from '@nguniversal/common';
6-
import { REQUEST } from '@nguniversal/express-engine/tokens';
6+
import { REQUEST } from '@nguniversal/express-engine';
77
// shared
88
import { CookieStorage } from '../forStorage/browser.storage';
99
import { AppStorage } from '../forStorage/universal.inject';

src/app/not-found/not-found.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {RESPONSE} from '@nguniversal/express-engine/tokens';
1+
import {RESPONSE} from '@nguniversal/express-engine';
22
import {Inject, Injectable, Optional} from '@angular/core';
33

44
@Injectable()

src/forStorage/browser.storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
import { Inject, Injectable } from '@angular/core';
3-
import { REQUEST, RESPONSE } from '@nguniversal/express-engine/tokens';
3+
import { REQUEST, RESPONSE } from '@nguniversal/express-engine';
44
import { CookieService } from 'ngx-cookie-service';
55

66
@Injectable()

src/forStorage/server.storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
import { Inject, Injectable } from '@angular/core';
3-
import { REQUEST } from '@nguniversal/express-engine/tokens';
3+
import { REQUEST } from '@nguniversal/express-engine';
44

55
@Injectable()
66
export class UniversalStorage implements Storage {

0 commit comments

Comments
 (0)