Skip to content

Commit

Permalink
Merge 7861e63 into fc31c66
Browse files Browse the repository at this point in the history
  • Loading branch information
atherdon authored Aug 1, 2022
2 parents fc31c66 + 7861e63 commit 6a9ab31
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/domain/md/object-builder/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ const ERROR_REGEX_CONSTANT = (value) =>
const ERROR_REPLACER_FUNCTION = (value) =>
`something wrong with replacer function ${value}`;


// TODO to make this method working better [improvement]
// 1. to handle a case when literal is false, it's very scary
// 2. we really need to be able to handle a situation when replacer isn't defined before (by different reasons)
// 3. does this function works fine with `components`
// 4. when something wrong - i want to have a better output about params that we passed

function objectBuilder(constant, replacer, literal = false) {
// TODO add typeof for checking replacer as a function
// console.log( typeof element.replacer === 'undefined' );
Expand Down

0 comments on commit 6a9ab31

Please sign in to comment.