"use strict";
const path   = require('path');
const semver = require('semver');

module.exports = (pModuleName, pSemVer) => {
    let lRetval = false;

    try {
        lRetval = require(pModuleName);
        if (
            Boolean(pSemVer) &&
            !semver.satisfies(
                require(`${pModuleName}${path.sep}package.json`).version,
                pSemVer
            )
        ) {
            lRetval = false;
        }
    } catch (e) {
        lRetval = false;
    }
    return lRetval;
};

/*
  eslint
    global-require: 0,
    security/detect-non-literal-require: 0
 */

@@ -299,11 +299,18 @@
 ire(
-%60$%7B
+path.join(
 pMod
@@ -320,20 +320,11 @@
 Name
-%7D$%7Bpath.sep%7D
+, '
 pack
@@ -335,9 +335,10 @@
 json
-%60
+')
 ).ve

use a more standard way to concat dirs & files