Socket
Socket
Sign inDemoInstall

config

Package Overview
Dependencies
Maintainers
0
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

config - npm Package Compare versions

Comparing version 3.3.11 to 3.3.12

7

lib/config.js

@@ -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');
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc