-
Notifications
You must be signed in to change notification settings - Fork 258
Open
Labels
Description
Exactly as the title says - when I configure Nconf with the code below I can verify that Provider.prototype.add is called with the 'name' argument set to 'env' two times. This results in some of my environment variables getting clobbered and not ending up in the finally built store.
The following breakpoint (placed in provider.js of the Nconf source code) is what I used to demonstrate this:

The configuration that I'm using to reproduce this is:
nconf
.overrides(overrides)
.argv()
.env({
separator: '__',
parseValues: true,
transform: transformer
})
.file(configFile)
.defaults(configDefaults);
I have verified that the block of code above is only hit once.
npm list nconf tells me I am on version 0.10.0.
Reactions are currently unavailable