Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

configeur

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

configeur - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

8

lib/processConfig.js
'use strict';
function parse(value, parser) {
function parse(name, value, parser) {
if (typeof value !== 'string') {
throw new Error(`Value to cast was not a string: ${value}`);
throw new Error(`Value to cast for ${name} was not a string: ${value}`);
}

@@ -26,5 +26,5 @@

if (envNames.includes(optionName)) {
config[optionName] = parse(env[optionName], parser);
config[optionName] = parse(optionName, env[optionName], parser);
} else if (!optionProperties.required) {
config[optionName] = parse(optionProperties.defaultValue, parser);
config[optionName] = parse(optionName, optionProperties.defaultValue, parser);
} else {

@@ -31,0 +31,0 @@ missingRequiredProperties.push(optionName);

{
"name": "configeur",
"version": "3.0.2",
"version": "3.0.3",
"description": "Extensible parsing of environment variables into config.",

@@ -5,0 +5,0 @@ "main": "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