New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vision / Mimos #1968
Vision / Mimos #1968
Conversation
var override = (!options.basePath && env.path ? { basePath: env.path } : null); | ||
env.views = new Views.Manager(options, override); | ||
|
||
if (!options.basePath && env.path) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be defensive against a null/undefined options
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's an old issue. There wasn't one before. But I'll add it.
@@ -25,3 +25,16 @@ exports.uniqueFilename = function (path) { | |||
var name = [Date.now(), process.pid, Crypto.randomBytes(8).toString('hex')].join('-'); | |||
return Path.join(path, name); | |||
}; | |||
|
|||
|
|||
exports.shallow = function (source) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reason not to use https://github.com/hapijs/hoek#clonewithshallowobj-keys ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not the same. Clone with shallow is expensive and requires listing all shallow keys.
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. |
Closes #1967
Closes #1969