1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib
Nuno Góis fd580c9539
fix: extract username from user should not return undefined (#5061)
This fixes a return type error by changing the logic of
`extractUsernameFromUser` to never return undefined.

In the previous code, `user` could be truthy, but that doesn't mean
`email` or `username` were defined. This assumes we always fallback to
"unknown" in those scenarios.
2023-10-17 09:18:44 +01:00
..
__snapshots__
addons feat: add new message banner events (#5055) 2023-10-16 14:30:40 +01:00
db
domain/project-health
error
features feat: import dependencies (#5044) 2023-10-17 08:22:54 +03:00
middleware
openapi feat: show dependencies only when using pro/enterprise or at least on… (#5052) 2023-10-16 20:56:06 +02:00
proxy
routes
schema
segments
services
types chore: add enterprise event (#5056) 2023-10-16 15:37:11 +02:00
util fix: extract username from user should not return undefined (#5061) 2023-10-17 09:18:44 +01:00
app.test.ts
app.ts
create-config.test.ts
create-config.ts
default-custom-auth-deny-all.ts
internals.ts
logger.test.ts
logger.ts
metric-events.ts
metrics.test.ts
metrics.ts
server-impl.test.ts
server-impl.ts