From b7b30e07ff34fb01a65ab4ff89e79c346dfe757a Mon Sep 17 00:00:00 2001 From: dudu Date: Fri, 4 Oct 2024 18:32:10 +0800 Subject: [PATCH 1/2] fix: remove global-binding --- src/extension.ts | 1 - src/setup/global-binding.ts | 18 ------------------ 2 files changed, 19 deletions(-) delete mode 100644 src/setup/global-binding.ts diff --git a/src/extension.ts b/src/extension.ts index c9648001..4b29c237 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -1,4 +1,3 @@ -import '@/setup/global-binding' import { setupExtTreeView } from '@/tree-view/tree-view-register' import { setupCmd } from '@/setup/setup-cmd' import { globalCtx } from '@/ctx/global-ctx' diff --git a/src/setup/global-binding.ts b/src/setup/global-binding.ts deleted file mode 100644 index 9e48f997..00000000 --- a/src/setup/global-binding.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* eslint-disable */ - -import fetch, { Headers, Request, Response } from 'node-fetch' - -// @ts-ignore -global.fetch = fetch -// @ts-ignore -global.Headers = Headers -// @ts-ignore -global.Request = Request -// @ts-ignore -global.Response = Response - -import { Blob, File, FormData } from 'formdata-node' - -global.FormData = FormData -global.Blob = Blob -global.File = File From 19558e2c1fc32c5d69d72696f6fdf67fea1c3d52 Mon Sep 17 00:00:00 2001 From: dudu Date: Fri, 4 Oct 2024 20:10:47 +0800 Subject: [PATCH 2/2] fix(ci): update node version --- .github/workflows/build-check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml index 54c7e216..7acc6fc7 100644 --- a/.github/workflows/build-check.yml +++ b/.github/workflows/build-check.yml @@ -65,7 +65,7 @@ jobs: - name: Setup node.js uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 20.x cache: 'npm' - name: Step rust toolchain @@ -151,7 +151,7 @@ jobs: - name: Setup node.js uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 20.x cache: 'npm' - name: Step rust toolchain