Fetch existing package details as JSON

This commit is contained in:
David Wilson
2018-10-30 09:03:57 -07:00
parent 0423bf75ac
commit be2eea05cf

View File

@@ -93,7 +93,8 @@ module.exports = async function (packageRepoName, apiToken, version, artifacts)
const existingPackageDetails =
await request({
uri: `https://${apiToken}:@packagecloud.io/api/v1/repos/AtomEditor/${packageRepoName}/package/${type}/${distroName}/${distroVersion}/atom${releaseSuffix || ''}/${arch}/${versionJsonPath}.json`,
method: 'get'
method: 'get',
json: true
})
if (existingPackageDetails && existingPackageDetails.destroy_url) {