fix(appdata): Fix iteration over overwriteObject in AppData class
This commit is contained in:
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/npmextra',
|
||||
version: '5.1.1',
|
||||
version: '5.1.2',
|
||||
description: 'A utility to enhance npm with additional configuration, tool management capabilities, and a key-value store for project setups.'
|
||||
}
|
||||
|
@ -178,7 +178,7 @@ export class AppData<T = any> {
|
||||
}
|
||||
|
||||
if (this.options.overwriteObject) {
|
||||
for (const key in Object.keys(this.options.overwriteObject)) {
|
||||
for (const key of Object.keys(this.options.overwriteObject)) {
|
||||
console.log(`-> heads up: overwriting key ${key} from options.overwriteObject`);
|
||||
await this.kvStore.writeKey(key as keyof T, this.options.overwriteObject[key]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user