From f1d76d8365efb6a7d170690d8030d4e223b4ff1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Tesa=C5=99?= Date: Wed, 20 Sep 2023 15:48:38 +0200 Subject: [PATCH] Prune deps --- packages/data-pusher/package.json | 11 ++-------- packages/data-pusher/src/make-request.ts | 6 +++--- pnpm-lock.yaml | 27 ------------------------ 3 files changed, 5 insertions(+), 39 deletions(-) diff --git a/packages/data-pusher/package.json b/packages/data-pusher/package.json index ae9af82d..2aaaef0d 100644 --- a/packages/data-pusher/package.json +++ b/packages/data-pusher/package.json @@ -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", @@ -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", @@ -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" } } diff --git a/packages/data-pusher/src/make-request.ts b/packages/data-pusher/src/make-request.ts index fd8bdf42..3d7cf625 100644 --- a/packages/data-pusher/src/make-request.ts +++ b/packages/data-pusher/src/make-request.ts @@ -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'; @@ -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) { @@ -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); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 67dba824..049309ec 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -90,18 +90,9 @@ importers: '@api3/airnode-node': specifier: ^0.11.1 version: 0.11.2 - '@api3/airnode-protocol': - specifier: ^0.11.1 - version: 0.11.2 - '@api3/airnode-protocol-v1': - specifier: ^2.6.1 - version: 2.10.0 '@api3/airnode-utilities': specifier: ^0.11.1 version: 0.11.2 - '@api3/airnode-validator': - specifier: ^0.11.1 - version: 0.11.2 '@api3/ois': specifier: ^2.1.0 version: 2.1.0 @@ -136,9 +127,6 @@ importers: '@types/lodash': specifier: ^4.14.186 version: 4.14.198 - '@vercel/ncc': - specifier: ^0.36.1 - version: 0.36.1 packages: @@ -208,12 +196,6 @@ packages: - utf-8-validate dev: false - /@api3/airnode-protocol-v1@2.10.0: - resolution: {integrity: sha512-5pXI9OUXeyM2IbVYrkW48Eymt7qGT5nfBU8GR2XZsRE8dCRZTIIfp+xdAMH+OFm62GGnUDz9e1uTiAHkRWrtKA==} - dependencies: - '@openzeppelin/contracts': 4.8.2 - dev: false - /@api3/airnode-protocol@0.11.2: resolution: {integrity: sha512-wiHaV+Gv+BuLtobqbsd5laPxobZGgcJfODV/8jb882ezSAGynBWdOFh/NIeDY/qt2BZh6Ll8mdwEpyjlQ4FEvg==} dependencies: @@ -1718,10 +1700,6 @@ packages: resolution: {integrity: sha512-NyJV7sJgoGYqbtNUWgzzOGW4T6rR19FmX1IJgXGdapGPWsuMelGJn9h03nos0iqfforCbCB0iYIR0MtIuIFLLw==} dev: false - /@openzeppelin/contracts@4.8.2: - resolution: {integrity: sha512-kEUOgPQszC0fSYWpbh2kT94ltOJwj1qfT2DWo+zVttmGmf97JZ99LspePNaeeaLhCImaHVeBbjaQFZQn7+Zc5g==} - dev: false - /@pkgjs/parseargs@0.11.0: resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} @@ -2441,11 +2419,6 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@vercel/ncc@0.36.1: - resolution: {integrity: sha512-S4cL7Taa9yb5qbv+6wLgiKVZ03Qfkc4jGRuiUQMQ8HGBD5pcNRnHeYM33zBvJE4/zJGjJJ8GScB+WmTsn9mORw==} - hasBin: true - dev: true - /accepts@1.3.8: resolution: {integrity: sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==} engines: {node: '>= 0.6'}