Skip to content

Commit 1b63b21

Browse files
authored
Change the type on DebugService to only expose the VmServiceInterface (#280)
1 parent 8b6cfdb commit 1b63b21

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

dwds/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.2.2
2+
3+
- Change the exposed type on DebugService to VmServiceInterface
4+
15
## 0.2.1
26

37
- Support `setExceptionPauseMode`.

dwds/lib/service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void Function(WebSocketChannel, String) _createNewConnectionHandler(
4545
///
4646
/// Creates a [ChromeProxyService] from an existing Chrome instance.
4747
class DebugService {
48-
final ChromeProxyService chromeProxyService;
48+
final VmServiceInterface chromeProxyService;
4949
final String hostname;
5050
final ServiceExtensionRegistry serviceExtensionRegistry;
5151
final int port;

dwds/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: dwds
2-
version: 0.2.1
2+
version: 0.2.2-dev
33
author: Dart Team <misc@dartlang.org>
44
homepage: https://github.com/dart-lang/webdev/tree/master/dwds
55
description: >-

dwds/test/test_context.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import 'package:webkit_inspection_protocol/webkit_inspection_protocol.dart';
1212
class TestContext {
1313
String appUrl;
1414
DebugService debugService;
15-
ChromeProxyService get chromeProxyService => debugService.chromeProxyService;
15+
ChromeProxyService get chromeProxyService =>
16+
debugService.chromeProxyService as ChromeProxyService;
1617
WipConnection tabConnection;
1718
Process webdev;
1819
WebDriver webDriver;

0 commit comments

Comments
 (0)