Adopt standalone package manifest and dependency lock
This commit is contained in:
+7
-2
@@ -23,9 +23,14 @@ export const taskCount = derived(async (context) =>
|
||||
|
||||
export const searchDocument = derived(async (context) => {
|
||||
const [name, tasks] = await Promise.all([
|
||||
context.state<string>("port:project-search:name").get(),
|
||||
context.edge("port:project-search:tasks").resolve(),
|
||||
context.interface("port:project-search:named")
|
||||
.invoke("operation:named:name:get"),
|
||||
context.interface("port:project-search:tasks")
|
||||
.invoke("operation:project-tasks:tasks:resolve"),
|
||||
]);
|
||||
if (typeof name !== "string" || !Array.isArray(tasks)) {
|
||||
throw new Error("Project search dependencies returned invalid values");
|
||||
}
|
||||
const count = tasks.length;
|
||||
return {
|
||||
title: name || "Untitled project",
|
||||
|
||||
Reference in New Issue
Block a user