Skip to content

Commit

Permalink
Merge pull request #1218 from simlu/dep/update
Browse files Browse the repository at this point in the history
fix: no longer async
  • Loading branch information
simlu authored Jan 28, 2025
2 parents 0d074a2 + ffbe18a commit c24d8b1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ import set from 'lodash.set';
import mergeWith from 'lodash.mergewith';
import yaml from 'js-yaml';

// todo: use when node 20 is deprecated
// import { createRequire } from 'module';
// const requireRaw = createRequire(import.meta.url);
// const requireEsm = (arg) => {
// const result = requireRaw(arg);
// return 'default' in result ? result.default : result;
// };

const concatArrays = (objValue, srcValue) => ([objValue, srcValue]
.every(Array.isArray) ? objValue.concat(srcValue) : undefined);

Expand Down

0 comments on commit c24d8b1

Please sign in to comment.