Skip to content

Commit

Permalink
Prune deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Siegrift committed Sep 20, 2023
1 parent d2cef98 commit f1d76d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 39 deletions.
11 changes: 2 additions & 9 deletions packages/data-pusher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"pnpm": "^8.7.0"
},
"scripts": {
"build": "pnpm run clean && pnpm run compile && pnpm run build:ncc",
"clean": "rimraf -rf ./ncc ./build ./dist *.tgz",
"compile": "tsc --build tsconfig.json",
"dev:api": "ts-node test/server/server.ts",
"dev": "ts-node src/index.ts",
"docker:build": "docker compose --file docker/docker-compose.yml build",
"docker:start": "docker compose --file docker/docker-compose.yml up",
"docker:start:detach": "docker compose --file docker/docker-compose.yml up --detach",
Expand All @@ -26,10 +23,7 @@
"@api3/airnode-abi": "^0.11.1",
"@api3/airnode-adapter": "^0.11.1",
"@api3/airnode-node": "^0.11.1",
"@api3/airnode-protocol-v1": "^2.6.1",
"@api3/airnode-protocol": "^0.11.1",
"@api3/airnode-utilities": "^0.11.1",
"@api3/airnode-validator": "^0.11.1",
"@api3/ois": "^2.1.0",
"@api3/promise-utils": "^0.4.0",
"axios": "^1.1.3",
Expand All @@ -42,7 +36,6 @@
},
"devDependencies": {
"@types/express": "^4.17.13",
"@types/lodash": "^4.14.186",
"@vercel/ncc": "^0.36.1"
"@types/lodash": "^4.14.186"
}
}
6 changes: 3 additions & 3 deletions packages/data-pusher/src/make-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { ethers } from 'ethers';
import * as adapter from '@api3/airnode-adapter';
import * as node from '@api3/airnode-node';
import * as abi from '@api3/airnode-abi';
import * as validator from '@api3/airnode-validator';
import { go, goSync } from '@api3/promise-utils';
import { Endpoint, ProcessingSpecification } from '@api3/ois';
import { logger } from './logging';
import { SignedApiPayload, SignedApiUpdate, SignedData, TemplateId } from './validation/schema';
import { getState } from './state';
Expand All @@ -16,7 +16,7 @@ type TemplateResponse = [TemplateId, node.HttpGatewayApiCallSuccessResponse];
type TemplateResponses = TemplateResponse[];
type SignedResponse = [TemplateId, SignedData];

export const postProcessApiSpecifications = async (input: unknown, endpoint: validator.ois.Endpoint) => {
export const postProcessApiSpecifications = async (input: unknown, endpoint: Endpoint) => {
const { postProcessingSpecifications } = endpoint;

if (!postProcessingSpecifications || postProcessingSpecifications?.length === 0) {
Expand All @@ -25,7 +25,7 @@ export const postProcessApiSpecifications = async (input: unknown, endpoint: val

const goResult = await go(
() =>
postProcessingSpecifications.reduce(async (input: any, currentValue: validator.ois.ProcessingSpecification) => {
postProcessingSpecifications.reduce(async (input: any, currentValue: ProcessingSpecification) => {
switch (currentValue.environment) {
case 'Node':
return unsafeEvaluate(await input, currentValue.value, currentValue.timeoutMs);
Expand Down
27 changes: 0 additions & 27 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f1d76d8

Please sign in to comment.