webkit_inspection_protocol 0.5.0

  • Readme
  • Changelog
  • Installing
  • 86

webkit_inspection_protocol.dart #

Build Status pub package

What is it? #

The webkit_inspection_protocol package is a client for the Chrome DevTools Protocol (previously called the Webkit Inspection Protocol). It's used to talk to Chrome DevTools based debuggers.

The protocol #

Read more about the protocol here.

Disclaimer #

This is not an official Google product.

webkit_inspection_protocol.dart #

0.5.0 #

  • removed the bin/multiplex.dart binary to the example/ directory
  • remove dependencies on package:args, package:shelf, andpackage:shelf_web_socket`

0.4.2 #

  • Cast HttpClientResponse to Stream<List<int>> in response to SDK breaking change.

0.4.1 #

  • Fix page.reload method.
  • Disable implicit casts when developing this package.

0.4.0 #

  • Change the RemoteObject.value return type to Object.

0.3.6 #

  • Expose the target domain and additional runtime domain calls

0.3.5 #

  • Widen the Dart SDK constraint

0.3.4 #

  • Several fixes for strong mode at runtime issues
  • Rename uses of deprecated dart:io constants

0.3.3 #

  • Upgrade the Dart SDK minimum to 2.0.0-dev
  • Rename uses of deprecated dart:convert constants

0.3.2 #

  • Analysis fixes for strong mode
  • Upgrade to the latest package dependencies

0.3.1 #

  • Expose ConsoleAPIEvent.timestamp
  • Expose LogEntry.timestamp

0.3.0 #

  • Expose the runtime domain.
  • Expose the log domain.
  • Deprecated the console domain.
  • Fix a bug in Page.reload().
  • Remove the use of parts.

0.2.2 #

  • Make the package strong mode clean.

0.2.1+1 #

0.0.1 #

  • Initial version (library moved out of the grinder package).

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  webkit_inspection_protocol: ^0.5.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:webkit_inspection_protocol/webkit_inspection_protocol.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
94
Health:
Code health derived from static analysis. [more]
64
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
86
Learn more about scoring.

We analyzed this package on Dec 10, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.1+4

Health suggestions

Fix lib/webkit_inspection_protocol.dart. (-13.09 points)

Analysis of lib/webkit_inspection_protocol.dart reported 28 hints, including:

line 34 col 30: Unnecessary new keyword.

line 45 col 12: Unnecessary new keyword.

line 46 col 51: Unnecessary new keyword.

line 51 col 17: Unnecessary new keyword.

line 64 col 26: Unnecessary new keyword.

Fix lib/src/dom.dart. (-7.71 points)

Analysis of lib/src/dom.dart reported 16 hints, including:

line 21 col 7: Unnecessary new keyword.

line 128 col 12: Unnecessary new keyword.

line 159 col 27: Unnecessary new keyword.

line 162 col 27: Unnecessary new keyword.

line 165 col 27: Unnecessary new keyword.

Fix lib/dom_model.dart. (-7.24 points)

Analysis of lib/dom_model.dart reported 15 hints, including:

line 29 col 23: Unnecessary new keyword.

line 47 col 9: Unnecessary new keyword.

line 51 col 9: Unnecessary new keyword.

line 55 col 9: Unnecessary new keyword.

line 59 col 9: Unnecessary new keyword.

Fix additional 5 files with analysis or formatting issues. (-14.68 points)

Additional issues in the following files:

  • lib/src/debugger.dart (12 hints)
  • lib/src/runtime.dart (11 hints)
  • lib/forwarder.dart (3 hints)
  • lib/src/console.dart (3 hints)
  • lib/src/log.dart (1 hint)

Maintenance suggestions

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and webkit_inspection_protocol.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
logging ^0.11.0 0.11.3+2
Dev dependencies
args >=0.13.0 <2.0.0
shelf ^0.7.0
shelf_static ^0.2.0
shelf_web_socket ^0.2.0
test ^1.0.0