fix(core): update

This commit is contained in:
Philipp Kunz 2024-02-13 02:01:39 +01:00
parent 215a48a409
commit 6ee324a0ef
2 changed files with 6 additions and 4 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/npmextra',
version: '5.0.6',
version: '5.0.7',
description: 'do more with npm'
}

View File

@ -77,9 +77,11 @@ export class AppData<T = any> {
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 = {};