All new code requires tests to ensure against regressions.
However, if your PR contains zero code changes, feel free to select the checkmark below to indicate so.
[X] Have you ran tests against this code?
[ ] This PR contains zero code changes.
Description of the Change
This PR implements a fix being experienced in production when publishing a new version.
When attempting to publish a new version the newest package data should be passed to verify ownership rather than the data last stored on the DB incase of a package name changed or the like.
Additionally the check to protect vcs.ownership() from accessing an invalid object of packObj.repository.type was originally, inaccurately checking for typeof packObj === "object" rather than typeof packObj.repository === "object"
Requirements
Filling out the template is required.
All new code requires tests to ensure against regressions.
[X] Have you ran tests against this code?
[ ] This PR contains zero code changes.
Description of the Change
This PR implements a fix being experienced in production when publishing a new version.
When attempting to publish a new version the newest package data should be passed to verify ownership rather than the data last stored on the DB incase of a package name changed or the like.
Additionally the check to protect
vcs.ownership()
from accessing an invalid object ofpackObj.repository.type
was originally, inaccurately checking fortypeof packObj === "object"
rather thantypeof packObj.repository === "object"