Skip to content

Commit fd6a98e

Browse files
committed
dependencies update
1 parent 5c8acec commit fd6a98e

File tree

6 files changed

+552
-492
lines changed

6 files changed

+552
-492
lines changed

package.json

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "electron-mail",
33
"description": "Unofficial desktop app for ProtonMail and Tutanota E2EE email providers",
4-
"version": "3.7.1",
4+
"version": "3.7.2",
55
"author": "Vladimir Yakovlev <[email protected]>",
66
"license": "MIT",
77
"homepage": "https://github.com/vladimiry/ElectronMail",
@@ -100,12 +100,12 @@
100100
"asap-es": "1.3.3",
101101
"class-transformer": "0.2.3",
102102
"class-transformer-validator": "0.7.1",
103-
"class-validator": "0.9.1",
103+
"class-validator": "0.10.0",
104104
"color-fns": "0.1.1",
105105
"compare-versions": "3.5.1",
106106
"electron-log": "3.0.7",
107107
"electron-rpc-api": "6.0.0-beta5",
108-
"electron-unhandled": "2.2.0",
108+
"electron-unhandled": "3.0.0",
109109
"fast-glob": "3.0.4",
110110
"fs-extra": "8.1.0",
111111
"fs-json-store": "2.3.1",
@@ -129,31 +129,31 @@
129129
"spellchecker": "3.7.0",
130130
"ts-deferred": "1.0.4",
131131
"tslib": "1.10.0",
132-
"uuid": "3.3.2",
132+
"uuid": "3.3.3",
133133
"valid-url": "1.0.9"
134134
},
135135
"devDependencies": {
136-
"@angular-devkit/build-optimizer": "0.802.1",
137-
"@angular/animations": "8.2.0",
138-
"@angular/cdk": "8.1.2",
139-
"@angular/common": "8.2.0",
140-
"@angular/compiler": "8.2.0",
141-
"@angular/compiler-cli": "8.2.0",
142-
"@angular/core": "8.2.0",
143-
"@angular/forms": "8.2.0",
144-
"@angular/language-service": "8.2.0",
145-
"@angular/platform-browser": "8.2.0",
146-
"@angular/platform-browser-dynamic": "8.2.0",
147-
"@angular/router": "8.2.0",
136+
"@angular-devkit/build-optimizer": "0.803.0",
137+
"@angular/animations": "8.2.3",
138+
"@angular/cdk": "8.1.3",
139+
"@angular/common": "8.2.3",
140+
"@angular/compiler": "8.2.3",
141+
"@angular/compiler-cli": "8.2.3",
142+
"@angular/core": "8.2.3",
143+
"@angular/forms": "8.2.3",
144+
"@angular/language-service": "8.2.3",
145+
"@angular/platform-browser": "8.2.3",
146+
"@angular/platform-browser-dynamic": "8.2.3",
147+
"@angular/router": "8.2.3",
148148
"@email-securely-app/import-sort-style": "0.1.0",
149149
"@expo/spawn-async": "1.5.0",
150-
"@ng-select/ng-select": "3.0.6",
150+
"@ng-select/ng-select": "3.0.7",
151151
"@ngrx/effects": "8.2.0",
152152
"@ngrx/router-store": "8.2.0",
153153
"@ngrx/store": "8.2.0",
154-
"@ngtools/webpack": "8.2.0",
154+
"@ngtools/webpack": "8.3.0",
155155
"@octokit/rest": "16.28.7",
156-
"@types/angular": "1.6.55",
156+
"@types/angular": "1.6.56",
157157
"@types/archiver": "3.0.0",
158158
"@types/byline": "4.2.31",
159159
"@types/debug": "4.1.5",
@@ -169,13 +169,13 @@
169169
"@types/mini-css-extract-plugin": "0.8.0",
170170
"@types/mithril": "2.0.0",
171171
"@types/mkdirp": "0.5.2",
172-
"@types/node": "12.7.1",
172+
"@types/node": "12.7.2",
173173
"@types/node-fetch": "2.5.0",
174174
"@types/oboe": "2.0.28",
175175
"@types/path-is-inside": "1.0.0",
176176
"@types/postcss-url": "8.0.1",
177177
"@types/ps-tree": "1.1.0",
178-
"@types/ramda": "0.26.19",
178+
"@types/ramda": "0.26.21",
179179
"@types/randomstring": "1.1.6",
180180
"@types/rimraf": "2.0.2",
181181
"@types/rolling-rate-limiter": "0.1.0",
@@ -190,52 +190,52 @@
190190
"@types/uuid": "3.4.5",
191191
"@types/valid-url": "1.0.2",
192192
"@types/webdriverio": "4.13.3",
193-
"@types/webpack": "4.32.1",
193+
"@types/webpack": "4.39.1",
194194
"@types/webpack-dev-server": "3.1.7",
195195
"@types/webpack-env": "1.14.0",
196196
"@types/webpack-merge": "4.1.5",
197197
"@types/webpack-node-externals": "1.6.3",
198-
"@typescript-eslint/eslint-plugin": "1.13.0",
199-
"@typescript-eslint/parser": "1.13.0",
198+
"@typescript-eslint/eslint-plugin": "2.0.0",
199+
"@typescript-eslint/parser": "2.0.0",
200200
"app-builder-lib": "21.2.0",
201201
"archiver": "3.1.1",
202-
"ava": "2.2.0",
202+
"ava": "2.3.0",
203203
"awesome-typescript-loader": "5.2.1",
204204
"bootstrap": "4.3.1",
205205
"byline": "5.0.0",
206206
"cache-loader": "4.1.0",
207207
"chalk": "2.4.2",
208-
"circular-dependency-plugin": "5.1.0",
208+
"circular-dependency-plugin": "5.2.0",
209209
"codelyzer": "5.1.0",
210-
"core-js": "3.2.0",
210+
"core-js": "3.2.1",
211211
"cpx": "1.5.0",
212212
"cross-env": "5.2.0",
213213
"cross-spawn": "6.0.5",
214214
"css-loader": "3.2.0",
215215
"cssnano": "4.1.10",
216-
"electron": "6.0.1",
216+
"electron": "6.0.4",
217217
"electron-builder": "21.2.0",
218218
"escape-string-regexp": "2.0.0",
219-
"eslint": "6.1.0",
219+
"eslint": "6.2.2",
220220
"exports-loader": "0.7.0",
221221
"file-loader": "4.2.0",
222222
"font-awesome": "4.7.0",
223223
"html-loader": "0.5.5",
224224
"html-webpack-plugin": "4.0.0-beta.2",
225-
"husky": "3.0.3",
225+
"husky": "3.0.4",
226226
"immer": "3.2.0",
227227
"import-sort-cli": "6.0.0",
228228
"import-sort-parser-typescript": "6.0.0",
229229
"jasmine": "3.4.0",
230230
"karma": "4.2.0",
231-
"karma-chrome-launcher": "3.0.0",
232-
"karma-firefox-launcher": "1.1.0",
231+
"karma-chrome-launcher": "3.1.0",
232+
"karma-firefox-launcher": "1.2.0",
233233
"karma-jasmine": "2.0.1",
234234
"karma-mocha-reporter": "2.2.5",
235235
"karma-sourcemap-loader": "0.3.7",
236236
"karma-webpack": "4.0.2",
237237
"less-loader": "5.0.0",
238-
"lint-staged": "9.2.1",
238+
"lint-staged": "9.2.4",
239239
"mini-css-extract-plugin": "0.8.0",
240240
"mkdirp": "0.5.1",
241241
"ndx": "1.0.2",
@@ -254,7 +254,7 @@
254254
"randomstring": "1.1.5",
255255
"resolve-url-loader": "3.1.0",
256256
"rewiremock": "3.13.7",
257-
"sass": "1.22.9",
257+
"sass": "1.22.10",
258258
"sass-lint": "1.13.1",
259259
"sass-loader": "https://github.com/webpack-contrib/sass-loader#e279f2a129eee0bd0b624b5acd498f23a81ee35e",
260260
"script-loader": "0.7.2",
@@ -268,20 +268,20 @@
268268
"to-string-loader": "1.1.5",
269269
"ts-node": "8.3.0",
270270
"tsconfig-paths": "3.8.0",
271-
"tslint": "5.18.0",
271+
"tslint": "5.19.0",
272272
"tslint-consistent-codestyle": "1.15.1",
273273
"tslint-eslint-rules": "5.4.0",
274274
"tslint-rules-bunch": "0.0.8",
275275
"type-fest": "0.7.1",
276-
"typescript": "3.5.3",
276+
"typescript": "3.6.1-rc",
277277
"uglifyjs-webpack-plugin": "2.2.0",
278278
"url-loader": "2.1.0",
279-
"webpack": "4.39.1",
280-
"webpack-cli": "3.3.6",
281-
"webpack-dev-server": "3.7.2",
279+
"webpack": "4.39.2",
280+
"webpack-cli": "3.3.7",
281+
"webpack-dev-server": "3.8.0",
282282
"webpack-merge": "4.2.1",
283283
"webpack-node-externals": "1.7.2",
284-
"zone.js": "0.9.1"
284+
"zone.js": "0.10.2"
285285
},
286286
"resolutions": {
287287
"*/**/builder-util-runtime": "8.3.0",

packages/mithril-stub/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mithril",
3-
"version": "2.0.0",
3+
"version": "2.0.2",
44
"main": "index.js",
55
"license": "MIT"
66
}

