Use global fetch and crypto (#221736)

Now that we're on Node 20, we can just use the global fetch and crypto which work the same in node and in the browser.
This commit is contained in:
Tyler James Leonhardt
2024-07-15 10:58:31 -07:00
committed by GitHub
parent 530e9249cc
commit 86495e947b
9 changed files with 2 additions and 58 deletions

View File

@@ -1,6 +0,0 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export const crypto = globalThis.crypto;

View File

@@ -1,6 +0,0 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export const fetching = fetch;