Skip to content

Commit

Permalink
fix input
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed Nov 15, 2024
1 parent 8587db3 commit 588a511
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/quest/bin/quest.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ class Quest {
], workingDirectory: applicationName);
final depsListResult = processResult.stdout as String;
print(depsListResult);
final depsJson = jsonDecode(depsListResult) as Map<String, dynamic>;
final depsJson =
jsonDecode(depsListResult.substring(depsListResult.indexOf('{')))
as Map<String, dynamic>;
final depsPackages = depsJson['packages'] as List;
print(depsPackages);
if (depsPackages.any((p) => (p as Map)['name'] == candidatePackage)) {
Expand Down

0 comments on commit 588a511

Please sign in to comment.