From 93c65acc952a8eb8795682833886bbda539b3094 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Fri, 9 Feb 2024 11:52:30 +0100 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/npmextra.classes.appdata.ts | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 925c21b..a6f425c 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.10', + version: '4.0.11', description: 'do more with npm' } diff --git a/ts/npmextra.classes.appdata.ts b/ts/npmextra.classes.appdata.ts index fe88b56..035ce7a 100644 --- a/ts/npmextra.classes.appdata.ts +++ b/ts/npmextra.classes.appdata.ts @@ -62,4 +62,14 @@ export class AppData { await this.readyDeferred.promise; return this.kvStore; } + + public async logMissingKeys() { + const kvStore = await this.getKvStore(); + const missingMandatoryKeys = kvStore.getMissingMandatoryKeys(); + if (missingMandatoryKeys.length > 0) { + console.log(`The following mandatory keys are missing in the appdata: ${missingMandatoryKeys.join(', ')}`); + } else { + console.log('All mandatory keys are present in the appdata'); + } + } } \ No newline at end of file