diff --git a/lib/pubspec_updater.dart b/lib/pubspec_updater.dart index 3534395..fddb0c6 100644 --- a/lib/pubspec_updater.dart +++ b/lib/pubspec_updater.dart @@ -164,8 +164,8 @@ class Updater { } Future getLatestVersion(String name) async { - final Response response = - await get('https://pub.dartlang.org/api/packages/$name'); + final url = Uri.https('pub.dartlang.org', '/api/packages/$name'); + final Response response = await get(url); final dynamic json = jsonDecode(response.body); return json['latest']['version']; diff --git a/pubspec.lock b/pubspec.lock index d8501e9..3f40828 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -7,28 +7,28 @@ packages: name: args url: "https://pub.dartlang.org" source: hosted - version: "1.5.2" + version: "2.3.1" async: dependency: transitive description: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.4.0" - charcode: + version: "2.9.0" + characters: dependency: transitive description: - name: charcode + name: characters url: "https://pub.dartlang.org" source: hosted - version: "1.1.2" + version: "1.2.1" collection: dependency: transitive description: name: collection url: "https://pub.dartlang.org" source: hosted - version: "1.14.11" + version: "1.16.0" flutter: dependency: "direct main" description: flutter @@ -40,35 +40,35 @@ packages: name: http url: "https://pub.dartlang.org" source: hosted - version: "0.12.0+4" + version: "0.13.5" http_parser: dependency: transitive description: name: http_parser url: "https://pub.dartlang.org" source: hosted - version: "3.1.3" - meta: + version: "4.0.2" + material_color_utilities: dependency: transitive description: - name: meta + name: material_color_utilities url: "https://pub.dartlang.org" source: hosted - version: "1.1.8" - path: + version: "0.1.5" + meta: dependency: transitive description: - name: path + name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.6.4" - pedantic: + version: "1.8.0" + path: dependency: transitive description: - name: pedantic + name: path url: "https://pub.dartlang.org" source: hosted - version: "1.9.0" + version: "1.8.2" sky_engine: dependency: transitive description: flutter @@ -80,41 +80,41 @@ packages: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.5.5" + version: "1.9.1" string_scanner: dependency: transitive description: name: string_scanner url: "https://pub.dartlang.org" source: hosted - version: "1.0.5" + version: "1.1.1" term_glyph: dependency: transitive description: name: term_glyph url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "1.2.1" typed_data: dependency: transitive description: name: typed_data url: "https://pub.dartlang.org" source: hosted - version: "1.1.6" + version: "1.3.1" vector_math: dependency: transitive description: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.0.8" + version: "2.1.2" yaml: dependency: "direct dev" description: name: yaml url: "https://pub.dartlang.org" source: hosted - version: "2.2.0" + version: "3.1.1" sdks: - dart: ">=2.4.0 <3.0.0" + dart: ">=2.17.0-0 <3.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index 1920c0a..7e9073f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,9 +12,9 @@ dependencies: sdk: flutter dev_dependencies: - http: ^0.12.0+4 - yaml: ^2.2.0 - args: ^1.5.2 + http: ^0.13.5 + yaml: ^3.1.1 + args: ^2.3.1 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec