-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
fix: support directories named __proto__
#945
Conversation
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
let isDirectory = false; | ||
try { | ||
isDirectory = vol.statSync('/__proto__').isDirectory(); | ||
} catch { | ||
// ignore | ||
} | ||
|
||
expect(isDirectory).toBe(true); |
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.
I think it would be better to just let the error throw, since if this test fails because of that the first thing you're going to want to do is see that error
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.
I was copying the test spec from existing test cases. But yes, throwing the error does make sense.
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.
Done in 2394a8e
(#945).
children
plain object with Map__proto__
🎉 This PR is included in version 4.2.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
The PR closes #938.
Link
is currently using a plain object (Record<string, Link>
) to hold thechildren
information. The PR repalces the plain object withMap
.