From 18bb54831d67185ae2d631ff1d50d73bd686659b Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sat, 10 Feb 2024 04:55:50 +0100 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/npmextra.classes.appdata.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 9aa731c..756dd5a 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/npmextra', - version: '4.0.14', + version: '4.0.15', description: 'do more with npm' } diff --git a/ts/npmextra.classes.appdata.ts b/ts/npmextra.classes.appdata.ts index 668314b..bf68ac0 100644 --- a/ts/npmextra.classes.appdata.ts +++ b/ts/npmextra.classes.appdata.ts @@ -100,8 +100,9 @@ export class AppData { } } - public async waitForKeysPresent(keysArg: string[]) { + public async waitForAndGetKey(keyArg: string) { await this.readyDeferred.promise; - await this.kvStore.waitForKeysPresent(keysArg); + await this.kvStore.waitForKeysPresent([keyArg]); + return this.kvStore.readKey[keyArg]; } }