Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade deps after testing #26

Merged
merged 2 commits into from
Nov 22, 2023
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
2 changes: 1 addition & 1 deletion .env.defaults
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MAX_OVER_TIME_DURATION=2d
NODE_ENV=development
PROMETHEUS_URL=...
PROM_QUERY_URL=http://localhost:9090
RADIX_URL=...
105 changes: 79 additions & 26 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@apollo/datasource-rest": "^4.3.2",
"@apollo/datasource-rest": "^6.2.2",
"@apollo/server": "^4.0.2",
"body-parser": "^1.20.1",
"cors": "^2.8.5",
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/routes/cosmos-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { KeyValueCache } from "@apollo/utils.keyvaluecache";
require("dotenv").config();

export class CosmosAPI extends RESTDataSource {
override baseURL = `http://${process.env.PROMETHEUS_URL}/prometheus/api/v1/`;
override baseURL = `${process.env.PROM_QUERY_URL}/prometheus/api/v1/`;

constructor(options: { cache: KeyValueCache }) {
super(options); // this sends our server's `cache` through
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/routes/elrond-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { KeyValueCache } from "@apollo/utils.keyvaluecache";
require("dotenv").config();

export class ElrondAPI extends RESTDataSource {
override baseURL = `http://${process.env.PROMETHEUS_URL}/prometheus/api/v1/`;
override baseURL = `${process.env.PROM_QUERY_URL}/prometheus/api/v1/`;

constructor(options: { cache: KeyValueCache }) {
super(options); // this sends our server's `cache` through
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/routes/oasis-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { KeyValueCache } from "@apollo/utils.keyvaluecache";
require("dotenv").config();

export class OasisAPI extends RESTDataSource {
override baseURL = `http://${process.env.PROMETHEUS_URL}/prometheus/api/v1/`;
override baseURL = `${process.env.PROM_QUERY_URL}/prometheus/api/v1/`;

constructor(options: { cache: KeyValueCache }) {
super(options); // this sends our server's `cache` through
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/routes/radix-prom-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { KeyValueCache } from "@apollo/utils.keyvaluecache";
require("dotenv").config();

export class RadixPromAPI extends RESTDataSource {
override baseURL = `http://${process.env.PROMETHEUS_URL}/prometheus/api/v1/`;
override baseURL = `${process.env.PROM_QUERY_URL}/prometheus/api/v1/`;

constructor(options: { cache: KeyValueCache }) {
super(options);
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/routes/solana-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { KeyValueCache } from "@apollo/utils.keyvaluecache";
require("dotenv").config();

export class SolanaAPI extends RESTDataSource {
override baseURL = `http://${process.env.PROMETHEUS_URL}/prometheus/api/v1/`;
override baseURL = `${process.env.PROM_QUERY_URL}/prometheus/api/v1/`;

constructor(options: { cache: KeyValueCache }) {
super(options); // this sends our server's `cache` through
Expand Down