Skip to content

Commit 7f0fc11

Browse files
committed
apply prettier changes
1 parent 1b04111 commit 7f0fc11

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/helpers.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Secret {
3434
}
3535

3636
export function makeSecret(s: string) {
37-
return new Secret(s) as any as string;
37+
return (new Secret(s) as any) as string;
3838
}
3939

4040
export function isSecret(s: string) {
@@ -64,10 +64,10 @@ export function parseNotarizationInfo(info: string): NotarizationInfo {
6464
}
6565
};
6666
matchToProperty('uuid', /\n *RequestUUID: (.+?)\n/);
67-
matchToProperty('date', /\n *Date: (.+?)\n/, (d) => new Date(d));
67+
matchToProperty('date', /\n *Date: (.+?)\n/, d => new Date(d));
6868
matchToProperty('status', /\n *Status: (.+?)\n/);
6969
matchToProperty('logFileUrl', /\n *LogFileURL: (.+?)\n/);
70-
matchToProperty('statusCode', /\n *Status Code: (.+?)\n/, (n) => parseInt(n, 10) as any);
70+
matchToProperty('statusCode', /\n *Status Code: (.+?)\n/, n => parseInt(n, 10) as any);
7171
matchToProperty('statusMessage', /\n *Status Message: (.+?)\n/);
7272

7373
if (out.logFileUrl === '(null)') {
@@ -78,5 +78,5 @@ export function parseNotarizationInfo(info: string): NotarizationInfo {
7878
}
7979

8080
export function delay(ms: number): Promise<void> {
81-
return new Promise((resolve) => setTimeout(resolve, ms));
81+
return new Promise(resolve => setTimeout(resolve, ms));
8282
}

src/notarytool.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export async function isNotaryToolAvailable(notarytoolPath?: string) {
7272

7373
export async function notarizeAndWaitForNotaryTool(opts: NotarizeOptions) {
7474
d('starting notarize process for app:', opts.appPath);
75-
return await withTempDir(async (dir) => {
75+
return await withTempDir(async dir => {
7676
const fileExt = path.extname(opts.appPath);
7777
let filePath;
7878
if (fileExt === '.dmg' || fileExt === '.pkg') {

src/spawn.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const spawn = (
1818
'spawning cmd:',
1919
cmd,
2020
'args:',
21-
args.map((arg) => (isSecret(arg) ? '*********' : arg)),
21+
args.map(arg => (isSecret(arg) ? '*********' : arg)),
2222
'opts:',
2323
opts,
2424
);
@@ -28,10 +28,10 @@ export const spawn = (
2828
child.stdout!.on('data', dataHandler);
2929
child.stderr!.on('data', dataHandler);
3030
return new Promise<SpawnResult>((resolve, reject) => {
31-
child.on('error', (err) => {
31+
child.on('error', err => {
3232
reject(err);
3333
});
34-
child.on('exit', (code) => {
34+
child.on('exit', code => {
3535
d(`cmd ${cmd} terminated with code: ${code}`);
3636
resolve({
3737
code,

src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ export interface NotaryToolNotarizeAppOptions {
101101
* Options for notarizing your Electron app with `notarytool`.
102102
* @category Core
103103
*/
104-
export type NotarizeOptions = NotaryToolNotarizeAppOptions & NotaryToolCredentials;
104+
export type NotarizeOptions = NotaryToolNotarizeAppOptions & NotaryToolCredentials;

0 commit comments

Comments
 (0)