Skip to content

Commit 0b6db59

Browse files
authored
fix: pin Keygen.io integration to v1.0 (#6909)
1 parent 714d29f commit 0b6db59

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.changeset/strong-carrots-invent.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"app-builder-lib": patch
3+
"electron-updater": patch
4+
---
5+
6+
Pin Keygen publisher/updater integration to API version v1.0.

packages/app-builder-lib/src/publish/KeygenPublisher.ts

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export class KeygenPublisher extends HttpPublisher {
5959
headers: {
6060
Accept: "application/vnd.api+json",
6161
"Content-Length": dataLength,
62+
"Keygen-Version": "1.0",
6263
},
6364
}
6465
await httpExecutor.doApiRequest(configureRequestOptions(upload, this.auth, "PUT"), this.context.cancellationToken, requestProcessor)
@@ -72,6 +73,7 @@ export class KeygenPublisher extends HttpPublisher {
7273
headers: {
7374
"Content-Type": "application/vnd.api+json",
7475
Accept: "application/vnd.api+json",
76+
"Keygen-Version": "1.0",
7577
},
7678
}
7779
const data = {
@@ -105,6 +107,7 @@ export class KeygenPublisher extends HttpPublisher {
105107
path: `${this.basePath}/${releaseId}`,
106108
headers: {
107109
Accept: "application/vnd.api+json",
110+
"Keygen-Version": "1.0",
108111
},
109112
}
110113
await httpExecutor.request(configureRequestOptions(req, this.auth, "DELETE"), this.context.cancellationToken)

packages/electron-updater/src/providers/KeygenProvider.ts

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export class KeygenProvider extends Provider<UpdateInfo> {
2828
channelUrl,
2929
{
3030
Accept: "application/vnd.api+json",
31+
"Keygen-Version": "1.0",
3132
},
3233
cancellationToken
3334
)

0 commit comments

Comments
 (0)