File tree 2 files changed +11
-12
lines changed
2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import 'package:pub_api/pub_api.dart';
5
5
import 'package:pub_semver/pub_semver.dart' ;
6
6
import 'package:pubspec_parse/pubspec_parse.dart' ;
7
7
8
- bool versionIsOutdated (PubPackage package, VersionRange version) =>
9
- version.isAny || version.min < package.latest.version;
8
+ bool versionIsOutdated (PubPackage package, VersionConstraint version) =>
9
+ version.isAny || ! version.allows ( package.latest.version) ;
10
10
11
11
bool dependencyIsOutdated (PubPackage package, HostedDependency dep) =>
12
12
versionIsOutdated (package, dep.version);
@@ -32,8 +32,9 @@ main() async {
32
32
final github = GitHub ();
33
33
final repo = await getGithubRepo ();
34
34
for (final name in deps.keys) {
35
+ if (deps[name] is ! HostedDependency ) continue ;
35
36
final package = await PubPackage .fromName (name);
36
- if (await dependencyIsOutdated (package, deps[name])) {
37
+ if (await dependencyIsOutdated (package, deps[name] as HostedDependency )) {
37
38
print (name + ' out of date' );
38
39
github.issues.create (
39
40
repo,
Original file line number Diff line number Diff line change 1
1
name : depampbot
2
2
description : A dependency management bot for Dart.
3
+ version : 0.0.0-1
3
4
homepage : https://github.com/Ampless/depampbot
4
-
5
5
publish_to : ' none'
6
6
7
- version : 0.0.0-1
8
-
9
7
environment :
10
- sdk : " >=2.7.0 < 3.0.0"
8
+ sdk : ^ 3.0.0
11
9
12
10
dependencies :
13
- pub_api : ^0.0.4
14
- github : ^6 .0.0
15
- pubspec_parse : ^0.1.4
16
- pub_semver : any
11
+ pub_api : ^0.1.0
12
+ github : ^9 .0.0
13
+ pubspec_parse : ^1.0.0
14
+ pub_semver : ^2.0.0
17
15
18
16
dev_dependencies :
19
- pedantic : ^1.9.2
17
+ lints : ^5.0.0
You can’t perform that action at this time.
0 commit comments