Skip to content

serdnam/env-schema-expand-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

env-schema expandEnv bug

This repo demonstrates a bug in the expandEnv functionality of the env-schema library as of version 5.2.0.

When the data option is a new object based on process.env, it fails to properly do variable expansion unless the envSchema function is called more than once.

To test this out, do the following:

node index.js # This calls the envSchema function only once, and results in an assertion error
node index.js true # This calls the envSchema function twice, and results in a successful script execution

Terminal output of running the above commands

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published