This repository was archived by the owner on Aug 11, 2021. It is now read-only.
File tree 2 files changed +5
-4
lines changed 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 5
5
/// Server component to display inference results using a web app.
6
6
library dart2js_info.bin.inference.server;
7
7
8
+ import 'dart:async' ;
8
9
import 'dart:io' ;
9
10
10
11
import 'package:shelf/shelf.dart' as shelf;
@@ -15,7 +16,7 @@ String jsonDataFile;
15
16
String indexFile;
16
17
String scriptFile;
17
18
18
- main (args) async {
19
+ main (List < String > args) async {
19
20
var host = 'localhost' ;
20
21
var port = 8080 ;
21
22
@@ -26,7 +27,7 @@ main(args) async {
26
27
await shelf.serve (_handler, host, port);
27
28
}
28
29
29
- _handler (shelf.Request request) async {
30
+ Future <shelf. Response > _handler (shelf.Request request) async {
30
31
var path = request.url.path;
31
32
if (path == 'data' ) {
32
33
return new shelf.Response .ok (await new File (jsonDataFile).readAsString ());
Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ homepage: https://github.com/dart-lang/dart2js_info/
9
9
environment :
10
10
sdk : ' >=1.21.1 <2.0.0'
11
11
dependencies :
12
- args : ^ 0.13.0
12
+ args : ' >= 0.13.0 <2.0.0 '
13
13
charcode : ^1.1.0
14
14
collection : ^1.10.1
15
15
path : ^1.3.6
16
16
quiver : ' >=0.21.0 <0.26.0'
17
- shelf : ^ 0.6.1+2
17
+ shelf : ' >= 0.6.1+2 <0.8.0 '
18
18
shelf_static : ^0.2.4
19
19
yaml : ^2.1.0
20
20
dev_dependencies :
You can’t perform that action at this time.
0 commit comments