Skip to content

Commit

Permalink
Dart: update dependencies and fixes for latest lints (#6050)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored Jul 10, 2024
1 parent 0804fc5 commit 1b4eb70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ void main(List<String> args) async {
final ip = InternetAddress.anyIPv4;

// 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.
final port = int.parse(Platform.environment['PORT'] ?? '8080');
Expand Down
6 changes: 3 additions & 3 deletions code-samples/community/serving/helloworld-dart/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: hello_world_dart
publish_to: none # Avoid accidentally publishing this to pub.dev

environment:
sdk: ^3.0.0
sdk: ^3.1.0

dependencies:
args: ^2.3.0
shelf: ^1.4.0
shelf_router: ^1.1.0

dev_dependencies:
http: ^0.13.0
lints: ^2.0.0
http: ^1.0.0
lints: ^4.0.0
test: ^1.21.0

0 comments on commit 1b4eb70

Please sign in to comment.