pulsar-edit / package-backend

Pulsar Server Backend for Packages
https://api.pulsar-edit.dev
MIT License
11 stars 11 forks source link

Check name availability via name within `package.json` #220

Closed confused-Techie closed 5 months ago

confused-Techie commented 5 months ago

Requirements

Description of the Change

Previously, the backend would use the name of the repository for the initial name availability check, as well as would use this later on when checking that publication was successful.

But the repo name is under no obligation to match the name of the package, and in the cases where it doesn't this logic quickly breaks down, to not properly determining if the actual package name is available, as well as will fail on checking if the package was successfully published