Skip to content

Problem with useragent package #49

@davidjamesstone

Description

@davidjamesstone

Hi @nlf

This isn't an issue with blankie per-se, more its dependencies but I thought I'd raise it with you and that you'd be interested.

The problem comes from the dependency chain blankie -> @hapi/scooter -> useragent -> semver.

Firstly, the useragent package doesn't look like it is maintained anymore, if fact just a couple of days ago someone began a fork of it.

My problem in using blankie comes from the fact that useragent defines semver as a devDep.
In production, we run npm prune --production. This removes sermver and breaks the application.

There's an open PR for this on the useragent repo from back in 2020.

Anyway, like I say - not an issue with your excellent hapi plugin but a downstream problem but unfortunately means I can't use it.

Best wishes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions