Allow the latest shelf and args packages
diff --git a/bin/inference/server.dart b/bin/inference/server.dart
index 4ac77d4..f4818e8 100644
--- a/bin/inference/server.dart
+++ b/bin/inference/server.dart
@@ -5,6 +5,7 @@
/// Server component to display inference results using a web app.
library dart2js_info.bin.inference.server;
+import 'dart:async';
import 'dart:io';
import 'package:shelf/shelf.dart' as shelf;
@@ -15,7 +16,7 @@
String indexFile;
String scriptFile;
-main(args) async {
+main(List<String> args) async {
var host = 'localhost';
var port = 8080;
@@ -26,7 +27,7 @@
await shelf.serve(_handler, host, port);
}
-_handler(shelf.Request request) async {
+Future<shelf.Response> _handler(shelf.Request request) async {
var path = request.url.path;
if (path == 'data') {
return new shelf.Response.ok(await new File(jsonDataFile).readAsString());
diff --git a/pubspec.yaml b/pubspec.yaml
index 399df6c..51aa09c 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -9,12 +9,12 @@
environment:
sdk: '>=1.21.1 <2.0.0'
dependencies:
- args: ^0.13.0
+ args: '>=0.13.0 <2.0.0'
charcode: ^1.1.0
collection: ^1.10.1
path: ^1.3.6
quiver: '>=0.21.0 <0.26.0'
- shelf: ^0.6.1+2
+ shelf: '>=0.6.1+2 <0.8.0'
shelf_static: ^0.2.4
yaml: ^2.1.0
dev_dependencies: