Merge pull request #39 from oceanprotocol/fix/deployment

Fix deployment
This commit is contained in:
Bogdan Fazakas 2023-01-12 15:16:45 +02:00 committed by GitHub
commit 15b3d6a56b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 11 additions and 11 deletions

View File

@ -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:

View File

@ -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
View File

@ -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"

View File

@ -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": {

View File

@ -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: {

View File

@ -4,7 +4,7 @@
"lib": ["dom", "dom.iterable", "esnext"],
"strict": true,
"noEmit": true,
"module": "esnext",
"module": "CommonJS",
"moduleResolution": "node",
"isolatedModules": true,
"allowSyntheticDefaultImports": true