| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library pubserver.repository; | 5 library pub_server.repository; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:pub_semver/pub_semver.dart'; | 9 import 'package:pub_semver/pub_semver.dart'; |
| 10 | 10 |
| 11 /// Represents information about a specific version of a pub package. | 11 /// Represents information about a specific version of a pub package. |
| 12 class PackageVersion { | 12 class PackageVersion { |
| 13 /// The name of the package. | 13 /// The name of the package. |
| 14 final String packageName; | 14 final String packageName; |
| 15 | 15 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 /// Downloads a pub package. | 110 /// Downloads a pub package. |
| 111 Future<Stream> download(String package, String version); | 111 Future<Stream> download(String package, String version); |
| 112 | 112 |
| 113 /// Whether this package repository supports download URLs. | 113 /// Whether this package repository supports download URLs. |
| 114 bool get supportsDownloadUrl => false; | 114 bool get supportsDownloadUrl => false; |
| 115 | 115 |
| 116 /// A permanent download URL to a package (if supported). | 116 /// A permanent download URL to a package (if supported). |
| 117 Future<Uri> downloadUrl(String package, String version) | 117 Future<Uri> downloadUrl(String package, String version) |
| 118 => new Future.error(new UnsupportedError('No download link support.')); | 118 => new Future.error(new UnsupportedError('No download link support.')); |
| 119 } | 119 } |
| OLD | NEW |