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

Bump third party dependencies #12

Merged
merged 3 commits into from
Jul 12, 2014
Merged

Bump third party dependencies #12

merged 3 commits into from
Jul 12, 2014

Conversation

joelrbrandt
Copy link
Contributor

No description provided.

@@ -215,7 +215,7 @@
return Q.nfcall(tmp.dir, {unsafeCleanup : true});
}
})
.then(function (workingDir) {
.spread(function (workingDir) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wut?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The errbacks for tmp.dir and tmp.file now have more parameters. It should have always been spread, but since it used to only have one non-error parameter, it worked fine.

See raszi/node-tmp#25 and raszi/node-tmp#27 (and, if you're bored, raszi/node-tmp#26)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the first control path returns a string. Does spread work with non-array values?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. Good catch. No, spread doesn't work that way. Will fix.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in e2a0e5c

@@ -212,7 +212,10 @@
return workingDir;
}));
} else {
return Q.nfcall(tmp.dir, {unsafeCleanup : true});
return (Q.nfcall(tmp.dir, {unsafeCleanup : true})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I bet you could also just do return (Q.nfcall(tmp.dir, {unsafeCleanup : true}).get(0) but lol whatever thxbye

@iwehrman
Copy link
Contributor

Good times. Great patch.

iwehrman added a commit that referenced this pull request Jul 12, 2014
@iwehrman iwehrman merged commit 96feeb9 into master Jul 12, 2014
@iwehrman iwehrman deleted the jrb/bump-thirdparty branch July 12, 2014 19:47
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.

2 participants