Nicolas Morel

Results 175 comments of Nicolas Morel

Do you know what polyfills are missing?

It's possible, but I think you'll have to deal with operator priorities yourself. I'm not too familiar with your code, but it might look like this: ```js Joi.when(property, { switch:...

Would that work for you? https://runkit.com/embed/d92dw3kq780u It checks your condition, if it's truthy returns self so that d === d which activates the `then`, otherwise `null` so that it doesn't...

That was my mistake, it should have been (notice the required): ```js Joi.object({ a: Joi.number().required(), b: Joi.number().required(), c: Joi.number().required(), d: Joi.number().required().when(Joi.valid(Joi.x('{ if(a >= 10 && b < 5 || c...

The other `required` is there for the match, it behaves like any other joi schema, if you don't set it, `undefined` is a valid match, so without `d`, `then` would...

The [documentation](https://joi.dev/api/?v=17.9.1#expressiontemplate-options---aliases-x) is rather complete on this topic, joi could support more functions or even custom ones, but that's not planned right now. `x` "returns" `d` or `null`, and `required`...

I have tried about every possible way to hook `runWithAsyncContext` to the request, has anyone succeeded using it? hapi 21 not being instrumented in the beta (https://github.com/open-telemetry/opentelemetry-js-contrib/pull/1985), it's also not...

Cool, I have tried enforcing the new release with a pnpm override but it didn't have any breadcrumbs, I hope the full release will 🤞🏻

I've been also following v8 development as v7 had this issue. So far, when I tested v8.0.0, it had no breadcrumbs at all, and now testing again with v8.3.0, it...

For my tests, I intentionally throw an error in a handler, and I'm getting http breadcrumbs that happened long before the request was even started, things that happened while the...