Skip to content

Commit

Permalink
Merge pull request #5112 from talentlessguy/dedupe-fetch
Browse files Browse the repository at this point in the history
chore: partially dedupe fetch implementations and use native fetch instead
  • Loading branch information
ganchoradkov authored Aug 15, 2024
2 parents ab408aa + 2dc426e commit f9aea5b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 131 deletions.
128 changes: 2 additions & 126 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@
"@walletconnect/types": "2.14.0",
"@walletconnect/utils": "2.14.0",
"events": "3.3.0",
"isomorphic-unfetch": "3.1.0",
"lodash.isequal": "4.5.0",
"uint8arrays": "3.1.0"
},
"devDependencies": {
"@types/lodash.isequal": "4.5.6",
"node-fetch": "3.3.0"
"@types/lodash.isequal": "4.5.6"
},
"engines": {
"node": ">=18"
}
}
1 change: 0 additions & 1 deletion packages/core/src/controllers/echo.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { generateChildLogger, Logger } from "@walletconnect/logger";
import { IEchoClient } from "@walletconnect/types";
import { ECHO_CONTEXT, ECHO_URL } from "../constants";
import fetch from "isomorphic-unfetch";

export class EchoClient extends IEchoClient {
public readonly context = ECHO_CONTEXT;
Expand Down
1 change: 0 additions & 1 deletion packages/core/test/verify.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { expect, describe, it } from "vitest";
import fetch from "node-fetch";
import { hashMessage } from "@walletconnect/utils";

import { Core, VERIFY_SERVER } from "../src";
Expand Down

0 comments on commit f9aea5b

Please sign in to comment.