Skip to content

Commit

Permalink
fix: issue with variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
antifree committed Jan 11, 2024
1 parent 4ab5625 commit fceea31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26612,7 +26612,7 @@ try {
}
else if (typeof variable === 'object') {
for(const key in variable) {
const variableName = (rootObj.hasOwnProperty(key) || name.length === 0)
const variableName = name.length === 0
? key
: `${name}_${key}`;

Expand Down

0 comments on commit fceea31

Please sign in to comment.