Skip to content

Commit 62ec908

Browse files
author
Piotr Paulski
committed
Fix pretty issues.
1 parent 6729ad1 commit 62ec908

File tree

7 files changed

+15
-24
lines changed

7 files changed

+15
-24
lines changed

rollup.config.mjs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,20 +110,25 @@ const bundleDependency = (
110110
});
111111

112112
export default [
113-
bundleDependency('./build/src/third_party/index.js',
113+
bundleDependency(
114+
'./build/src/third_party/index.js',
114115
{
115116
inlineDynamicImports: true,
116117
},
117118
(source, importer, _isResolved) => {
118-
if (source === 'yargs' && importer && importer.includes('puppeteer-core')) {
119+
if (
120+
source === 'yargs' &&
121+
importer &&
122+
importer.includes('puppeteer-core')
123+
) {
119124
return true;
120125
}
121126

122127
const existingExternals = ['./bidi.js', '../bidi/bidi.js'];
123128
if (existingExternals.includes(source)) {
124129
return true;
125130
}
126-
131+
127132
return false;
128133
},
129134
),

src/McpContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import path from 'node:path';
99

1010
import type {ListenerMap} from './PageCollector.js';
1111
import {NetworkCollector, PageCollector} from './PageCollector.js';
12-
import type {Debugger} from './third_party/index.js';
1312
import {Locator} from './third_party/index.js';
1413
import type {
1514
Browser,
1615
ConsoleMessage,
16+
Debugger,
1717
Dialog,
1818
ElementHandle,
1919
HTTPRequest,

src/McpResponse.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ import {
1717
} from './formatters/networkFormatter.js';
1818
import {formatA11ySnapshot} from './formatters/snapshotFormatter.js';
1919
import type {McpContext} from './McpContext.js';
20-
import type {
21-
ImageContent,
22-
TextContent,
23-
} from './third_party/index.js';
2420
import type {
2521
ConsoleMessage,
22+
ImageContent,
2623
ResourceType,
24+
TextContent,
2725
} from './third_party/index.js';
2826
import {handleDialog} from './tools/pages.js';
2927
import type {ImageContentData, Response} from './tools/ToolDefinition.js';

src/formatters/networkFormatter.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66

77
import {isUtf8} from 'node:buffer';
88

9-
import type {
10-
HTTPRequest,
11-
HTTPResponse,
12-
} from '../third_party/index.js';
9+
import type {HTTPRequest, HTTPResponse} from '../third_party/index.js';
1310

1411
const BODY_CONTEXT_SIZE_LIMIT = 10000;
1512

src/tools/ToolDefinition.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66

77
import type {TextSnapshotNode} from '../McpContext.js';
88
import {zod} from '../third_party/index.js';
9-
import type {
10-
Dialog,
11-
ElementHandle,
12-
Page,
13-
} from '../third_party/index.js';
9+
import type {Dialog, ElementHandle, Page} from '../third_party/index.js';
1410
import type {TraceResult} from '../trace-processing/parse.js';
1511
import type {PaginationOptions} from '../utils/types.js';
1612

src/tools/emulation.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
import {zod} from '../third_party/index.js';
8-
import {PredefinedNetworkConditions} from '../third_party/index.js';
7+
import {zod,PredefinedNetworkConditions} from '../third_party/index.js';
98

109
import {ToolCategories} from './categories.js';
1110
import {defineTool} from './ToolDefinition.js';

src/tools/script.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55
*/
66

77
import {zod} from '../third_party/index.js';
8-
import type {
9-
Frame,
10-
JSHandle,
11-
Page,
12-
} from '../third_party/index.js';
8+
import type {Frame, JSHandle, Page} from '../third_party/index.js';
139

1410
import {ToolCategories} from './categories.js';
1511
import {defineTool} from './ToolDefinition.js';

0 commit comments

Comments
 (0)