It was made by former maintainer for use in the Agent.
Readme says:
“... debug-custom is a thin wrapper around debug that allows the user to hide whatever prefix is used to prevent conflicts. debug-custom also makes it easier to add and remove debug levels dynamically under program control.”
Discussion
As of June 17, 2022
debug Last published 3 months ago ago, has 182,971,812 Weekly Downloads and 43,521 Dependents.
debug-custom was Last published 2 years ago, has 3,037 Weekly Downloads and 3 Dependents (2 of which are SolarWinds Agents).
Ideally, if a dependency is required, it is better to use one that is well maintained, popular and substantial (i.e. not a "thin wrapper").
Since debug-custom is written in plain JavaScript (no transpiling and packaging involved) and is MIT licensed "unbundeling" is possible and simple.
"unbundeling" allows:
Keeping functionality as-is.
Ability to keep all dependencies up to date.
Control of the code in case change is needed due to upstream breaking changes (security).
Overview
This pull request "unbundles"
debug-custom
package dependency into local module. That local module depends on the actively maintaineddebug
package.Status:
debug-custom
was introduced in https://github.com/appoptics/appoptics-apm-node/pull/54 replacingdebug
It was made by former maintainer for use in the Agent. Readme says:
Discussion
As of June 17, 2022
debug
Last published 3 months ago ago, has 182,971,812 Weekly Downloads and 43,521 Dependents.debug-custom
was Last published 2 years ago, has 3,037 Weekly Downloads and 3 Dependents (2 of which are SolarWinds Agents).Ideally, if a dependency is required, it is better to use one that is well maintained, popular and substantial (i.e. not a "thin wrapper").
Since
debug-custom
is written in plain JavaScript (no transpiling and packaging involved) and is MIT licensed "unbundeling" is possible and simple."unbundeling" allows:
Change
debug-custom
was removed from dependencies.debug
was added to dependencies.Notes:
nh-main
. Agent built frommaster
will maintain dependency`.