pulsar-edit / package-backend

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

The query parameter `rename` on the new version endpoint is handled like a Boolean, but should be handled as a proper value #108

Closed confused-Techie closed 1 year ago

confused-Techie commented 1 year ago

Currently we assume rename is a boolean, but seems this actually shows the value of the renamed packages name. We don't have to utilize that value just yet, as we have already built a system that won't use it. But we should change the handling in query.js to be able to accept this, and realize when a user is attempting to rename a package, even though rename is not true or false