From ae197973e604fce28cb73ee666cd0c8b57775194 Mon Sep 17 00:00:00 2001 From: Maxime Dufour Date: Tue, 11 Jun 2024 06:45:59 +0000 Subject: [PATCH] Fix crypto after 1.20 node environment (vscode 1.90.0) Signed-off-by: Maxime Dufour --- package-lock.json | 2 +- package.json | 2 +- src/cloud/cloud.ts | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6351331..7184215 100644 --- a/package-lock.json +++ b/package-lock.json @@ -44,7 +44,7 @@ "vscode-extension-tester": "8.2.0" }, "engines": { - "vscode": "^1.73.0" + "vscode": "^1.89.1" } }, "node_modules/@azure/abort-controller": { diff --git a/package.json b/package.json index 84ab207..1720676 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "url": "https://github.com/outscale-dev/vscode-osc-viewer/issues" }, "engines": { - "vscode": "^1.73.0" + "vscode": "^1.89.1" }, "categories": [ "Other" diff --git a/src/cloud/cloud.ts b/src/cloud/cloud.ts index c47715d..6f11eee 100644 --- a/src/cloud/cloud.ts +++ b/src/cloud/cloud.ts @@ -6,7 +6,6 @@ import { ResponseError } from "outscale-api"; import { OutputChannel } from "../logs/output_channel"; global.Headers = fetch.Headers; -global.crypto = require('crypto'); function getVersion(): string { const extensionContext = vscode.extensions.getExtension('outscale.osc-viewer');