Skip to content

Commit 9aafcfd

Browse files
committed
Released 3.1.0-beta.1.
1 parent cd72e62 commit 9aafcfd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/src/pub/oauth2.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Future<T> withClient<T>(SystemCache cache, Future<T> Function(Client) fn) {
110110
// Be sure to save the credentials even when an error happens.
111111
_saveCredentials(cache, client.credentials);
112112
});
113-
}).catchError((error) {
113+
}).catchError((Object error) {
114114
if (error is ExpirationException) {
115115
log.error("Pub's authorization to upload packages has expired and "
116116
"can't be automatically refreshed.");
@@ -226,7 +226,7 @@ Future<Client> _authorize() async {
226226
// Spin up a one-shot HTTP server to receive the authorization code from the
227227
// Google OAuth2 server via redirect. This server will close itself as soon as
228228
// the code is received.
229-
var completer = Completer();
229+
var completer = Completer<Client>();
230230
var server = await bindServer('localhost', 0);
231231
shelf_io.serveRequests(server, (request) {
232232
if (request.url.path.isNotEmpty) {

pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ packages:
359359
source: hosted
360360
version: "3.5.1"
361361
shelf:
362-
dependency: "direct dev"
362+
dependency: "direct main"
363363
description:
364364
name: shelf
365365
url: "https://pub.dartlang.org"

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ dependencies:
5555
random_string: 2.3.1
5656
scope: 3.0.0
5757
settings_yaml: 3.5.1
58+
shelf: 1.2.0
5859
source_map_stack_trace: 2.1.0
5960
source_maps: 0.10.10
6061
source_span: 1.8.1
@@ -81,7 +82,6 @@ dev_dependencies:
8182
analyzer: 2.3.0
8283
lint_hard: 1.0.4
8384
matcher: 0.12.11
84-
shelf: 1.2.0
8585
shelf_packages_handler: 3.0.0
8686
shelf_static: 1.1.0
8787
shelf_web_socket: 1.0.1

0 commit comments

Comments
 (0)