mirror of https://github.com/knative/docs.git
Dart: update dependencies and fixes for latest lints (#6050)
This commit is contained in:
parent
0804fc50d0
commit
1b4eb70c35
|
@ -23,7 +23,8 @@ void main(List<String> args) async {
|
||||||
final ip = InternetAddress.anyIPv4;
|
final ip = InternetAddress.anyIPv4;
|
||||||
|
|
||||||
// Configure a pipeline that logs requests.
|
// Configure a pipeline that logs requests.
|
||||||
final handler = Pipeline().addMiddleware(logRequests()).addHandler(_router);
|
final handler =
|
||||||
|
Pipeline().addMiddleware(logRequests()).addHandler(_router.call);
|
||||||
|
|
||||||
// For running in containers, we respect the PORT environment variable.
|
// For running in containers, we respect the PORT environment variable.
|
||||||
final port = int.parse(Platform.environment['PORT'] ?? '8080');
|
final port = int.parse(Platform.environment['PORT'] ?? '8080');
|
||||||
|
|
|
@ -2,7 +2,7 @@ name: hello_world_dart
|
||||||
publish_to: none # Avoid accidentally publishing this to pub.dev
|
publish_to: none # Avoid accidentally publishing this to pub.dev
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.0.0
|
sdk: ^3.1.0
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
args: ^2.3.0
|
args: ^2.3.0
|
||||||
|
@ -10,6 +10,6 @@ dependencies:
|
||||||
shelf_router: ^1.1.0
|
shelf_router: ^1.1.0
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
http: ^0.13.0
|
http: ^1.0.0
|
||||||
lints: ^2.0.0
|
lints: ^4.0.0
|
||||||
test: ^1.21.0
|
test: ^1.21.0
|
||||||
|
|
Loading…
Reference in New Issue