From dc9e6457734aee617755d479040f2cf59afb6c5d Mon Sep 17 00:00:00 2001 From: Rafa Mel Date: Tue, 7 May 2019 12:03:24 +0200 Subject: [PATCH] fix(core): uses cache relative to options.id for children and tasks --- src/core/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/index.ts b/src/core/index.ts index 121bca6..1fe0951 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -28,7 +28,7 @@ const core = { async bin(): Promise { return initialize().then((data) => data.bin); }, - children: cache(null, async function(): Promise { + children: cache(() => options.id, async function(): Promise { const { paths } = await initialize(); const children = core.options.get('children'); @@ -40,7 +40,7 @@ const core = { children ); }), - tasks: cache(null, async function(): Promise { + tasks: cache(() => options.id, async function(): Promise { const { loaded } = await initialize(); return getAllTasks(loaded.kpo || undefined, loaded.pkg || undefined); }),