Skip to content

Commit

Permalink
Merge pull request #109 from clober-dex/feat/axios
Browse files Browse the repository at this point in the history
fix: fix build error
  • Loading branch information
graykode authored Sep 27, 2024
2 parents d96a4e1 + aadfb5a commit 4e5b534
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/constants/subgraph.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { post } from 'axios'
import axios from 'axios'

import { CHAIN_IDS } from './chain'

Expand Down Expand Up @@ -27,7 +27,7 @@ export class Subgraph {
if (!SUBGRAPH_URL[chainId]) {
throw new Error('Unsupported chain for subgraph')
}
const response = await post(SUBGRAPH_URL[chainId], {
const response = await axios.post(SUBGRAPH_URL[chainId], {
query,
variables,
operationName,
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

// Interop constraints
"esModuleInterop": false,
"allowSyntheticDefaultImports": false,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"importHelpers": false, // This is only used for build validation. Since we do not have `tslib` installed, this will fail if we accidentally make use of anything that'd require injection of helpers.

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"moduleResolution": "node",
"sourceMap": true,
"rootDir": "./src"
}
},
}

0 comments on commit 4e5b534

Please sign in to comment.