diff --git a/package-lock.json b/package-lock.json index 77ed8a4..9d50682 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7007,9 +7007,9 @@ "integrity": "sha1-yrEPtJCeRByChC6v4a1kbIGARBA=" }, "typescript": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.3.4.tgz", - "integrity": "sha1-PTgyGCgjHkNPKHUUlZw3qCtin0I=", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.4.0.tgz", + "integrity": "sha1-rvWo1AS+ujatM5q/B53d3/+6ht0=", "dev": true }, "uglify-js": { diff --git a/package.json b/package.json index cfc1afa..00d0dc2 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "ts-helpers": "^1.1.2", "tslint": "^5.4.3", "tslint-loader": "^3.4.3", - "typescript": "^2.3.4", + "typescript": "^2.4.0", "url-loader": "^0.5.8", "webpack": "^3.0.0", "webpack-dev-server": "^2.5.0", diff --git a/web/app/shared/scalar.service.ts b/web/app/shared/scalar.service.ts index abb2cbb..7d57ba1 100644 --- a/web/app/shared/scalar.service.ts +++ b/web/app/shared/scalar.service.ts @@ -40,7 +40,7 @@ export class ScalarService { this.callAction("close_scalar", {}); } - private callAction(action, payload) { + private callAction(action, payload): Promise { let requestKey = randomString({length: 20}); return new Promise((resolve, reject) => { if (!window.opener) { diff --git a/webpack.config.js b/webpack.config.js index 14ae6af..4ac4b0b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -121,6 +121,7 @@ module.exports = function () { config.devServer = { contentBase: './web/public', historyApiFallback: true, + disableHostCheck: true, quiet: true, stats: 'minimal', proxy: {