Skip to content

Commit 830550e

Browse files
committed
Update some dependencies
1 parent eb4cee6 commit 830550e

File tree

11 files changed

+539
-260
lines changed

11 files changed

+539
-260
lines changed

main/aperture.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const callPlugins = async (method: RecordServiceHook) => Promise.all(recordingPl
5252
})
5353
);
5454
} catch (error) {
55-
showError(error, {title: `Something went wrong while using the plugin “${plugin.prettyName}”`, plugin});
55+
showError(error as any, {title: `Something went wrong while using the plugin “${plugin.prettyName}”`, plugin});
5656
}
5757
}
5858
}));
@@ -147,7 +147,7 @@ export const startRecording = async (options: StartRecordingOptions) => {
147147
});
148148
} catch (error) {
149149
track('recording/stopped/error');
150-
showError(error, {title: 'Recording error', plugin: undefined});
150+
showError(error as any, {title: 'Recording error', plugin: undefined});
151151
past = undefined;
152152
cleanup();
153153
return;
@@ -196,7 +196,7 @@ export const stopRecording = async () => {
196196
filePath = await aperture.stopRecording();
197197
} catch (error) {
198198
track('recording/stopped/error');
199-
showError(error, {title: 'Recording error', plugin: undefined});
199+
showError(error as any, {title: 'Recording error', plugin: undefined});
200200
cleanup();
201201
return;
202202
}

main/conversion.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ export default class Conversion extends (EventEmitter as new () => TypedEventEmi
9696
} catch (error) {
9797
// Ensure we re-try the conversion if it fails
9898
this.conversionProcess = undefined;
99-
if (!error.isCanceled) {
100-
this.emit('error', error);
99+
if (!(error as any)?.isCanceled) {
100+
this.emit('error', error as any);
101101
}
102102

103103
throw error;

main/export.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default class Export extends (EventEmitter as new () => TypedEventEmitter
6464
this.text = 'Export completed';
6565
this.emit('updated', this.data);
6666
} catch (error) {
67-
this.captureError(error);
67+
this.captureError(error as any);
6868
}
6969
});
7070

@@ -163,7 +163,7 @@ export default class Export extends (EventEmitter as new () => TypedEventEmitter
163163
this.process = this._start();
164164
await this.process;
165165
} catch (error) {
166-
this.captureError(error);
166+
this.captureError(error as any);
167167
}
168168
};
169169

main/plugins/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class Plugins extends EventEmitter {
5858
try {
5959
await plugin.content.didInstall?.(plugin.config);
6060
} catch (error) {
61-
showError(error, {plugin} as any);
61+
showError(error as any, {plugin} as any);
6262
}
6363
}
6464

@@ -97,7 +97,7 @@ export class Plugins extends EventEmitter {
9797
this.modifyMainPackageJson(pkg => {
9898
delete pkg.dependencies[name];
9999
});
100-
showError(error);
100+
showError(error as any);
101101
}
102102
}
103103

@@ -112,7 +112,7 @@ export class Plugins extends EventEmitter {
112112
try {
113113
await plugin.content.willUninstall?.(plugin.config);
114114
} catch (error) {
115-
showError(error, {plugin} as any);
115+
showError(error as any, {plugin} as any);
116116
}
117117
}
118118

main/plugins/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class InstalledPlugin extends BasePlugin {
104104
this.config.onDidAnyChange((newValue, oldValue) => this.content.didConfigChange?.(newValue, oldValue, this.config));
105105
}
106106
} catch (error) {
107-
showError(error, {title: `Something went wrong while loading “${pluginName}”`, plugin: this});
107+
showError(error as any, {title: `Something went wrong while loading “${pluginName}”`, plugin: this});
108108

109109
this.content = {};
110110
this.config = new PluginConfig(pluginName, []);
@@ -183,7 +183,7 @@ export class InstalledPlugin extends BasePlugin {
183183
recordPluginServiceState.set(this.getRecordServiceKey(service), true);
184184
}
185185
} catch (error) {
186-
showError(error, {title: `Something went wrong while enabling "${service.title}`, plugin: this});
186+
showError(error as any, {title: `Something went wrong while enabling "${service.title}`, plugin: this});
187187
}
188188
} else {
189189
recordPluginServiceState.set(this.getRecordServiceKey(service), true);

main/recording-history.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export const handleIncompleteRecording = async (recording: ActiveRecording) => {
156156
'-f', 'null', '-'
157157
]);
158158
} catch (error) {
159-
return handleCorruptRecording(recording, error.stderr);
159+
return handleCorruptRecording(recording, (error as any).stderr);
160160
}
161161

