diff --git a/package-lock.json b/package-lock.json index a8fa703..cf6c836 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,6 @@ "dependencies": { "@ensdomains/ensjs": "^2.1.0", "@oceanprotocol/lib": "^1.1.8", - "@urql/exchange-refocus": "^0.2.5", "next": "^12.2.5", "urql": "^2.2.3", "web3": "^1.7.5" @@ -1559,18 +1558,6 @@ "graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" } }, - "node_modules/@urql/exchange-refocus": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/@urql/exchange-refocus/-/exchange-refocus-0.2.5.tgz", - "integrity": "sha512-JlrEXlG37mK/WgyxqVrHkLZtBMVC7x3GtgGJHiiXK41AQdU2hVy3IAQ208ENMIrkFw9SHQf8d8h7Wb2EY/1zdw==", - "dependencies": { - "@urql/core": ">=2.3.6", - "wonka": "^4.0.14" - }, - "peerDependencies": { - "graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" - } - }, "node_modules/abortcontroller-polyfill": { "version": "1.7.3", "resolved": "https://registry.npmjs.org/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.3.tgz", @@ -9766,15 +9753,6 @@ "wonka": "^4.0.14" } }, - "@urql/exchange-refocus": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/@urql/exchange-refocus/-/exchange-refocus-0.2.5.tgz", - "integrity": "sha512-JlrEXlG37mK/WgyxqVrHkLZtBMVC7x3GtgGJHiiXK41AQdU2hVy3IAQ208ENMIrkFw9SHQf8d8h7Wb2EY/1zdw==", - "requires": { - "@urql/core": ">=2.3.6", - "wonka": "^4.0.14" - } - }, "abortcontroller-polyfill": { "version": "1.7.3", "resolved": "https://registry.npmjs.org/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.3.tgz", diff --git a/package.json b/package.json index 3686f4f..a7a1354 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,6 @@ "dependencies": { "@ensdomains/ensjs": "^2.1.0", "@oceanprotocol/lib": "^1.1.8", - "@urql/exchange-refocus": "^0.2.5", "next": "^12.2.5", "urql": "^2.2.3", "web3": "^1.7.5" diff --git a/pages/api/_utils.ts b/pages/api/_utils.ts index 1a7c7a5..fe5db39 100644 --- a/pages/api/_utils.ts +++ b/pages/api/_utils.ts @@ -8,7 +8,6 @@ import { OperationContext, fetchExchange } from 'urql' -import { refocusExchange } from '@urql/exchange-refocus' let ens: any @@ -37,7 +36,7 @@ async function createUrqlClient() { const config = getOceanConfig(1) const client = createClient({ url: `${config.subgraphUri}/subgraphs/name/oceanprotocol/ocean-subgraph`, - exchanges: [dedupExchange, refocusExchange(), fetchExchange] + exchanges: [dedupExchange, fetchExchange] }) return client }