Skip to content

Commit

Permalink
fix: Fixing glitches.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Oct 20, 2023
1 parent 7106faf commit 63f4179
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions packages/katana_cli/lib/command/code/boot.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ class Boot extends BootRouteQueryBuilder {
await Future.delayed(2.s);
}
@override
void onError(BuildContext context, Object error, StackTrace stackTrace) {
// TODO: Describe the error process.
}
@override
TransitionQuery get initialTransitionQuery => TransitionQuery.fade;
}
Expand Down
8 changes: 7 additions & 1 deletion packages/katana_cli/lib/src/functions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,13 @@ m.deploy(
exports,
[${regions.map((e) => '"$e"').join(", ")}],
[
${functions.map((e) => " m.Functions.$e,").join("\n")}
${functions.map((e) {
if (e.startsWith("new ")) {
return " $e,";
} else {
return " m.Functions.$e,";
}
}).join("\n")}
],
);""");
final gradle = File("firebase/functions/src/index.ts");
Expand Down
4 changes: 2 additions & 2 deletions packages/katana_cli/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ packages:
dependency: "direct main"
description:
name: csv
sha256: "016b31a51a913744a0a1655c74ff13c9379e1200e246a03d96c81c5d9ed297b5"
sha256: "142bdf2b24f4a49e35a0fc4398f21d861c4c0f9015e8054dcacd0bb8e23ee27d"
url: "https://pub.dev"
source: hosted
version: "5.0.2"
version: "5.1.0"
encrypt:
dependency: transitive
description:
Expand Down

0 comments on commit 63f4179

Please sign in to comment.