@scarf/scarf is used for analytics, but it can not work with pnpm or bun which block its lifecycle scripts by default, and recently npm users are also moving towards using ignore-scripts to harden against supply chain attacks. The gathered analytics data will not be accurate in these cases and therefore I suggest removing the dependency from swagger-ui-dist and other packages.
@scarf/scarfis used for analytics, but it can not work withpnpmorbunwhich block its lifecycle scripts by default, and recentlynpmusers are also moving towards usingignore-scriptsto harden against supply chain attacks. The gathered analytics data will not be accurate in these cases and therefore I suggest removing the dependency fromswagger-ui-distand other packages.