From 78b6b878bd8ffceab02a5108addc285933a9f80b Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 21 Jun 2024 15:15:54 +0100 Subject: [PATCH] Remove domexception polyfill, has been native in NodeJS since v17 (#4253) Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- package.json | 2 -- spec/setupTests.ts | 4 ---- yarn.lock | 12 ------------ 3 files changed, 18 deletions(-) diff --git a/package.json b/package.json index e9d5d0fb1..e4c1f5f5f 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,6 @@ "@types/bs58": "^4.0.1", "@types/content-type": "^1.1.5", "@types/debug": "^4.1.7", - "@types/domexception": "^4.0.0", "@types/jest": "^29.0.0", "@types/node": "18", "@types/sdp-transform": "^2.4.5", @@ -96,7 +95,6 @@ "@typescript-eslint/parser": "^7.0.0", "babel-jest": "^29.0.0", "debug": "^4.3.4", - "domexception": "^4.0.0", "eslint": "8.57.0", "eslint-config-google": "^0.14.0", "eslint-config-prettier": "^9.0.0", diff --git a/spec/setupTests.ts b/spec/setupTests.ts index 20c03b8ef..2c16f6632 100644 --- a/spec/setupTests.ts +++ b/spec/setupTests.ts @@ -14,10 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -import DOMException from "domexception"; - -global.DOMException = DOMException as typeof global.DOMException; - jest.mock("../src/http-api/utils", () => ({ ...jest.requireActual("../src/http-api/utils"), // We mock timeoutSignal otherwise it causes tests to leave timers running diff --git a/yarn.lock b/yarn.lock index 44c69bbde..0fe2276b8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2023,13 +2023,6 @@ dependencies: "@types/ms" "*" -"@types/domexception@^4.0.0": - version "4.0.3" - resolved "https://registry.yarnpkg.com/@types/domexception/-/domexception-4.0.3.tgz#b2ed09e3d3a83c264f5eb7e2a803d319ac441d1f" - integrity sha512-lYPlkldpQqYTgqj5tJgKg5UEa6/vOsaiCc54q6pJ1LPNphJ5UjE4yFjZx/bsvsijzS6Z9OkJYvFiAZZEvYy+Gw== - dependencies: - "@types/webidl-conversions" "*" - "@types/eslint@^8.56.5": version "8.56.10" resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-8.56.10.tgz#eb2370a73bf04a901eeba8f22595c7ee0f7eb58d" @@ -2155,11 +2148,6 @@ resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-9.0.8.tgz#7545ba4fc3c003d6c756f651f3bf163d8f0f29ba" integrity sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA== -"@types/webidl-conversions@*": - version "7.0.3" - resolved "https://registry.yarnpkg.com/@types/webidl-conversions/-/webidl-conversions-7.0.3.tgz#1306dbfa53768bcbcfc95a1c8cde367975581859" - integrity sha512-CiJJvcRtIgzadHCYXw7dqEnMNRjhGZlYK05Mj9OyktqV8uVT8fD2BFOB7S1uwBE3Kj2Z+4UyPmFw/Ixgw/LAlA== - "@types/yargs-parser@*": version "21.0.3" resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.3.tgz#815e30b786d2e8f0dcd85fd5bcf5e1a04d008f15"