Skip to content

Commit 23450d0

Browse files
committed
bump versions
1 parent 70acf21 commit 23450d0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

index.mjs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@
44
export async function CopilotAuthPlugin({ client }) {
55
const CLIENT_ID = "Iv1.b507a08c87ecfe98";
66
const HEADERS = {
7-
"User-Agent": "GitHubCopilotChat/0.35.0",
8-
"Editor-Version": "vscode/1.99.3",
9-
"Editor-Plugin-Version": "copilot-chat/0.35.0",
7+
"User-Agent": "GitHubCopilotChat/0.32.4",
8+
"Editor-Version": "vscode/1.105.1",
9+
"Editor-Plugin-Version": "copilot-chat/0.32.4",
1010
"Copilot-Integration-Id": "vscode-chat",
1111
};
1212

1313
function normalizeDomain(url) {
14-
return url
15-
.replace(/^https?:\/\//, "")
16-
.replace(/\/$/, "");
14+
return url.replace(/^https?:\/\//, "").replace(/\/$/, "");
1715
}
1816

1917
function getUrls(domain) {
@@ -82,7 +80,9 @@ export async function CopilotAuthPlugin({ client }) {
8280
refresh: info.refresh,
8381
access: tokenData.token,
8482
expires: tokenData.expires_at * 1000,
85-
...(info.enterpriseUrl && { enterpriseUrl: info.enterpriseUrl }),
83+
...(info.enterpriseUrl && {
84+
enterpriseUrl: info.enterpriseUrl,
85+
}),
8686
},
8787
});
8888
info.access = tokenData.token;

0 commit comments

Comments
 (0)