-
Notifications
You must be signed in to change notification settings - Fork 223
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
The framework does not recognize a Bluebird Promise #84
Comments
With native |
I totally agree with you. I didn't have the time to look in a way to convert bluebird promises into a native promise…probably: return new Promise((resolve, reject)=>bluebird.then(resolve).catch(reject)) Anyway I was wondering whether a simple check if |
I think your wrapper would be right, although I haven't ever use bluebird directly. The check for a |
It definitely make sense. I'll try to figure it out somehow. |
Yep! Thanks for the input, sorry I couldn't help more. Let me know if you have any other suggestions, I have been waiting to publish the |
|
Good point. I will take a look at that before I publish, probably later this weekend. |
I am going to close this in favor of #87. |
Hey — I've been this library for some time (in particular the
next
version) and so far it has been working great, thanks.Now, I'm in a migration where for some reasons the promises being returned from the code aren't native from Node, but rather from Bluebird.
Therefore
node-migrate
does not recognize them (as they're notinstanceof Promise
) and switches back to callbacks, that aren't provided of course.It would be good if it could work with Bluebird promises as well and more importantly, if no async mechanism is detected, a warning could be shown.
Thanks!
The text was updated successfully, but these errors were encountered: