New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@contrast/config

Package Overview
Dependencies
Maintainers
0
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/config - npm Package Compare versions

Comparing version 1.40.1 to 1.40.2

8

lib/config.js

@@ -44,2 +44,4 @@ /*

const isValid = (opt) => opt !== undefined && opt !== null && opt !== '';
module.exports = class Config {

@@ -92,3 +94,3 @@ constructor(core) {

const remoteValue = mapper(msg);
if (remoteValue != null) {
if (isValid(remoteValue)) {
this._effectiveMap.set(name, {

@@ -207,6 +209,6 @@ canonical_name: name,

if (envValue != null) {
if (isValid(envValue)) {
source = ENVIRONMENT_VARIABLE;
value = envValue;
} else if (fileValue != null) {
} else if (isValid(fileValue)) {
source = USER_CONFIGURATION_FILE;

@@ -213,0 +215,0 @@ value = fileValue;

@@ -46,3 +46,3 @@ /*

abbrev?: string;
env?: string;
env: string;
arg: string;

@@ -49,0 +49,0 @@ enum?: T[];

{
"name": "@contrast/config",
"version": "1.40.1",
"version": "1.40.2",
"description": "An API for discovering Contrast agent configuration data",

@@ -8,3 +8,6 @@ "license": "SEE LICENSE IN LICENSE",

"files": [
"lib/"
"lib/",
"!*.test.*",
"!tsconfig.*",
"!*.map"
],

@@ -11,0 +14,0 @@ "main": "lib/index.js",

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