File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,13 @@ export const config = options => {
4444 const schema = loadEnvironmentFile ( options . schema , options . encoding , options . silent ) ;
4545 const config = options . includeProcessEnv ? Object . assign ( { } , configData , process . env ) : configData ;
4646 const schemaKeys = Object . keys ( schema ) ;
47+ const configOnlyKeys = Object . keys ( configData ) ;
4748 const configKeys = Object . keys ( config ) ;
4849
4950 let missingKeys = schemaKeys . filter ( function ( key ) {
5051 return configKeys . indexOf ( key ) < 0 ;
5152 } ) ;
52- let extraKeys = configKeys . filter ( function ( key ) {
53+ let extraKeys = configOnlyKeys . filter ( function ( key ) {
5354 return schemaKeys . indexOf ( key ) < 0 ;
5455 } ) ;
5556 if ( options . errorOnMissing && missingKeys . length ) {
You can’t perform that action at this time.
0 commit comments