Closed robmcguinness closed 5 years ago
https://github.com/hapijs/hoek/blob/master/API.md#applytodefaultsdefaults-source-options
I believe n the section labeled:
Apply source with a null value to a copy of the defaults
this:
const config = Hoek.applyToDefaults(defaults, source, true); // results in { host: null, port: 8080 }
should be:
const config = Hoek.applyToDefaults(defaults, source, {nullOverride: true}); // results in { host: null, port: 8080 }
I'll submit a small PR in a bit.
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
https://github.com/hapijs/hoek/blob/master/API.md#applytodefaultsdefaults-source-options
I believe n the section labeled:
Apply source with a null value to a copy of the defaults
this:
should be:
I'll submit a small PR in a bit.