162162
return handleRecording(recording);

main/utils/encoding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const getEncoding = async (filePath: string) => {
1111
await execa(ffmpegPath, ['-i', filePath]);
1212
return undefined;
1313
} catch (error) {
14-
return /.*: Video: (.*?) \(.*/.exec(error.stderr)?.[1];
14+
return /.*: Video: (.*?) \(.*/.exec((error as any)?.stderr)?.[1];
1515
}
1616
};
1717

main/utils/fps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const getFps = async (filePath: string) => {
66
await execa(ffmpegPath, ['-i', filePath]);
77
return undefined;
88
} catch (error) {
9-
return /.*, (.*) fp.*/.exec(error.stderr)?.[1];
9+
return /.*, (.*) fp.*/.exec((error as any)?.stderr)?.[1];
1010
}
1111
};
1212

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@sentry/electron": "^2.4.0",
3838
"@sindresorhus/to-milliseconds": "^1.2.0",
3939
"ajv": "^6.12.2",
40-
"aperture": "^6.1.0",
40+
"aperture": "^6.1.1",
4141
"base64-img": "^1.0.4",
4242
"classnames": "^2.2.6",
4343
"clean-stack": "^3.0.1",
@@ -46,14 +46,14 @@
4646
"electron-better-ipc": "^1.1.1",
4747
"electron-log": "^4.3.2",
4848
"electron-next": "^3.1.5",
49-
"electron-notarize": "^1.0.0",
49+
"electron-notarize": "^1.1.1",
5050
"electron-store": "^7.0.2",
5151
"electron-timber": "^0.5.1",
5252
"electron-updater": "^4.3.8",
5353
"electron-util": "^0.14.2",
5454
"ensure-error": "^3.0.1",
5555
"execa": "5.0.0",
56-
"ffmpeg-static": "^4.4.0",
56+
"ffmpeg-static": "^4.4.1",
5757
"gifsicle": "^5.2.0",
5858
"got": "^9.6.0",
5959
"insight": "^0.10.3",
@@ -75,7 +75,7 @@
7575
"p-event": "^4.2.0",
7676
"package-json": "^6.5.0",
7777
"pify": "^5.0.0",
78-
"plist": "^3.0.1",
78+
"plist": "^3.0.4",
7979
"pretty-bytes": "^5.6.0",
8080
"pretty-ms": "^7.0.1",
8181
"prop-types": "^15.7.2",
@@ -98,7 +98,7 @@
9898
"@babel/eslint-parser": "^7.12.16",
9999
"@sindresorhus/tsconfig": "^0.7.0",
100100
"@types/ffmpeg-static": "^3.0.0",
101-
"@types/got": "9.6.11",
101+
"@types/got": "9.6.12",
102102
"@types/insight": "^0.8.0",
103103
"@types/lodash": "^4.14.168",
104104
"@types/module-alias": "^2.0.0",
@@ -110,8 +110,8 @@
110110
"@typescript-eslint/parser": "^4.15.0",
111111
"ava": "^3.15.0",
112112
"babel-eslint": "^10.1.0",
113-
"electron": "12.2.3",
114-
"electron-builder": "^22.13.1",
113+
"electron": "13.6.9",
114+
"electron-builder": "^22.14.13",
115115
"electron-builder-notarize": "^1.4.0",
116116
"eslint-config-xo": "^0.35.0",
117117
"eslint-config-xo-react": "^0.24.0",
@@ -124,8 +124,8 @@
124124
"run-electron": "^1.0.0",
125125
"sinon": "^9.2.4",
126126
"tap-xunit": "^2.4.1",
127-
"ts-node": "^9.1.1",
128-
"type-fest": "^0.21.0",
127+
"ts-node": "^10.4.0",
128+
"type-fest": "^2.11.1",
129129
"typed-emitter": "^1.3.1",
130130
"typescript": "^4.0.3",
131131
"unique-string": "^2.0.0",

test/helpers/video-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const getVideoMetadata = async (path: string): Promise<{
3737
try {
3838
await execa(ffmpegPath, ['-i', path]);
3939
} catch (error) {
40-
const {stderr} = error;
40+
const {stderr} = error as any;
4141
return {
4242
duration: getDuration(stderr),
4343
encoding: getEncoding(stderr)!,

0 commit comments

Comments
 (0)