From ee526dee4628f7acb300176171e910c149160c71 Mon Sep 17 00:00:00 2001 From: Vidal Ortega <43078681+vidorteg@users.noreply.github.com> Date: Tue, 27 Jun 2023 15:13:23 -0700 Subject: [PATCH] Fix: Reverting node-fetch to v2 Reverts node-fetch to v2 as v3 requires ESM. ----- Close #5618 --- package.json | 2 +- packages/connector-puppeteer/package.json | 2 +- packages/utils-connector-tools/package.json | 2 +- packages/utils-network/package.json | 2 +- yarn.lock | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 84f07d4667d..b86720becb5 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "private": true, "resolutions": { "json-schema": "^0.4.0", - "node-fetch": "^2.6.7", + "node-fetch": "^2.x", "thenify": "^3.3.1", "tsconfig-paths": "^4.1.2" }, diff --git a/packages/connector-puppeteer/package.json b/packages/connector-puppeteer/package.json index 3fceb50833f..5c377b898fc 100644 --- a/packages/connector-puppeteer/package.json +++ b/packages/connector-puppeteer/package.json @@ -21,7 +21,7 @@ "puppeteer-core": "^13.0.1" }, "resolutions": { - "node-fetch": "^2.6.7" + "node-fetch": "^2.x" }, "description": "hint connector for browsers supported by Puppeteer", "devDependencies": { diff --git a/packages/utils-connector-tools/package.json b/packages/utils-connector-tools/package.json index 21f6adcd596..5f9e2bbe8c4 100644 --- a/packages/utils-connector-tools/package.json +++ b/packages/utils-connector-tools/package.json @@ -17,7 +17,7 @@ "data-urls": "^3.0.2", "iconv-lite": "^0.6.3", "https": "^1.0.0", - "node-fetch": "^3.3.1" + "node-fetch": "^2.x" }, "description": "hint tools for connectors", "devDependencies": { diff --git a/packages/utils-network/package.json b/packages/utils-network/package.json index 3cb739be346..af714d545ff 100644 --- a/packages/utils-network/package.json +++ b/packages/utils-network/package.json @@ -17,7 +17,7 @@ "content-type": "^1.0.5", "lodash": "^4.17.21", "https": "^1.0.0", - "node-fetch": "^3.3.1" + "node-fetch": "^2.x" }, "description": "utils for network", "devDependencies": { diff --git a/yarn.lock b/yarn.lock index d5a431ed2fa..7d607c9e135 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8016,10 +8016,10 @@ node-addon-api@^4.3.0: resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-4.3.0.tgz#52a1a0b475193e0928e98e0426a0d1254782b77f" integrity sha512-73sE9+3UaLYYFmDsFZnqCInzPyh3MqIwZO9cw58yIqAZhONrrabrYyYe3TuIqtIiOuTXVhsGau8hcrhhwSsDIQ== -node-fetch@2.6.1, node-fetch@2.6.5, node-fetch@3.3.0, node-fetch@^2.6.1, node-fetch@^2.6.7, node-fetch@^3.3.1: - version "2.6.7" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad" - integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ== +node-fetch@2.6.1, node-fetch@2.6.5, node-fetch@3.3.0, node-fetch@^2.6.1, node-fetch@^2.6.7, node-fetch@^2.x: + version "2.6.11" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.11.tgz#cde7fc71deef3131ef80a738919f999e6edfff25" + integrity sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w== dependencies: whatwg-url "^5.0.0"