fix(core): update
This commit is contained in:
parent
215a48a409
commit
6ee324a0ef
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/npmextra',
|
name: '@push.rocks/npmextra',
|
||||||
version: '5.0.6',
|
version: '5.0.7',
|
||||||
description: 'do more with npm'
|
description: 'do more with npm'
|
||||||
}
|
}
|
||||||
|
@ -77,9 +77,11 @@ export class AppData<T = any> {
|
|||||||
if (mappingValue.endsWith('_JSON')) {
|
if (mappingValue.endsWith('_JSON')) {
|
||||||
envValue = JSON.parse(envValue);
|
envValue = JSON.parse(envValue);
|
||||||
}
|
}
|
||||||
// Determine the correct key to use (top-level or nested)
|
if (!parentKey) {
|
||||||
const effectiveKey = parentKey || key;
|
await this.kvStore.writeKey(key, envValue);
|
||||||
await this.kvStore.writeKey(effectiveKey, envValue);
|
} else {
|
||||||
|
return envValue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (typeof mappingValue === 'object' && mappingValue !== null) {
|
} else if (typeof mappingValue === 'object' && mappingValue !== null) {
|
||||||
const resultObject = {};
|
const resultObject = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user