Skip to content

Commit

Permalink
chore: remove unnecessary dependency on http-server (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
marianogoldman authored Mar 21, 2023
1 parent 4a411aa commit 87022f9
Show file tree
Hide file tree
Showing 6 changed files with 555 additions and 178 deletions.
118 changes: 59 additions & 59 deletions etc/thegraph-component.api.md
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
## API Report File for "@well-known-components/thegraph-component"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts

import { IConfigComponent } from '@well-known-components/interfaces';
import { IFetchComponent } from '@well-known-components/http-server';
import { ILoggerComponent } from '@well-known-components/interfaces';
import { IMetricsComponent } from '@well-known-components/interfaces';

// @public
export function createSubgraphComponent(components: createSubgraphComponent.NeededComponents, url: string): Promise<ISubgraphComponent>;

// @public (undocumented)
export namespace createSubgraphComponent {
// (undocumented)
export type NeededComponents = {
logs: ILoggerComponent;
config: IConfigComponent;
fetch: IFetchComponent;
metrics: IMetricsComponent<keyof typeof metricDeclarations>;
};
}

// @public (undocumented)
type Error_2 = {
message: string;
};
export { Error_2 as Error }

// @public (undocumented)
export interface ISubgraphComponent {
query: <T>(query: string, variables?: Variables, remainingAttempts?: number) => Promise<T>;
}

// @public (undocumented)
export namespace ISubgraphComponent {
// (undocumented)
export type Composable = {
subgraph: ISubgraphComponent;
};
}

// @public
export const metricDeclarations: IMetricsComponent.MetricsRecordDefinition<string>;

// @public (undocumented)
export type SubgraphResponse<T> = {
data: T;
errors?: Error_2[] | Error_2;
};

// @public (undocumented)
export type Variables = Record<string, string[] | string | number | boolean | undefined>;

// (No @packageDocumentation comment for this package)

```
## API Report File for "@well-known-components/thegraph-component"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts

import { IConfigComponent } from '@well-known-components/interfaces';
import { IFetchComponent } from '@well-known-components/interfaces';
import { ILoggerComponent } from '@well-known-components/interfaces';
import { IMetricsComponent } from '@well-known-components/interfaces';

// @public
export function createSubgraphComponent(components: createSubgraphComponent.NeededComponents, url: string): Promise<ISubgraphComponent>;

// @public (undocumented)
export namespace createSubgraphComponent {
// (undocumented)
export type NeededComponents = {
logs: ILoggerComponent;
config: IConfigComponent;
fetch: IFetchComponent;
metrics: IMetricsComponent<keyof typeof metricDeclarations>;
};
}

// @public (undocumented)
type Error_2 = {
message: string;
};
export { Error_2 as Error }

// @public (undocumented)
export interface ISubgraphComponent {
query: <T>(query: string, variables?: Variables, remainingAttempts?: number) => Promise<T>;
}

// @public (undocumented)
export namespace ISubgraphComponent {
// (undocumented)
export type Composable = {
subgraph: ISubgraphComponent;
};
}

// @public
export const metricDeclarations: IMetricsComponent.MetricsRecordDefinition<string>;

// @public (undocumented)
export type SubgraphResponse<T> = {
data: T;
errors?: Error_2[] | Error_2;
};

// @public (undocumented)
export type Variables = Record<string, string[] | string | number | boolean | undefined>;

// (No @packageDocumentation comment for this package)

```
Loading

0 comments on commit 87022f9

Please sign in to comment.