diff --git a/client/package.json b/client/package.json index 85806ec..97f6a2e 100644 --- a/client/package.json +++ b/client/package.json @@ -25,19 +25,19 @@ "@swimlane/ngx-datatable": "^9.2.0", "core-js": "^2.4.1", "nedb": "^1.8.0", - "ngx-electron": "0.0.11", + "ngx-electron": "1.0.2", "rxjs": "^5.4.0", "typescript": "^2.3.3", "zone.js": "^0.8.11" }, "devDependencies": { - "@angular/cli": "^1.0.6", + "@angular/cli": "^1.1.0", "@angular/compiler-cli": "^4.1.3", "@types/nedb": "^1.8.3", "@types/node": "~7.0.22", "codelyzer": "~3.0.1", "concurrently": "^3.4.0", "ts-node": "~3.0.4", - "tslint": "~5.3.2" + "tslint": "~5.4.2" } } diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index 931603f..34918c4 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts @@ -30,6 +30,8 @@ import { SettingsDialogComponent } from './settings/settings-dialog.component'; import { SettingsStore } from './database/settings.store'; +import { settingsFactory } from './settings.factory'; + @NgModule({ declarations: [ AppComponent, @@ -56,7 +58,7 @@ import { SettingsStore } from './database/settings.store'; SettingsStore, { provide: APP_INITIALIZER, - useFactory: (settingsStore: SettingsStore) => () => settingsStore.initSettings(), + useFactory: settingsFactory, deps: [SettingsStore], multi: true } diff --git a/client/src/app/settings.factory.ts b/client/src/app/settings.factory.ts new file mode 100644 index 0000000..16ebf5b --- /dev/null +++ b/client/src/app/settings.factory.ts @@ -0,0 +1,3 @@ +export function settingsFactory(settingsStore) { + return () => settingsStore.initSettings(); +} \ No newline at end of file diff --git a/package.json b/package.json index eea9c50..aba99ab 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "devDependencies": { "concurrently": "^3.4.0", "electron": "^1.6.10", - "electron-builder": "^18.0.1", + "electron-builder": "^18.3.5", "electron-connect": "^0.6.1", "gulp": "^3.9.1" },