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/checkout@v2
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
node-version: '16' node-version: '18'
- name: Cache node_modules - name: Cache node_modules
uses: actions/cache@v2 uses: actions/cache@v2
env: env:
@ -35,7 +35,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
node-version: '16' node-version: '18'
- name: Cache node_modules - name: Cache node_modules
uses: actions/cache@v2 uses: actions/cache@v2
env: env:

View File

@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
node-version: '16' node-version: '18'
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- run: npm ci - run: npm ci

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "ocean-ens-proxy", "name": "ocean-ens-proxy",
"version": "0.0.0", "version": "0.1.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "ocean-ens-proxy", "name": "ocean-ens-proxy",
"version": "0.0.0", "version": "0.1.0",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"ethers": "^5.7.2" "ethers": "^5.7.2"

View File

@ -1,7 +1,7 @@
{ {
"name": "ocean-ens-proxy", "name": "ocean-ens-proxy",
"description": "Ocean Protocol ENS Proxy Server", "description": "Ocean Protocol ENS Proxy Server",
"version": "0.0.0", "version": "0.1.0",
"author": "Ocean Protocol <devops@oceanprotocol.com>", "author": "Ocean Protocol <devops@oceanprotocol.com>",
"license": "Apache-2.0", "license": "Apache-2.0",
"scripts": { "scripts": {

View File

@ -1,7 +1,7 @@
import addressApi from '../api/address' import addressApi from '../api/address'
import nameApi from '../api/name' import nameApi from '../api/name'
import profileApi from '../api/profile' import profileApi from '../api/profile'
import textApi from '../api/text' import ensTextApi from '../api/text'
import { createServer } from 'vercel-node-server' import { createServer } from 'vercel-node-server'
import listen from 'test-listen' import listen from 'test-listen'
// import express from 'express' // import express from 'express'
@ -42,7 +42,7 @@ describe('Testing ENS proxy API endpoints', function () {
assert(response.data.name === name) assert(response.data.name === name)
}) })
it('Requesting text records should return the expected response', async () => { it('Requesting text records should return the expected response', async () => {
server = createServer(textApi) server = createServer(ensTextApi)
url = await listen(server) url = await listen(server)
const response = await axios.get(url, { const response = await axios.get(url, {
params: { params: {
@ -115,7 +115,7 @@ describe('Testing ENS proxy API endpoints', function () {
assert(response.status === 200) assert(response.status === 200)
}) })
it('Requesting text records should return status 200 with invalid name', async () => { it('Requesting text records should return status 200 with invalid name', async () => {
server = createServer(textApi) server = createServer(ensTextApi)
url = await listen(server) url = await listen(server)
const response = await axios.get(url, { const response = await axios.get(url, {
params: { params: {

View File

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