Compare commits

..

No commits in common. "master" and "v5.1.1" have entirely different histories.

4 changed files with 3 additions and 8 deletions

View File

@ -1,10 +1,5 @@
# Changelog # Changelog
## 2024-11-06 - 5.1.2 - fix(appdata)
Fix iteration over overwriteObject in AppData class
- Corrected the for loop from in to of inside the AppData class for iterating over overwriteObject keys.
## 2024-11-05 - 5.1.1 - fix(AppData) ## 2024-11-05 - 5.1.1 - fix(AppData)
Fix issue with overwrite object handling in AppData class Fix issue with overwrite object handling in AppData class

View File

@ -1,6 +1,6 @@
{ {
"name": "@push.rocks/npmextra", "name": "@push.rocks/npmextra",
"version": "5.1.2", "version": "5.1.1",
"private": false, "private": false,
"description": "A utility to enhance npm with additional configuration, tool management capabilities, and a key-value store for project setups.", "description": "A utility to enhance npm with additional configuration, tool management capabilities, and a key-value store for project setups.",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@push.rocks/npmextra', name: '@push.rocks/npmextra',
version: '5.1.2', version: '5.1.1',
description: 'A utility to enhance npm with additional configuration, tool management capabilities, and a key-value store for project setups.' description: 'A utility to enhance npm with additional configuration, tool management capabilities, and a key-value store for project setups.'
} }

View File

@ -178,7 +178,7 @@ export class AppData<T = any> {
} }
if (this.options.overwriteObject) { if (this.options.overwriteObject) {
for (const key of Object.keys(this.options.overwriteObject)) { for (const key in Object.keys(this.options.overwriteObject)) {
console.log(`-> heads up: overwriting key ${key} from options.overwriteObject`); console.log(`-> heads up: overwriting key ${key} from options.overwriteObject`);
await this.kvStore.writeKey(key as keyof T, this.options.overwriteObject[key]); await this.kvStore.writeKey(key as keyof T, this.options.overwriteObject[key]);
} }