Removing refocusExchange

This commit is contained in:
Jamie Hewitt 2022-08-22 13:48:33 +03:00
parent df8ce6ad4a
commit 3c9c49a725
3 changed files with 1 additions and 25 deletions

22
package-lock.json generated
View File

@ -11,7 +11,6 @@
"dependencies": { "dependencies": {
"@ensdomains/ensjs": "^2.1.0", "@ensdomains/ensjs": "^2.1.0",
"@oceanprotocol/lib": "^1.1.8", "@oceanprotocol/lib": "^1.1.8",
"@urql/exchange-refocus": "^0.2.5",
"next": "^12.2.5", "next": "^12.2.5",
"urql": "^2.2.3", "urql": "^2.2.3",
"web3": "^1.7.5" "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" "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": { "node_modules/abortcontroller-polyfill": {
"version": "1.7.3", "version": "1.7.3",
"resolved": "https://registry.npmjs.org/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.3.tgz", "resolved": "https://registry.npmjs.org/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.3.tgz",
@ -9766,15 +9753,6 @@
"wonka": "^4.0.14" "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": { "abortcontroller-polyfill": {
"version": "1.7.3", "version": "1.7.3",
"resolved": "https://registry.npmjs.org/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.3.tgz", "resolved": "https://registry.npmjs.org/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.3.tgz",

View File

@ -17,7 +17,6 @@
"dependencies": { "dependencies": {
"@ensdomains/ensjs": "^2.1.0", "@ensdomains/ensjs": "^2.1.0",
"@oceanprotocol/lib": "^1.1.8", "@oceanprotocol/lib": "^1.1.8",
"@urql/exchange-refocus": "^0.2.5",
"next": "^12.2.5", "next": "^12.2.5",
"urql": "^2.2.3", "urql": "^2.2.3",
"web3": "^1.7.5" "web3": "^1.7.5"

View File

@ -8,7 +8,6 @@ import {
OperationContext, OperationContext,
fetchExchange fetchExchange
} from 'urql' } from 'urql'
import { refocusExchange } from '@urql/exchange-refocus'
let ens: any let ens: any
@ -37,7 +36,7 @@ async function createUrqlClient() {
const config = getOceanConfig(1) const config = getOceanConfig(1)
const client = createClient({ const client = createClient({
url: `${config.subgraphUri}/subgraphs/name/oceanprotocol/ocean-subgraph`, url: `${config.subgraphUri}/subgraphs/name/oceanprotocol/ocean-subgraph`,
exchanges: [dedupExchange, refocusExchange(), fetchExchange] exchanges: [dedupExchange, fetchExchange]
}) })
return client return client
} }