-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
@@ -215,7 +215,7 @@ | |||
return Q.nfcall(tmp.dir, {unsafeCleanup : true}); | |||
} | |||
}) | |||
.then(function (workingDir) { | |||
.spread(function (workingDir) { |
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.
Wut?
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.
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)
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.
But the first control path returns a string. Does spread work with non-array values?
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.
Oops. Good catch. No, spread doesn't work that way. Will fix.
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.
Fixed in e2a0e5c
@@ -212,7 +212,10 @@ | |||
return workingDir; | |||
})); | |||
} else { | |||
return Q.nfcall(tmp.dir, {unsafeCleanup : true}); | |||
return (Q.nfcall(tmp.dir, {unsafeCleanup : 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 bet you could also just do return (Q.nfcall(tmp.dir, {unsafeCleanup : true}).get(0)
but lol whatever thxbye
Good times. Great patch. |
Bump third party dependencies
No description provided.