@microsoft/vscode-azext-azureauth 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,7 @@ var __asyncValues = (this && this.__asyncValues) || function (o) {
21
21
  };
22
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
23
  exports.VSCodeAzureSubscriptionProvider = void 0;
24
- const cross_fetch_1 = require("cross-fetch");
24
+ const node_fetch_1 = require("node-fetch"); // have to explicitly use node-fetch v2.6.7 otherwise when @azure/client-core makes a streaming request, it fails on windows
25
25
  const vscode = require("vscode");
26
26
  const NotSignedInError_1 = require("./NotSignedInError");
27
27
  const getSessionFromVSCode_1 = require("./getSessionFromVSCode");
@@ -76,7 +76,7 @@ class VSCodeAzureSubscriptionProvider extends vscode.Disposable {
76
76
  */
77
77
  getTenants() {
78
78
  return __awaiter(this, void 0, void 0, function* () {
79
- const listTenantsResponse = yield (0, cross_fetch_1.default)('https://management.azure.com/tenants?api-version=2022-12-01', {
79
+ const listTenantsResponse = yield (0, node_fetch_1.default)('https://management.azure.com/tenants?api-version=2022-12-01', {
80
80
  headers: {
81
81
  Authorization: `Bearer ${yield this.getToken()}`,
82
82
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@microsoft/vscode-azext-azureauth",
3
3
  "author": "Microsoft Corporation",
4
- "version": "1.3.0",
4
+ "version": "1.3.2",
5
5
  "description": "Azure authentication helpers for Visual Studio Code",
6
6
  "tags": [
7
7
  "azure",
@@ -36,7 +36,8 @@
36
36
  "@types/glob": "^8.1.0",
37
37
  "@types/html-to-text": "^8.1.0",
38
38
  "@types/mocha": "^7.0.2",
39
- "@types/node": "^16.0.0",
39
+ "@types/node": "^18.18.7",
40
+ "@types/node-fetch": "2.6.7",
40
41
  "@types/semver": "^7.3.9",
41
42
  "@types/uuid": "^9.0.1",
42
43
  "@types/vscode": "1.76.0",
@@ -53,6 +54,6 @@
53
54
  "dependencies": {
54
55
  "@azure/arm-subscriptions": "^5.1.0",
55
56
  "@azure/ms-rest-azure-env": "^2.0.0",
56
- "cross-fetch": "^4.0.0"
57
+ "node-fetch": "2.6.7"
57
58
  }
58
59
  }