Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Yoann MALLEMANCHE
    @YoannMa
    If you want, you can ignore this leak
    -I, --ignore - ignore a list of globals for the leak detection (comma separated), this is an alias of globals property in .labrc file. To ignore symbols, pass the symbol's string representation (e.g. Symbol(special)).
    Will Hoover
    @ugate
    That may be what I'll do if I can't find the cause of the leak. Thanks for the feedback @YoannMa !
    Yoann MALLEMANCHE
    @YoannMa
    It's not like you got much choice anyway, if you use Sentry for example, the library set a global __SENTRY__ so you need to ignore it....
    Will Hoover
    @ugate
    Good point!
    Will Hoover
    @ugate
    @YoannMa it looks like @hapi/lab has some issues with Node v12. I ran the same tests under Node v11 and no global leaks were detected, but when I run the same tests in Node v12 I get "The following leaks were detected:globalThis"
    Ben Chiciudean
    @benydc
    is there a API versioning for 18?
    so I can version my routes
    Yoann MALLEMANCHE
    @YoannMa
    There are plugin for it, but Hapi does not support it out of the box I believe
    Ben Chiciudean
    @benydc
    ahh, was looking for an out of the box support, I will check the plugin
    thanks
    Yoann MALLEMANCHE
    @YoannMa
    IMO, Hapi won't ever support api versioning out of the box
    CragVFX
    @CragVFX
    Does anyone know where I can find the hapi docs for v15? It appears like the site only goes back to 16.8 and I need to make a change to a v15 legacy route
    Tõnis Ostrat
    @tonisostrat
    you can choose a different tag depending on the specific version
    CragVFX
    @CragVFX
    @tonisostrat thanks thats what I was looking for 😀
    ahnsj17
    @ahnsj17
    @tonisostrat Hi there :)
    Simon Renoult
    @simonrenoult
    Hi there! I'm using Hapi with TypeScript. I have a function initServer(server: Server) where Server is imported from @hapi/hapi.Server. When I pass to this function a variable named server: Hapi.Server = new Hapi.Server() where Hapi is imported from @types/hapi, the compiler yields the error Property 'token' is missing in type 'import("/home/foo/bar/myproject/node_modules/@types/hapi/index").AuthCredentials' but required in type 'import("/home/foo/bar/myproject/node_modules/@types/hapi__hapi/index").AuthCredentials'. Why are the two types different? How can I solve this problem? Thanks :)
    Yoann MALLEMANCHE
    @YoannMa
    Sorry I cannot help you with TS related issue, I would advise asking in the slack instead, way more active, you can find the link on the website https://hapi.dev in the footer or support page
    BTW @types/hapi is for package the package hapi, and the official package moved to @hapi/hapi this year, and you need to use @types/hapi__hapi
    the TS type are not made by the Hapi team IIRC
    This may be the issue you are facing @simonrenoult
    Neeraj Kaushik
    @neerajincaendo
    Hey all , I am unable to use flash messages using yar , does anyone have any idea ?

    await server.register([ { plugin: require('./routes/surveys') }, { plugin: require('./routes/companies') }, { plugin: yar, options: { cookieOptions: { password: 'the-password-must-be-at-least-32-characters-long', isSecure: true } } }, Vision ]);

    Using it like this

    static inviteUserShowForm(request, h) { request.yar.set('success', 'Invitation send successfully.'); return h.view('invite-user'); }

    Yoann MALLEMANCHE
    @YoannMa
    Hi, I would recommend asking on the slack channel instead, this Gitter is more or less inactive
    Neeraj Kaushik
    @neerajincaendo
    Thanks @YoannMa
    Abesse Smahi
    @smahi
    Hi
    Is there a way to catch all unhandled error exception in one place ( in some kind of midleware) ?
    Yoann MALLEMANCHE
    @YoannMa
    Hapi will return a 500 if your handler throw the exception, you can catch all of them in a preResponse extension
    Abesse Smahi
    @smahi
    @YoannMa Thank you so much.
    Abesse Smahi
    @smahi
    Is it possible to replace Joi for data validation with an other validation package let say for example https://github.com/epoberezkin/ajv
    Yoann MALLEMANCHE
    @YoannMa
    Abesse Smahi
    @smahi
    @YoannMa Thank you so much.
    Yoann MALLEMANCHE
    @YoannMa
    no worries
    Samuel Joli
    @Samueljoli
    Has anyone who's using hapi-swagger been able to successfully surface joi alternatives in SwaggerUI?
    David Clarkson
    @djclarkson
    Hey all I haven't touched hapi for a few years. Curious what is the most popular auth strategy for user accounts these days?
    Yoann MALLEMANCHE
    @YoannMa
    Hi @djclarkson , I would recommend asking on the slack channel instead, this Gitter is mostly inactive
    David Clarkson
    @djclarkson
    Ahh ok thanks.
    Alexander Cucer
    @AlexanderC
    Hi guys, have anybody of you experienced the following error? "TypeError: this.$_terms[key].slice is not a function"
    hapi 19, joi 17
    this is when connecting for example nes or other well known modules
    Alexander Cucer
    @AlexanderC
    seems like all for..in loops are failing on "super" key
    Yoann MALLEMANCHE
    @YoannMa
    Hi @AlexanderC You might want to open an issue on ask on the slack channel instead
    Alexander Cucer
    @AlexanderC
    thx
    Yoann MALLEMANCHE
    @YoannMa
    you're welcome
    millerick
    @millerick
    Based on this comment: https://github.com/hapijs/joi/issues/1601#issuecomment-431677851 what is an "inlined option" vs not?
    Arthur Fücher
    @afucher
    Hey all, I'm looking for an updated example app to check structure folders and architecture patterns used. Someone know any to share?
    Alexandre Verri
    @alexandreverri_twitter
    Hi guys, I'm using Joi Validation which is awesome. I'm having a hard time trying to implement a validation-renaming action on a schema. Do you know how to implement this? hapijs/joi#2307
    Yoann MALLEMANCHE
    @YoannMa
    Hi @alexandreverri_twitter , I would recommend asking on the slack channel instead, this Gitter is mostly inactive. You can find the link on hapi's website
    Amit Bhavikatti
    @amit4cult
    Hi, do you guys recommend me to save user details like name, token, email in my database when a oauth login is successful ?