diff --git a/package-lock.json b/package-lock.json index 6534db7..4bea1aa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@cloudimpl-inc/cpm", - "version": "2.33.5", + "version": "2.33.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@cloudimpl-inc/cpm", - "version": "2.33.5", + "version": "2.33.6", "license": "MIT", "dependencies": { "chalk": "^4.1.2", diff --git a/package.json b/package.json index fdc4155..6421436 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cloudimpl-inc/cpm", - "version": "2.33.5", + "version": "2.33.6", "description": "CloudImpl Project Manager", "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/src/util.ts b/src/util.ts index 6ee7056..6f36c52 100644 --- a/src/util.ts +++ b/src/util.ts @@ -177,7 +177,9 @@ export const addMapKey = (map: any, key: string[], value: any): void => { export const removeMapKey = (map: any, key: string[]): void => { if (key.length == 1) { - delete map[key[0]]; + if (map.hasOwnProperty(key[0])) { + delete map[key[0]]; + } } else if (map) { const m = map[key[0]]; key.shift();