Skip to content

Commit

Permalink
auth: Use built-in fetch instead of cross-fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
alexweininger committed Oct 26, 2023
1 parent 118766f commit a33c098
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 60 deletions.
72 changes: 17 additions & 55 deletions auth/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions auth/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@microsoft/vscode-azext-azureauth",
"author": "Microsoft Corporation",
"version": "1.3.0",
"version": "1.3.1",
"description": "Azure authentication helpers for Visual Studio Code",
"tags": [
"azure",
Expand Down Expand Up @@ -36,7 +36,7 @@
"@types/glob": "^8.1.0",
"@types/html-to-text": "^8.1.0",
"@types/mocha": "^7.0.2",
"@types/node": "^16.0.0",
"@types/node": "^18.18.7",
"@types/semver": "^7.3.9",
"@types/uuid": "^9.0.1",
"@types/vscode": "1.76.0",
Expand All @@ -52,7 +52,6 @@
},
"dependencies": {
"@azure/arm-subscriptions": "^5.1.0",
"@azure/ms-rest-azure-env": "^2.0.0",
"cross-fetch": "^4.0.0"
"@azure/ms-rest-azure-env": "^2.0.0"
}
}
1 change: 0 additions & 1 deletion auth/src/VSCodeAzureSubscriptionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import type { SubscriptionClient, TenantIdDescription } from '@azure/arm-subscriptions'; // Keep this as `import type` to avoid actually loading the package before necessary
import type { TokenCredential } from '@azure/core-auth'; // Keep this as `import type` to avoid actually loading the package (at all, this one is dev-only)
import fetch from 'cross-fetch';
import * as vscode from 'vscode';
import type { AzureAuthentication } from './AzureAuthentication';
import type { AzureSubscription, SubscriptionId, TenantId } from './AzureSubscription';
Expand Down

0 comments on commit a33c098

Please sign in to comment.