Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
5e0edecf18 | |||
70cefc00fa | |||
6f14c73b5f | |||
1e6f636608 |
10
changelog.md
10
changelog.md
@ -1,5 +1,15 @@
|
|||||||
# 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)
|
||||||
|
Fix issue with overwrite object handling in AppData class
|
||||||
|
|
||||||
|
- Corrected logic to handle cases when overwriteObject is undefined.
|
||||||
|
|
||||||
## 2024-11-05 - 5.1.0 - feat(appdata)
|
## 2024-11-05 - 5.1.0 - feat(appdata)
|
||||||
Add support for overwriting keys using the overwriteObject option in AppData
|
Add support for overwriting keys using the overwriteObject option in AppData
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@push.rocks/npmextra",
|
"name": "@push.rocks/npmextra",
|
||||||
"version": "5.1.0",
|
"version": "5.1.2",
|
||||||
"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",
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/npmextra',
|
name: '@push.rocks/npmextra',
|
||||||
version: '5.1.0',
|
version: '5.1.2',
|
||||||
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.'
|
||||||
}
|
}
|
||||||
|
@ -177,9 +177,11 @@ export class AppData<T = any> {
|
|||||||
await processEnvMapping(key as keyof T, this.options.envMapping[key]);
|
await processEnvMapping(key as keyof T, this.options.envMapping[key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const key in Object.keys(this.options.overwriteObject)) {
|
if (this.options.overwriteObject) {
|
||||||
console.log(`-> heads up: overwriting key ${key} from options.overwriteObject`);
|
for (const key of Object.keys(this.options.overwriteObject)) {
|
||||||
await this.kvStore.writeKey(key as keyof T, this.options.overwriteObject[key]);
|
console.log(`-> heads up: overwriting key ${key} from options.overwriteObject`);
|
||||||
|
await this.kvStore.writeKey(key as keyof T, this.options.overwriteObject[key]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user