Skip to content

npm hook ls duplicates hook name prefixes #4201

Closed

Description

@Dionysusnu

Hooks for scopes get a double prefix, ie @@scope, when shown with the npm hook ls command. This is due to the response from the web request already including the prefix in the name field, and the following lines of code then locally adding the prefix again, duplicating it.

Activity

  1. added
    Bug
    Release 8.x
    Good First Issue
    on Jan 11, 2022
  2. ashutoshdhande commented on Jan 12, 2022

    @ashutoshdhande

    @Dionysusnu can i work on this issue? if yes any extra guidance you would like to provide

  3. Dionysusnu commented on Jan 12, 2022

    @Dionysusnu
    Author

    It appears that the hooks feature has been disabled on the server side anyways, so I wouldn't waste time on a low priority thing like this.

  4. Bruce-Hopkins commented on Mar 28, 2022

    @Bruce-Hopkins

    If this has been disabled on the server-side, can't we close the issue?

  5. ljharb commented on Mar 28, 2022

    @ljharb
    Contributor

    @Bruce-Hopkins it could still be used by private registries.

  6. Dionysusnu commented on Apr 13, 2022

    @Dionysusnu
    Author

    If this has been disabled on the server-side, can't we close the issue?

    To clarify, the hooks can still get created, modified, and all that around it, so the bug still exists.

    However, in my testing, the actual hook configured URL was never accessed when the hook should have triggered. That's what I meant by "seemingly disabled on the server side".

  7. 552020 commented on May 30, 2022

    @552020

    Since this issue is tagged as 'good first issue' and since people looking for 'good first issues' are looking for good first issues that can be assigned now, maybe it would be appropriate to remove the tag.

  8. ljharb commented on May 30, 2022

    @ljharb
    Contributor

    @552020 it still is one. The above comments are just folks who don’t think it’s worth the effort, but nobody from npm has agreed with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugGood First IssueRelease 8.x

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions