Skip to content

Commit

Permalink
Released 3.1.0-beta.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsutton committed Jan 12, 2023
1 parent cd72e62 commit 9aafcfd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/src/pub/oauth2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Future<T> withClient<T>(SystemCache cache, Future<T> Function(Client) fn) {
// Be sure to save the credentials even when an error happens.
_saveCredentials(cache, client.credentials);
});
}).catchError((error) {
}).catchError((Object error) {
if (error is ExpirationException) {
log.error("Pub's authorization to upload packages has expired and "
"can't be automatically refreshed.");
Expand Down Expand Up @@ -226,7 +226,7 @@ Future<Client> _authorize() async {
// Spin up a one-shot HTTP server to receive the authorization code from the
// Google OAuth2 server via redirect. This server will close itself as soon as
// the code is received.
var completer = Completer();
var completer = Completer<Client>();
var server = await bindServer('localhost', 0);
shelf_io.serveRequests(server, (request) {
if (request.url.path.isNotEmpty) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ packages:
source: hosted
version: "3.5.1"
shelf:
dependency: "direct dev"
dependency: "direct main"
description:
name: shelf
url: "https://pub.dartlang.org"
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ dependencies:
random_string: 2.3.1
scope: 3.0.0
settings_yaml: 3.5.1
shelf: 1.2.0
source_map_stack_trace: 2.1.0
source_maps: 0.10.10
source_span: 1.8.1
Expand All @@ -81,7 +82,6 @@ dev_dependencies:
analyzer: 2.3.0
lint_hard: 1.0.4
matcher: 0.12.11
shelf: 1.2.0
shelf_packages_handler: 3.0.0
shelf_static: 1.1.0
shelf_web_socket: 1.0.1
Expand Down

0 comments on commit 9aafcfd

Please sign in to comment.