@chainsafe/lodestar-api
Advanced tools
Comparing version 0.39.0-dev.ceba4a9d21 to 0.39.0-dev.e5b74d5ae2
@@ -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.ceba4a9d21", | ||
"version": "0.39.0-dev.e5b74d5ae2", | ||
"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.ceba4a9d21", | ||
"@chainsafe/lodestar-params": "0.39.0-dev.ceba4a9d21", | ||
"@chainsafe/lodestar-types": "0.39.0-dev.ceba4a9d21", | ||
"@chainsafe/lodestar-utils": "0.39.0-dev.ceba4a9d21", | ||
"@chainsafe/lodestar-config": "0.39.0-dev.e5b74d5ae2", | ||
"@chainsafe/lodestar-params": "0.39.0-dev.e5b74d5ae2", | ||
"@chainsafe/lodestar-types": "0.39.0-dev.e5b74d5ae2", | ||
"@chainsafe/lodestar-utils": "0.39.0-dev.e5b74d5ae2", | ||
"@chainsafe/persistent-merkle-tree": "^0.4.2", | ||
@@ -92,3 +101,3 @@ "@chainsafe/ssz": "^0.9.2", | ||
], | ||
"gitHead": "a78189af97834336a8f27520373ae6d09e5a955a" | ||
"gitHead": "79a15ca1af28aabe8073df544a96abe7af619692" | ||
} |
@@ -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
261703
165
4031
2
+ Added@chainsafe/lodestar-config@0.39.0-dev.e5b74d5ae2(transitive)
+ Added@chainsafe/lodestar-params@0.39.0-dev.e5b74d5ae2(transitive)
+ Added@chainsafe/lodestar-types@0.39.0-dev.e5b74d5ae2(transitive)
+ Added@chainsafe/lodestar-utils@0.39.0-dev.e5b74d5ae2(transitive)
- Removed@chainsafe/lodestar-config@0.39.0-dev.ceba4a9d21(transitive)
- Removed@chainsafe/lodestar-params@0.39.0-dev.ceba4a9d21(transitive)
- Removed@chainsafe/lodestar-types@0.39.0-dev.ceba4a9d21(transitive)
- Removed@chainsafe/lodestar-utils@0.39.0-dev.ceba4a9d21(transitive)