@chainsafe/lodestar-api
Advanced tools
Comparing version 0.39.0-dev.56a6bb4a3e to 0.39.0-dev.5e735016cc
@@ -1,4 +0,3 @@ | ||
export * as routes from "./routes/index.js"; | ||
export * from "./interface.js"; | ||
export { getClient, HttpClient, HttpClientOptions, HttpError } from "./client/index.js"; | ||
export * from "./beacon/index.js"; | ||
export { HttpClient, IHttpClient, HttpClientOptions, HttpClientModules, HttpError } from "./utils/client/index.js"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,5 +0,5 @@ | ||
export * as routes from "./routes/index.js"; | ||
export * from "./interface.js"; | ||
export { getClient, HttpClient, HttpError } from "./client/index.js"; | ||
// Node: Don't export server here so it's not bundled to all consumers | ||
// Re-exporting beacon only for backwards compatibility | ||
export * from "./beacon/index.js"; | ||
export { HttpClient, HttpError } from "./utils/client/index.js"; | ||
// NOTE: Don't export server here so it's not bundled to all consumers | ||
//# sourceMappingURL=index.js.map |
import { IChainForkConfig } from "@chainsafe/lodestar-config"; | ||
import { IHttpClient } from "../client/utils/index.js"; | ||
import { IHttpClient } from "../utils/client/index.js"; | ||
import { Api } from "./routes.js"; | ||
export declare function getClient(_config: IChainForkConfig, httpClient: IHttpClient): Api; | ||
//# sourceMappingURL=client.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { generateGenericJsonClient } from "../client/utils/index.js"; | ||
import { generateGenericJsonClient } from "../utils/client/index.js"; | ||
import { routesData, getReqSerializers, getReturnTypes } from "./routes.js"; | ||
@@ -3,0 +3,0 @@ export function getClient(_config, httpClient) { |
import { IChainForkConfig } from "@chainsafe/lodestar-config"; | ||
import { HttpClientOptions } from "../client/index.js"; | ||
import { IHttpClient } from "../client/utils/index.js"; | ||
import { IHttpClient, HttpClientModules, HttpClientOptions } from "../utils/client/index.js"; | ||
import { Api } from "./routes.js"; | ||
export { ImportStatus, DeletionStatus, KeystoreStr, SlashingProtectionData, PubkeyHex, Api } from "./routes.js"; | ||
declare type ClientModules = HttpClientModules & { | ||
config: IChainForkConfig; | ||
httpClient?: IHttpClient; | ||
}; | ||
/** | ||
* REST HTTP client for all keymanager routes | ||
*/ | ||
export declare function getClient(config: IChainForkConfig, opts: HttpClientOptions, httpClient?: IHttpClient): Api; | ||
export declare function getClient(opts: HttpClientOptions, modules: ClientModules): Api; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,3 +0,4 @@ | ||
import { HttpClient } from "../client/index.js"; | ||
import { HttpClient } from "../utils/client/index.js"; | ||
import * as keymanager from "./client.js"; | ||
// NOTE: Don't export server here so it's not bundled to all consumers | ||
export { ImportStatus, DeletionStatus } from "./routes.js"; | ||
@@ -7,7 +8,8 @@ /** | ||
*/ | ||
export function getClient(config, opts, httpClient) { | ||
if (!httpClient) | ||
httpClient = new HttpClient(opts); | ||
export function getClient(opts, modules) { | ||
var _a; | ||
const { config } = modules; | ||
const httpClient = (_a = modules.httpClient) !== null && _a !== void 0 ? _a : new HttpClient(opts, modules); | ||
return keymanager.getClient(config, httpClient); | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "0.39.0-dev.56a6bb4a3e", | ||
"version": "0.39.0-dev.5e735016cc", | ||
"type": "module", | ||
@@ -21,2 +21,14 @@ "exports": { | ||
}, | ||
"./beacon": { | ||
"import": "./lib/beacon/index.js" | ||
}, | ||
"./beacon/server": { | ||
"import": "./lib/beacon/server/index.js" | ||
}, | ||
"./builder": { | ||
"import": "./lib/builder/index.js" | ||
}, | ||
"./builder/server": { | ||
"import": "./lib/builder/server/index.js" | ||
}, | ||
"./keymanager": { | ||
@@ -26,6 +38,3 @@ "import": "./lib/keymanager/index.js" | ||
"./keymanager/server": { | ||
"import": "./lib/keymanager/server.js" | ||
}, | ||
"./server": { | ||
"import": "./lib/server/index.js" | ||
"import": "./lib/keymanager/server/index.js" | ||
} | ||
@@ -66,6 +75,6 @@ }, | ||
"dependencies": { | ||
"@chainsafe/lodestar-config": "0.39.0-dev.56a6bb4a3e", | ||
"@chainsafe/lodestar-params": "0.39.0-dev.56a6bb4a3e", | ||
"@chainsafe/lodestar-types": "0.39.0-dev.56a6bb4a3e", | ||
"@chainsafe/lodestar-utils": "0.39.0-dev.56a6bb4a3e", | ||
"@chainsafe/lodestar-config": "0.39.0-dev.5e735016cc", | ||
"@chainsafe/lodestar-params": "0.39.0-dev.5e735016cc", | ||
"@chainsafe/lodestar-types": "0.39.0-dev.5e735016cc", | ||
"@chainsafe/lodestar-utils": "0.39.0-dev.5e735016cc", | ||
"@chainsafe/persistent-merkle-tree": "^0.4.2", | ||
@@ -75,3 +84,2 @@ "@chainsafe/ssz": "^0.9.2", | ||
"eventsource": "^2.0.2", | ||
"fastify": "3.15.1", | ||
"qs": "^6.10.1" | ||
@@ -81,3 +89,4 @@ }, | ||
"@types/eventsource": "^1.1.5", | ||
"@types/qs": "^6.9.6" | ||
"@types/qs": "^6.9.6", | ||
"fastify": "3.15.1" | ||
}, | ||
@@ -94,3 +103,3 @@ "peerDependencies": { | ||
], | ||
"gitHead": "e03ef37dd6487d861bba00f4477f3beae6b40516" | ||
"gitHead": "a17af58e97cafb40b2ddcdddb9af6009f2e79b46" | ||
} |
@@ -41,3 +41,3 @@ # Lodestar Eth Consensus API | ||
- Follow the [installation guide](https://chainsafe.github.io/lodestar/installation) to install Lodestar. | ||
- Follow the [installation guide](https://chainsafe.github.io/lodestar/) to install Lodestar. | ||
- Quickly try out the whole stack by [starting a local testnet](https://chainsafe.github.io/lodestar/usage/local). | ||
@@ -44,0 +44,0 @@ - View the [typedoc code docs](https://chainsafe.github.io/lodestar/packages). |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
261776
10
165
4031
3
2
+ Added@chainsafe/lodestar-config@0.39.0-dev.5e735016cc(transitive)
+ Added@chainsafe/lodestar-params@0.39.0-dev.5e735016cc(transitive)
+ Added@chainsafe/lodestar-types@0.39.0-dev.5e735016cc(transitive)
+ Added@chainsafe/lodestar-utils@0.39.0-dev.5e735016cc(transitive)
- Removedfastify@3.15.1
- Removed@chainsafe/lodestar-config@0.39.0-dev.56a6bb4a3e(transitive)
- Removed@chainsafe/lodestar-params@0.39.0-dev.56a6bb4a3e(transitive)
- Removed@chainsafe/lodestar-types@0.39.0-dev.56a6bb4a3e(transitive)
- Removed@chainsafe/lodestar-utils@0.39.0-dev.56a6bb4a3e(transitive)