Merge pull request #50 from annagrin/annagrin/fix_wipscope

Use correct field when reading WipScope
diff --git a/changelog.md b/changelog.md
index 1f1847f..27a9bb7 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,8 @@
 # webkit_inspection_protocol.dart
 
+## 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`, and `package:shelf_web_socket`
diff --git a/lib/src/debugger.dart b/lib/src/debugger.dart
index 5c3808b..fa4c428 100644
--- a/lib/src/debugger.dart
+++ b/lib/src/debugger.dart
@@ -160,7 +160,7 @@
   WipScope(this._map);
 
   // "catch", "closure", "global", "local", "with"
-  String get scope => _map['scope'] as String;
+  String get scope => _map['type'] as String;
 
   /// Object representing the scope. For global and with scopes it represents
   /// the actual object; for the rest of the scopes, it is artificial transient
diff --git a/pubspec.yaml b/pubspec.yaml
index 8df358b..1de55da 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
 name: webkit_inspection_protocol
-version: 0.5.0
+version: 0.5.0+1
 description: A client for the Chrome DevTools Protocol (previously called the Webkit Inspection Protocol).
 
 homepage: https://github.com/google/webkit_inspection_protocol.dart