Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ LABEL application="airnode-feed" description="Airnode feed container"
FROM build AS deployed-airnode-feed

RUN pnpm --filter=@api3/airnode-feed --prod deploy deployed-airnode-feed
FROM node:20-slim as airnode-feed
FROM node:20-slim AS airnode-feed
WORKDIR /app

# Update package lists and install wget
Expand All @@ -67,7 +67,7 @@ LABEL application="signed-api" description="Signed API container"
FROM build AS deployed-signed-api

RUN pnpm --filter=@api3/signed-api --prod deploy deployed-signed-api
FROM node:20-slim as signed-api
FROM node:20-slim AS signed-api
WORKDIR /app

# Update package lists and install wget
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "signed-api",
"version": "4.1.0",
"engines": {
"node": ">=18.20.5"
"node": ">=18.20.5",
"pnpm": "^10.26.2"
},
"repository": {
"type": "git",
Expand All @@ -28,6 +29,7 @@
"devDependencies": {
"@api3/commons": "1.1.2",
"@api3/eslint-plugin-commons": "^3.0.0",
"eslint": "^8.57.1",
"@types/jest": "^30.0.0",
"@types/node": "^24.10.1",
"husky": "^9.1.7",
Expand All @@ -39,5 +41,5 @@
"ts-node": "^10.9.2",
"typescript": "^5.9.3"
},
"packageManager": "pnpm@9.15.9"
"packageManager": "pnpm@10.26.2"
}
4 changes: 2 additions & 2 deletions packages/airnode-feed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"@api3/commons": "^1.1.2",
"@api3/ois": "^3.0.0",
"@api3/promise-utils": "^0.4.0",
"axios": "^1.13.5",
"dotenv": "^17.3.1",
"axios": "^1.13.4",
"dotenv": "^17.2.4",
"ethers": "^5.8.0",
"express": "^5.2.1",
"lodash": "^4.17.23",
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@api3/airnode-feed": "workspace:*",
"@api3/promise-utils": "^0.4.0",
"@api3/signed-api": "workspace:*",
"axios": "^1.13.5",
"axios": "^1.13.4",
"ethers": "^5.8.0",
"express": "^5.2.1",
"lodash": "^4.17.23",
Expand Down
4 changes: 2 additions & 2 deletions packages/signed-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"@api3/airnode-feed": "workspace:*",
"@api3/commons": "^1.1.2",
"@api3/promise-utils": "^0.4.0",
"@aws-sdk/client-s3": "^3.990.0",
"dotenv": "^17.3.1",
"@aws-sdk/client-s3": "^3.984.0",
"dotenv": "^17.2.4",
"ethers": "^5.8.0",
"express": "^5.2.1",
"lodash": "^4.17.23",
Expand Down
2 changes: 1 addition & 1 deletion packages/signed-api/src/in-memory-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const put = (signedData: InternalSignedData) => {
// efficient to use a priority queue, but the proper solution is not to store the data in memory.
const signedDatas = cache.signedDataCache[airnode]![templateId]!;
const index = signedDatas.findIndex((data) => Number.parseInt(data.timestamp, 10) > Number.parseInt(timestamp, 10));
if (index < 0) signedDatas.push(signedData);
if (index === -1) signedDatas.push(signedData);
else signedDatas.splice(index, 0, signedData);
};

Expand Down
4 changes: 2 additions & 2 deletions packages/signed-api/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ export const startServer = (config: Config, port: number) => {
const stack = err.stack ?? new Error('Unexpected non-error value encountered').stack;
logger.error('An unexpected handler error occurred.', { err, stack });

res.status(err.status || 500).json({
res.status(err.status ?? 500).json({
error: {
message: err.message || 'An unexpected handler error occurred.',
message: err.message ?? 'An unexpected handler error occurred.',
},
});
});
Expand Down
Loading