-
-
Notifications
You must be signed in to change notification settings - Fork 11
Fixed for Hapi 17+ #23
base: master
Are you sure you want to change the base?
Conversation
The build is failing✨ Good work on this PR so far! ✨ Unfortunately, the Travis CI build is failing as of e960ab1. Here's the output:
|
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.
can you make it so it works in both, hapi < 17 & hapi 17+?
In the same code is not possible. The API has changed. You will need to release a new version for 17+ |
if (!request.headers.origin) { | ||
return reply.continue() | ||
return h.continue |
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.
could you check here if h.continue
is a function and if it is, return h.continue()
, otherwise return h.continue
?
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.
they are both functions.
The Hapi team, made the call different. The plugins that works on 17+ wont work on earlier versions. So most of the plugins have a break change version. Like 1.0 works with 16- 2.0 17+
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.
Okay, got it. It’s fine, I can release a breaking version. Can you check that the tests pass? Please compare with the other open PRs 🙏 Thanks!
No description provided.