mirror of
https://github.com/oceanprotocol/ens-proxy.git
synced 2024-11-13 16:55:00 +01:00
Merge pull request #39 from oceanprotocol/fix/deployment
Fix deployment
This commit is contained in:
commit
15b3d6a56b
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '16'
|
||||
node-version: '18'
|
||||
- name: Cache node_modules
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
@ -35,7 +35,7 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '16'
|
||||
node-version: '18'
|
||||
- name: Cache node_modules
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
|
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '16'
|
||||
node-version: '18'
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: npm ci
|
||||
|
||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "ocean-ens-proxy",
|
||||
"version": "0.0.0",
|
||||
"version": "0.1.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "ocean-ens-proxy",
|
||||
"version": "0.0.0",
|
||||
"version": "0.1.0",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"ethers": "^5.7.2"
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ocean-ens-proxy",
|
||||
"description": "Ocean Protocol ENS Proxy Server",
|
||||
"version": "0.0.0",
|
||||
"version": "0.1.0",
|
||||
"author": "Ocean Protocol <devops@oceanprotocol.com>",
|
||||
"license": "Apache-2.0",
|
||||
"scripts": {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import addressApi from '../api/address'
|
||||
import nameApi from '../api/name'
|
||||
import profileApi from '../api/profile'
|
||||
import textApi from '../api/text'
|
||||
import ensTextApi from '../api/text'
|
||||
import { createServer } from 'vercel-node-server'
|
||||
import listen from 'test-listen'
|
||||
// import express from 'express'
|
||||
@ -42,7 +42,7 @@ describe('Testing ENS proxy API endpoints', function () {
|
||||
assert(response.data.name === name)
|
||||
})
|
||||
it('Requesting text records should return the expected response', async () => {
|
||||
server = createServer(textApi)
|
||||
server = createServer(ensTextApi)
|
||||
url = await listen(server)
|
||||
const response = await axios.get(url, {
|
||||
params: {
|
||||
@ -115,7 +115,7 @@ describe('Testing ENS proxy API endpoints', function () {
|
||||
assert(response.status === 200)
|
||||
})
|
||||
it('Requesting text records should return status 200 with invalid name', async () => {
|
||||
server = createServer(textApi)
|
||||
server = createServer(ensTextApi)
|
||||
url = await listen(server)
|
||||
const response = await axios.get(url, {
|
||||
params: {
|
||||
|
@ -4,7 +4,7 @@
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"strict": true,
|
||||
"noEmit": true,
|
||||
"module": "esnext",
|
||||
"module": "CommonJS",
|
||||
"moduleResolution": "node",
|
||||
"isolatedModules": true,
|
||||
"allowSyntheticDefaultImports": true
|
||||
|
@ -10,4 +10,4 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user