Skip to content

Commit

Permalink
Add node-fetch and use it for tenant list step
Browse files Browse the repository at this point in the history
  • Loading branch information
nturinski committed Oct 26, 2023
1 parent 6bb41d6 commit ceca766
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 5 deletions.
45 changes: 42 additions & 3 deletions auth/package-lock.json

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

5 changes: 3 additions & 2 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.1",
"version": "1.3.1-beta",
"description": "Azure authentication helpers for Visual Studio Code",
"tags": [
"azure",
Expand Down Expand Up @@ -52,6 +52,7 @@
},
"dependencies": {
"@azure/arm-subscriptions": "^5.1.0",
"@azure/ms-rest-azure-env": "^2.0.0"
"@azure/ms-rest-azure-env": "^2.0.0",
"node-fetch": "2.6.7"
}
}
1 change: 1 addition & 0 deletions auth/src/VSCodeAzureSubscriptionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

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 'node-fetch';
import * as vscode from 'vscode';
import type { AzureAuthentication } from './AzureAuthentication';
import type { AzureSubscription, SubscriptionId, TenantId } from './AzureSubscription';
Expand Down

0 comments on commit ceca766

Please sign in to comment.