Update dependencies (#344)

* Update angular to 4.2.6

* Update rxjs

* Update webpack

* Update type definitions

* Update tslint
This commit is contained in:
József Farkas
2017-07-09 22:10:47 +02:00
committed by László Monda
parent d06892912f
commit e57a2f8637
14 changed files with 304 additions and 187 deletions

View File

@@ -168,15 +168,15 @@ function sendIpcToWindow(message: string, arg?: any) {
} }
function allowPreRelease() { function allowPreRelease() {
const settings = getAutoUpdateSettings(); const autoUpdateSettings = getAutoUpdateSettings();
return settings && settings.usePreReleaseUpdate; return autoUpdateSettings && autoUpdateSettings.usePreReleaseUpdate;
} }
function checkForUpdateAtStartup() { function checkForUpdateAtStartup() {
const settings = getAutoUpdateSettings(); const autoUpdateSettings = getAutoUpdateSettings();
return settings && settings.checkForUpdateOnStartUp; return autoUpdateSettings && autoUpdateSettings.checkForUpdateOnStartUp;
} }
function getAutoUpdateSettings() { function getAutoUpdateSettings() {

View File

@@ -1,9 +1,9 @@
import { ErrorHandler, Injectable } from '@angular/core'; import { ErrorHandler, Injectable } from '@angular/core';
import { LogService} from '../shared/services/logger.service'; import { LogService } from '../shared/services/logger.service';
@Injectable() @Injectable()
export class ElectronErrorHandlerService implements ErrorHandler { export class ElectronErrorHandlerService implements ErrorHandler {
constructor(private logService: LogService) {} constructor(private logService: LogService) { }
handleError(error: any) { handleError(error: any) {
this.logService.error(error); this.logService.error(error);

View File

@@ -14,7 +14,7 @@ import 'rxjs/add/operator/do';
import { Device, findByIds, InEndpoint, Interface, on, OutEndpoint } from 'usb'; import { Device, findByIds, InEndpoint, Interface, on, OutEndpoint } from 'usb';
import { LogService} from '../shared/services/logger.service'; import { LogService } from '../shared/services/logger.service';
import { Constants } from '../shared/util'; import { Constants } from '../shared/util';
import { UhkDeviceService } from './uhk-device.service'; import { UhkDeviceService } from './uhk-device.service';
@@ -27,8 +27,7 @@ export class UhkLibUsbApiService extends UhkDeviceService implements OnDestroy {
device.deviceDescriptor.idProduct === Constants.PRODUCT_ID; device.deviceDescriptor.idProduct === Constants.PRODUCT_ID;
} }
constructor(zone: NgZone, constructor(zone: NgZone, protected logService: LogService) {
protected logService: LogService) {
super(logService); super(logService);
this.initialize(); this.initialize();

412
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -16,12 +16,12 @@
"devDependencies": { "devDependencies": {
"@ngrx/store-devtools": "3.2.4", "@ngrx/store-devtools": "3.2.4",
"@ngrx/store-log-monitor": "3.0.2", "@ngrx/store-log-monitor": "3.0.2",
"@types/core-js": "0.9.35", "@types/core-js": "0.9.42",
"@types/electron-devtools-installer": "^2.0.2", "@types/electron-devtools-installer": "^2.0.2",
"@types/electron-settings": "^3.0.0", "@types/electron-settings": "^3.0.0",
"@types/file-saver": "0.0.1", "@types/file-saver": "0.0.1",
"@types/jquery": "3.2.1", "@types/jquery": "^3.2.6",
"@types/node": "^6.0.78", "@types/node": "^8.0.9",
"@types/node-hid": "^0.5.2", "@types/node-hid": "^0.5.2",
"@types/usb": "^1.1.3", "@types/usb": "^1.1.3",
"angular2-template-loader": "0.6.2", "angular2-template-loader": "0.6.2",
@@ -44,20 +44,20 @@
"standard-version": "^4.0.0", "standard-version": "^4.0.0",
"stylelint": "^7.12.0", "stylelint": "^7.12.0",
"ts-loader": "^2.0.3", "ts-loader": "^2.0.3",
"tslint": "~5.4.3", "tslint": "~5.5.0",
"webpack": "^2.4.1", "webpack": "^3.1.0",
"webpack-dev-server": "^2.4.4", "webpack-dev-server": "^2.5.1",
"webpack-svgstore-plugin": "4.0.1" "webpack-svgstore-plugin": "4.0.1"
}, },
"dependencies": { "dependencies": {
"@angular/animations": "4.2.3", "@angular/animations": "4.2.6",
"@angular/common": "4.2.3", "@angular/common": "4.2.6",
"@angular/compiler": "4.2.3", "@angular/compiler": "4.2.6",
"@angular/core": "4.2.3", "@angular/core": "4.2.6",
"@angular/forms": "4.2.3", "@angular/forms": "4.2.6",
"@angular/platform-browser": "4.2.3", "@angular/platform-browser": "4.2.6",
"@angular/platform-browser-dynamic": "4.2.3", "@angular/platform-browser-dynamic": "4.2.6",
"@angular/router": "4.2.3", "@angular/router": "4.2.6",
"@ngrx/core": "1.2.0", "@ngrx/core": "1.2.0",
"@ngrx/effects": "2.0.3", "@ngrx/effects": "2.0.3",
"@ngrx/router-store": "^1.2.6", "@ngrx/router-store": "^1.2.6",
@@ -81,7 +81,7 @@
"ngrx-store-freeze": "^0.1.9", "ngrx-store-freeze": "^0.1.9",
"node-hid": "0.5.4", "node-hid": "0.5.4",
"reselect": "3.0.1", "reselect": "3.0.1",
"rxjs": "^5.4.1", "rxjs": "^5.4.2",
"select2": "^4.0.3", "select2": "^4.0.3",
"sudo-prompt": "^7.0.0", "sudo-prompt": "^7.0.0",
"typescript": "2.3.4", "typescript": "2.3.4",

View File

@@ -1,5 +1,3 @@
/// <reference path="../../function.d.ts" />
import { Macro } from '../macro'; import { Macro } from '../macro';
import { UhkBuffer } from '../../uhk-buffer'; import { UhkBuffer } from '../../uhk-buffer';

View File

@@ -1,3 +0,0 @@
interface Function {
name: string;
}

View File

@@ -1,12 +1,12 @@
import { Pipe, PipeTransform } from '@angular/core'; import { Pipe, PipeTransform } from '@angular/core';
import { SafeStyle, DomSanitizer} from '@angular/platform-browser'; import { SafeStyle, DomSanitizer } from '@angular/platform-browser';
@Pipe({ @Pipe({
name: 'safeStyle' name: 'safeStyle'
}) })
export class SafeStylePipe implements PipeTransform { export class SafeStylePipe implements PipeTransform {
constructor(private sanitizer: DomSanitizer) {} constructor(private sanitizer: DomSanitizer) { }
transform(style: string): SafeStyle { transform(style: string): SafeStyle {
return this.sanitizer.bypassSecurityTrustStyle(style); return this.sanitizer.bypassSecurityTrustStyle(style);

View File

@@ -1,3 +1,4 @@
import 'core-js/es7/array';
import 'core-js/es7/object'; import 'core-js/es7/object';
import 'core-js/es7/reflect'; import 'core-js/es7/reflect';
import 'zone.js/dist/zone'; import 'zone.js/dist/zone';

View File

@@ -1,4 +1,4 @@
import {Injectable} from '@angular/core'; import { Injectable } from '@angular/core';
@Injectable() @Injectable()
export class LogService { export class LogService {

View File

@@ -1,7 +1,7 @@
import { Action } from '@ngrx/store'; import { Action } from '@ngrx/store';
import { type } from '../../util'; import { type } from '../../util';
import {Notification} from '../../models/notification'; import { Notification } from '../../models/notification';
const PREFIX = '[app] '; const PREFIX = '[app] ';
@@ -23,7 +23,7 @@ export class AppStartedAction implements Action {
export class ShowNotificationAction implements Action { export class ShowNotificationAction implements Action {
type = ActionTypes.APP_SHOW_NOTIFICATION; type = ActionTypes.APP_SHOW_NOTIFICATION;
constructor(public payload: Notification) {} constructor(public payload: Notification) { }
} }
export type Actions export type Actions

View File

@@ -17,9 +17,6 @@ import { ActionTypes } from '../actions/user-config';
const initialState: UserConfiguration = new UserConfiguration(); const initialState: UserConfiguration = new UserConfiguration();
/* tslint:disable:no-switch-case-fall-through */
// tslint bug: https://github.com/palantir/tslint/issues/1538
export default function (state = initialState, action: Action): UserConfiguration { export default function (state = initialState, action: Action): UserConfiguration {
const changedUserConfiguration: UserConfiguration = Object.assign(new UserConfiguration(), state); const changedUserConfiguration: UserConfiguration = Object.assign(new UserConfiguration(), state);

View File

@@ -1,6 +1,6 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "es5", "target": "es6",
"module": "commonjs", "module": "commonjs",
"moduleResolution": "node", "moduleResolution": "node",
"experimentalDecorators": true, "experimentalDecorators": true,

View File

@@ -8,7 +8,14 @@
"experimentalDecorators": true, "experimentalDecorators": true,
"removeComments": false, "removeComments": false,
"noImplicitAny": true, "noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true "suppressImplicitAnyIndexErrors": true,
"lib": [
"es6",
"es2016.array.include",
"dom",
"dom.iterable",
"scripthost"
]
}, },
"exclude": [ "exclude": [
"./dist", "./dist",