Comparing version 3.3.11 to 3.3.12
@@ -10,3 +10,2 @@ // config.js (c) 2010-2022 Loren West and other contributors | ||
let Parser = require('../parser'); | ||
const Utils = require('util'); | ||
const Path = require('path'); | ||
@@ -1007,8 +1006,8 @@ const FileSystem = require('fs'); | ||
if (Utils.isArray(parent)) { | ||
if (Array.isArray(parent)) { | ||
child = []; | ||
} else if (Utils.isRegExp(parent)) { | ||
} else if (parent instanceof RegExp) { | ||
child = new RegExp(parent.source, util.getRegExpFlags(parent)); | ||
if (parent.lastIndex) child.lastIndex = parent.lastIndex; | ||
} else if (Utils.isDate(parent)) { | ||
} else if (parent instanceof Date) { | ||
child = new Date(parent.getTime()); | ||
@@ -1015,0 +1014,0 @@ } else if (useBuffer && Buffer.isBuffer(parent)) { |
{ | ||
"name": "config", | ||
"version": "3.3.11", | ||
"version": "3.3.12", | ||
"main": "./lib/config.js", | ||
@@ -5,0 +5,0 @@ "description": "Configuration control for production node deployments", |
// External libraries are lazy-loaded only if these file types exist. | ||
const util = require("util"); | ||
@@ -64,3 +63,3 @@ // webpack can't solve dynamic module | ||
if (configObject.__esModule && util.isObject(configObject.default)) { | ||
if (configObject.__esModule && isObject(configObject.default)) { | ||
return configObject.default | ||
@@ -370,1 +369,5 @@ } | ||
}; | ||
function isObject(arg) { | ||
return (arg !== null) && (typeof arg === 'object'); | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94417
1800