Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Commit e31d4c8

Browse files
committed
Allow the latest shelf and args packages
1 parent 9013440 commit e31d4c8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

bin/inference/server.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
/// Server component to display inference results using a web app.
66
library dart2js_info.bin.inference.server;
77

8+
import 'dart:async';
89
import 'dart:io';
910

1011
import 'package:shelf/shelf.dart' as shelf;
@@ -15,7 +16,7 @@ String jsonDataFile;
1516
String indexFile;
1617
String scriptFile;
1718

18-
main(args) async {
19+
main(List<String> args) async {
1920
var host = 'localhost';
2021
var port = 8080;
2122

@@ -26,7 +27,7 @@ main(args) async {
2627
await shelf.serve(_handler, host, port);
2728
}
2829

29-
_handler(shelf.Request request) async {
30+
Future<shelf.Response> _handler(shelf.Request request) async {
3031
var path = request.url.path;
3132
if (path == 'data') {
3233
return new shelf.Response.ok(await new File(jsonDataFile).readAsString());

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ homepage: https://github.com/dart-lang/dart2js_info/
99
environment:
1010
sdk: '>=1.21.1 <2.0.0'
1111
dependencies:
12-
args: ^0.13.0
12+
args: '>=0.13.0 <2.0.0'
1313
charcode: ^1.1.0
1414
collection: ^1.10.1
1515
path: ^1.3.6
1616
quiver: '>=0.21.0 <0.26.0'
17-
shelf: ^0.6.1+2
17+
shelf: '>=0.6.1+2 <0.8.0'
1818
shelf_static: ^0.2.4
1919
yaml: ^2.1.0
2020
dev_dependencies:

0 commit comments

Comments
 (0)