src/electron-main/database/serialization.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ const bufferToStream = (buffer: Buffer): Readable => {
5151
};
5252

5353
export class SerializationAdapter {
54-
public readonly read: <T extends FsDb>(data: Buffer) => Promise<T>;
54+
public readonly read: (data: Buffer) => Promise<FsDb>;
5555

56-
public readonly write: <T extends FsDb>(data: ReadonlyDeep<T>) => Promise<Buffer>;
56+
public readonly write: (data: ReadonlyDeep<FsDb>) => Promise<Buffer>;
5757

5858
private logger = curryFunctionMembers(_logger, "[src/electron-main/database/serialization]", "[SerializationAdapter]");
5959

@@ -62,15 +62,15 @@ export class SerializationAdapter {
6262

6363
const encryptionAdapter = new EncryptionAdapterBundle.EncryptionAdapter(input);
6464

65-
this.read = async <T extends FsDb>(data: Buffer) => {
65+
this.read = async (data: Buffer) => {
6666
this.logger.info(`read() buffer.length: ${data.length}`);
6767

6868
const {header: {serialization}} = persistencePartsUtil.split(data);
6969
const decryptedData = await encryptionAdapter.read(data);
7070

7171
if (serialization && serialization.type === "msgpack") {
7272
this.logger.verbose(`"msgpack.decode" start`);
73-
const decoded = msgpack.decode(decryptedData) as T;
73+
const decoded = msgpack.decode(decryptedData) as FsDb;
7474
this.logger.verbose(`"msgpack.decode" end`);
7575
return decoded;
7676
}

src/electron-preload/webview/tutanota/lib/database/mail.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ export async function buildMails(mails: Rest.Model.Mail[]): Promise<DatabaseMode
1919
// or server will response with timeout error on "/rest/tutanota/mailbody/" request
2020
await Rest.fetchMultipleEntities(Rest.Model.MailBodyTypeRef, null, mails.map(({body}) => body), 20),
2121
await (async () => {
22-
const attachmentsIds = mails.reduce((accumulator: typeof mail.attachments, mail) => [...accumulator, ...mail.attachments], []);
22+
const attachmentsIds = mails.reduce(
23+
(accumulator: Unpacked<typeof mails>["attachments"], mail) => [...accumulator, ...mail.attachments],
24+
[],
25+
);
2326
const attachmentsMap = mapBy(attachmentsIds, (_id) => resolveListId({_id}));
2427
const attachments: Rest.Model.File[] = [];
2528

src/web/browser-window/app/_notification/notification-item.component.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {ChangeDetectionStrategy, Component, EventEmitter, Inject, Input, LOCALE_ID, Output} from "@angular/core";
1+
import {ChangeDetectionStrategy, Component, EventEmitter, Input, Output} from "@angular/core";
22
import {formatDate} from "@angular/common";
33

44
import {NotificationItem} from "src/web/browser-window/app/store/actions/notification";
@@ -18,6 +18,9 @@ export class NotificationItemComponent {
1818
@Output()
1919
removeHandler = new EventEmitter<NotificationItem>();
2020

21+
// TODO move to constructor arg with "@Inject(LOCALE_ID)"
22+
private locale = "en-US";
23+
2124
private _item!: NotificationItem;
2225

2326
@Input()
@@ -40,10 +43,7 @@ export class NotificationItemComponent {
4043
);
4144
}
4245

43-
constructor(
44-
@Inject(LOCALE_ID)
45-
private locale: string,
46-
) {}
46+
constructor() {}
4747

4848
remove() {
4949
this.removeHandler.emit(this._item);

0 commit comments

Comments
 (0)