webkit_inspection_protocol 0.7.3

  • Readme
  • Changelog
  • Installing
  • 91

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.7.3 #

  • Fix a type issue with GlobalObjectClearedEvents

0.7.2 #

  • Fix a bug in StackTrace.parent

0.7.1 #

  • Exposed Debugger.setAsyncCallStackDepth
  • Exposed StackTrace.parent

0.7.0 #

  • Normalized all objects to expose a json field for raw access to the protocol information
  • Exposed Runtime.getProperties, Runtime.getHeapUsage, and Runtime.getIsolateId
  • Exposed DebuggerPausedEvent.hitBreakpoints and DebuggerPausedEvent.asyncStackTrace
  • Exposed WipCallFrame.returnValue
  • Removed WrappedWipEvent (in favor of just using WipEvent)
  • Removed WipRemoteObject (in favor of just using RemoteObject)

0.6.0 #

  • Add onSend and onReceive in WipConnection
  • Expose onExecutionContextCreated, onExecutionContextDestroyed, and onExecutionContextsCleared on WipRuntime

0.5.3 #

  • expose name in WipScope

0.5.2 #

  • have ExceptionDetails and WipError implement Exception
  • add code and message getters to WipError

0.5.1 #

  • add Runtime.evaluate
  • add Debugger.setBreakpoint
  • add Debugger.removeBreakpoint
  • add Debugger.evaluateOnCallFrame
  • add Debugger.getPossibleBreakpoints

0.5.0+1 #

  • fixed a bug in reading type of WipScope

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.7.3

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]
98
Health:
Code health derived from static analysis. [more]
75
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
91
Learn more about scoring.

We analyzed this package on Jun 4, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.2
  • pana: 0.13.8-dev

Health suggestions

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

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

line 32 col 30: Unnecessary new keyword.

line 43 col 12: Unnecessary new keyword.

line 44 col 51: Unnecessary new keyword.

line 49 col 17: Unnecessary new keyword.

line 62 col 26: Unnecessary new keyword.

Fix lib/src/debugger.dart. (-8.63 points)

Analysis of lib/src/debugger.dart reported 18 hints, including:

line 67 col 13: Unnecessary new keyword.

line 70 col 14: Unnecessary new keyword.

line 103 col 13: Unnecessary new keyword.

line 106 col 14: Unnecessary new keyword.

line 138 col 13: 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 163 col 27: Unnecessary new keyword.

line 167 col 27: Unnecessary new keyword.

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

Additional issues in the following files:

  • lib/dom_model.dart (15 hints)
  • lib/src/runtime.dart (13 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.4
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
webdriver ^2.0.0