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"],
|
||||
"env": { "es6": true, "browser": true, "node": true, "jest": true },
|
||||
"settings": {
|
||||
|
@ -18,7 +18,7 @@ export default async function nameApi(
|
||||
try {
|
||||
const accountId = String(request.query.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)
|
||||
} catch (error) {
|
||||
response.status(500).send(`${error}`)
|
||||
|
@ -6,7 +6,14 @@
|
||||
"noEmit": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"isolatedModules": true
|
||||
"isolatedModules": true,
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"incremental": true,
|
||||
"esModuleInterop": true,
|
||||
"resolveJsonModule": true,
|
||||
"jsx": "preserve"
|
||||
},
|
||||
"exclude": ["node_modules"],
|
||||
"include": ["**/*.ts", "**/*.tsx"]
|
||||
|
Loading…
Reference in New Issue
Block a user