Skip to content

Commit

Permalink
fix: pin Keygen.io integration to v1.0 (#6909)
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Jun 3, 2022
1 parent 714d29f commit 0b6db59
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/strong-carrots-invent.md
@@ -0,0 +1,6 @@
---
"app-builder-lib": patch
"electron-updater": patch
---

Pin Keygen publisher/updater integration to API version v1.0.
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 0b6db59

Please sign in to comment.