opencode-copilot-auth
Advanced tools
| # opencode-copilot-auth | ||
| Package on npm: https://www.npmjs.com/package/opencode-copilot-auth | ||
| ## Updating | ||
| ```zsh | ||
| ./script/publish.ts | ||
| ``` |
+7
-7
@@ -7,5 +7,5 @@ /** | ||
| const HEADERS = { | ||
| "User-Agent": "GitHubCopilotChat/0.35.0", | ||
| "Editor-Version": "vscode/1.99.3", | ||
| "Editor-Plugin-Version": "copilot-chat/0.35.0", | ||
| "User-Agent": "GitHubCopilotChat/0.32.4", | ||
| "Editor-Version": "vscode/1.105.1", | ||
| "Editor-Plugin-Version": "copilot-chat/0.32.4", | ||
| "Copilot-Integration-Id": "vscode-chat", | ||
@@ -15,5 +15,3 @@ }; | ||
| function normalizeDomain(url) { | ||
| return url | ||
| .replace(/^https?:\/\//, "") | ||
| .replace(/\/$/, ""); | ||
| return url.replace(/^https?:\/\//, "").replace(/\/$/, ""); | ||
| } | ||
@@ -87,3 +85,5 @@ | ||
| expires: tokenData.expires_at * 1000, | ||
| ...(info.enterpriseUrl && { enterpriseUrl: info.enterpriseUrl }), | ||
| ...(info.enterpriseUrl && { | ||
| enterpriseUrl: info.enterpriseUrl, | ||
| }), | ||
| }, | ||
@@ -90,0 +90,0 @@ }); |
+1
-1
| { | ||
| "name": "opencode-copilot-auth", | ||
| "version": "0.0.4", | ||
| "version": "0.0.5", | ||
| "main": "./index.mjs", | ||
@@ -5,0 +5,0 @@ "devDependencies": { |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
12142
1.37%7
16.67%0
-100%10
Infinity%