Skip to content

Commit

Permalink
feat: lock keygen integration to v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed May 31, 2022
1 parent a8418ac commit d06b072
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/app-builder-lib/src/publish/KeygenPublisher.ts
Expand Up @@ -59,6 +59,7 @@ export class KeygenPublisher extends HttpPublisher {
headers: {
Accept: "application/vnd.api+json",
"Content-Length": dataLength,
"Keygen-Version": "1.0",
},
}
await httpExecutor.doApiRequest(configureRequestOptions(upload, this.auth, "PUT"), this.context.cancellationToken, requestProcessor)
Expand All @@ -72,6 +73,7 @@ export class KeygenPublisher extends HttpPublisher {
headers: {
"Content-Type": "application/vnd.api+json",
Accept: "application/vnd.api+json",
"Keygen-Version": "1.0",
},
}
const data = {
Expand Down Expand Up @@ -105,6 +107,7 @@ export class KeygenPublisher extends HttpPublisher {
path: `${this.basePath}/${releaseId}`,
headers: {
Accept: "application/vnd.api+json",
"Keygen-Version": "1.0",
},
}
await httpExecutor.request(configureRequestOptions(req, this.auth, "DELETE"), this.context.cancellationToken)
Expand Down
1 change: 1 addition & 0 deletions packages/electron-updater/src/providers/KeygenProvider.ts
Expand Up @@ -28,6 +28,7 @@ export class KeygenProvider extends Provider<UpdateInfo> {
channelUrl,
{
Accept: "application/vnd.api+json",
"Keygen-Version": "1.0",
},
cancellationToken
)
Expand Down

0 comments on commit d06b072

Please sign in to comment.