From 6ee324a0efa28ba0cb9f92b6cd84a8e7bc93afee Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Tue, 13 Feb 2024 02:01:39 +0100 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/npmextra.classes.appdata.ts | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 09bcdf2..2f273cd 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: '5.0.6', + version: '5.0.7', description: 'do more with npm' } diff --git a/ts/npmextra.classes.appdata.ts b/ts/npmextra.classes.appdata.ts index 59e9654..d03f40a 100644 --- a/ts/npmextra.classes.appdata.ts +++ b/ts/npmextra.classes.appdata.ts @@ -77,9 +77,11 @@ export class AppData { if (mappingValue.endsWith('_JSON')) { envValue = JSON.parse(envValue); } - // Determine the correct key to use (top-level or nested) - const effectiveKey = parentKey || key; - await this.kvStore.writeKey(effectiveKey, envValue); + if (!parentKey) { + await this.kvStore.writeKey(key, envValue); + } else { + return envValue; + } } } else if (typeof mappingValue === 'object' && mappingValue !== null) { const resultObject = {};