Skip to content

Commit 78b6b87

Browse files
authored
Remove domexception polyfill, has been native in NodeJS since v17 (#4253)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 4ccb72c commit 78b6b87

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
"@types/bs58": "^4.0.1",
8888
"@types/content-type": "^1.1.5",
8989
"@types/debug": "^4.1.7",
90-
"@types/domexception": "^4.0.0",
9190
"@types/jest": "^29.0.0",
9291
"@types/node": "18",
9392
"@types/sdp-transform": "^2.4.5",
@@ -96,7 +95,6 @@
9695
"@typescript-eslint/parser": "^7.0.0",
9796
"babel-jest": "^29.0.0",
9897
"debug": "^4.3.4",
99-
"domexception": "^4.0.0",
10098
"eslint": "8.57.0",
10199
"eslint-config-google": "^0.14.0",
102100
"eslint-config-prettier": "^9.0.0",

spec/setupTests.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
import DOMException from "domexception";
18-
19-
global.DOMException = DOMException as typeof global.DOMException;
20-
2117
jest.mock("../src/http-api/utils", () => ({
2218
...jest.requireActual("../src/http-api/utils"),
2319
// We mock timeoutSignal otherwise it causes tests to leave timers running

yarn.lock

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2023,13 +2023,6 @@
20232023
dependencies:
20242024
"@types/ms" "*"
20252025

2026-
"@types/domexception@^4.0.0":
2027-
version "4.0.3"
2028-
resolved "https://registry.yarnpkg.com/@types/domexception/-/domexception-4.0.3.tgz#b2ed09e3d3a83c264f5eb7e2a803d319ac441d1f"
2029-
integrity sha512-lYPlkldpQqYTgqj5tJgKg5UEa6/vOsaiCc54q6pJ1LPNphJ5UjE4yFjZx/bsvsijzS6Z9OkJYvFiAZZEvYy+Gw==
2030-
dependencies:
2031-
"@types/webidl-conversions" "*"
2032-
20332026
"@types/eslint@^8.56.5":
20342027
version "8.56.10"
20352028
resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-8.56.10.tgz#eb2370a73bf04a901eeba8f22595c7ee0f7eb58d"
@@ -2155,11 +2148,6 @@
21552148
resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-9.0.8.tgz#7545ba4fc3c003d6c756f651f3bf163d8f0f29ba"
21562149
integrity sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==
21572150

2158-
"@types/webidl-conversions@*":
2159-
version "7.0.3"
2160-
resolved "https://registry.yarnpkg.com/@types/webidl-conversions/-/webidl-conversions-7.0.3.tgz#1306dbfa53768bcbcfc95a1c8cde367975581859"
2161-
integrity sha512-CiJJvcRtIgzadHCYXw7dqEnMNRjhGZlYK05Mj9OyktqV8uVT8fD2BFOB7S1uwBE3Kj2Z+4UyPmFw/Ixgw/LAlA==
2162-
21632151
"@types/yargs-parser@*":
21642152
version "21.0.3"
21652153
resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.3.tgz#815e30b786d2e8f0dcd85fd5bcf5e1a04d008f15"

0 commit comments

Comments
 (0)