Skip to content

Commit b94ff0e

Browse files
committed
style: reformat code with prettier, organize imports
1 parent 6698a76 commit b94ff0e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/APIClient.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { WebSocket } from 'ws';
21
import { Writable } from 'stream';
2+
import { WebSocket } from 'ws';
33
import type {
44
APICommand,
55
APIError,
@@ -68,7 +68,11 @@ export class APIClient {
6868
const RequestTimeout = 408;
6969
const ServiceUnavailable = 503;
7070
const CfRequestTimeout = 524;
71-
if (res.statusCode === ServiceUnavailable || res.statusCode === RequestTimeout || res.statusCode === CfRequestTimeout) {
71+
if (
72+
res.statusCode === ServiceUnavailable ||
73+
res.statusCode === RequestTimeout ||
74+
res.statusCode === CfRequestTimeout
75+
) {
7276
console.warn(
7377
`Connection to ${this.server} failed: ${res.statusMessage ?? ''} (${res.statusCode}).`,
7478
);

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ import { parseConfig } from './config.js';
1212
import { idfProjectConfig } from './esp/idfProjectConfig.js';
1313
import { cliHelp } from './help.js';
1414
import { loadChips } from './loadChips.js';
15+
import { WokwiMCPServer } from './mcp/MCPServer.js';
1516
import { initProjectWizard } from './project/initProjectWizard.js';
1617
import { readVersion } from './readVersion.js';
1718
import { DelayCommand } from './scenario/DelayCommand.js';
1819
import { ExpectPinCommand } from './scenario/ExpectPinCommand.js';
1920
import { SetControlCommand } from './scenario/SetControlCommand.js';
21+
import { TakeScreenshotCommand } from './scenario/TakeScreenshotCommand.js';
2022
import { WaitSerialCommand } from './scenario/WaitSerialCommand.js';
2123
import { WriteSerialCommand } from './scenario/WriteSerialCommand.js';
2224
import { uploadFirmware } from './uploadFirmware.js';
23-
import { TakeScreenshotCommand } from './scenario/TakeScreenshotCommand.js';
24-
import { WokwiMCPServer } from './mcp/MCPServer.js';
2525

2626
const millis = 1_000_000;
2727

0 commit comments

Comments
 (0)