Skip to content
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

Add missing isNull check for mapping vinyl metadata. #11

Merged
merged 1 commit into from
Apr 15, 2015

Conversation

izaakschroeder
Copy link
Owner

When requesting only metadata (i.e. { read: false }) the check for the .length property on the file's contents will fail because the file has no contents. A check is added to deal with this case and a corresponding test has been provided.

Additionally the README has been updated to include an otherwise missing module, and the examples folder now includes an example for just retrieving the metadata.

This fixes #9.

When requesting only metadata (i.e. `{ read: false }`) the check for the `.length` property on the file's contents will fail because the file has no contents. A check is added to deal with this case and a corresponding test has been provided.

Additionally the README has been updated to include an otherwise missing module, and the examples folder now includes an example for just retrieving the metadata.

This fixes #9.
@izaakschroeder
Copy link
Owner Author

See also: #10

@izaakschroeder izaakschroeder mentioned this pull request Apr 15, 2015
@izaakschroeder izaakschroeder self-assigned this Apr 15, 2015
izaakschroeder added a commit that referenced this pull request Apr 15, 2015
Add missing `isNull` check for mapping vinyl metadata.
@izaakschroeder izaakschroeder merged commit 47ed2c2 into master Apr 15, 2015
@izaakschroeder izaakschroeder deleted the fix-null-case branch April 15, 2015 09:08
jwulf added a commit to jwulf/vinyl-s3 that referenced this pull request Feb 23, 2017
Incorporate credentials updates from izaakschroeder#11 and izaakschroeder#20.
@jwulf jwulf mentioned this pull request Feb 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The "meta" task doesn't work
1 participant