mirror of
https://github.com/oceanprotocol/ens-proxy.git
synced 2024-12-02 05:57:34 +01:00
Removing babel
This commit is contained in:
parent
3fe1c9c873
commit
229ce11f2e
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
"parser": "@babel/eslint-parser",
|
|
||||||
"extends": ["eslint:recommended", "prettier"],
|
"extends": ["eslint:recommended", "prettier"],
|
||||||
"env": { "es6": true, "browser": true, "node": true, "jest": true },
|
"env": { "es6": true, "browser": true, "node": true, "jest": true },
|
||||||
"settings": {
|
"settings": {
|
||||||
|
@ -18,7 +18,7 @@ export default async function nameApi(
|
|||||||
try {
|
try {
|
||||||
const accountId = String(request.query.accountId)
|
const accountId = String(request.query.accountId)
|
||||||
const name = await getEnsName(accountId)
|
const name = await getEnsName(accountId)
|
||||||
response.setHeader('Cache-Control', 's-maxage=86400')
|
response.setHeader('Cache-Control', 'max-age=0, s-maxage=86400')
|
||||||
response.status(200).send(name)
|
response.status(200).send(name)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
response.status(500).send(`${error}`)
|
response.status(500).send(`${error}`)
|
||||||
|
@ -6,7 +6,14 @@
|
|||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"isolatedModules": true
|
"isolatedModules": true,
|
||||||
|
"allowJs": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"incremental": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"jsx": "preserve"
|
||||||
},
|
},
|
||||||
"exclude": ["node_modules"],
|
"exclude": ["node_modules"],
|
||||||
"include": ["**/*.ts", "**/*.tsx"]
|
"include": ["**/*.ts", "**/*.tsx"]
|
||||||
|
Loading…
Reference in New Issue
Block a user