File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ Future<shelf.Response> apiPackageNamesHandler(shelf.Request request) async {
7979 final bytes = await cache.packageNamesDataJsonGz ().get (() async {
8080 final packageNames = await nameTracker.getVisiblePackageNames ();
8181 return gzip.encode (jsonUtf8Encoder.convert ({
82- 'packages' : packageNames. where ((p) => ! isSoftRemoved (p)). toList () ,
82+ 'packages' : packageNames,
8383 // pagination is off for now
8484 'nextUrl' : null ,
8585 }));
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import 'package:clock/clock.dart';
88import 'package:gcloud/service_scope.dart' as ss;
99import 'package:logging/logging.dart' ;
1010import 'package:meta/meta.dart' ;
11+ import 'package:pub_dev/package/overrides.dart' ;
1112import 'package:pub_package_reader/pub_package_reader.dart' ;
1213
1314import '../shared/datastore.dart' ;
@@ -51,7 +52,7 @@ class TrackedPackage {
5152 updated: p.updated! ,
5253 latestVersion: p.latestVersion! ,
5354 lastPublished: p.lastVersionPublished! ,
54- isVisible: p.isVisible,
55+ isVisible: p.isVisible && ! isSoftRemoved (p.name ! ) ,
5556 );
5657
5758 @visibleForTesting
@@ -125,7 +126,7 @@ class NameTracker {
125126
126127 /// Get the names of all visible packages.
127128 ///
128- /// Packages that are _withdrawn_ are not listed here.
129+ /// Packages that are _moderated_ or _soft removed_ are NOT listed here.
129130 /// Packages that are _unlisted_ or _discontinued_ are **included in this list**.
130131 ///
131132 /// If it is called before the first scan was done, it will wait for
You can’t perform that action at this time.
0 commit comments