mirror of
https://github.com/oceanprotocol/ens-proxy.git
synced 2024-12-02 05:57:34 +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/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:
|
||||||
|
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@ -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
4
package-lock.json
generated
@ -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"
|
||||||
|
@ -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": {
|
||||||
|
@ -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: {
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user