From 199c1f05c282d15ba2ded9e7a69253483fbac2ec Mon Sep 17 00:00:00 2001 From: Peter Somogyvari Date: Fri, 21 Jun 2024 10:37:07 -0700 Subject: [PATCH] feat(connector-besu): expose API client and OpenAPI code for web builds 1. We were only exporting the API client and the related data model type definitions for NodeJS builds but not for the web. 2. This made it so that you couldn't import/use the Besu API client from a front-end application such as Angular or React. Signed-off-by: Peter Somogyvari --- .../src/main/typescript/index.web.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/cactus-plugin-ledger-connector-besu/src/main/typescript/index.web.ts b/packages/cactus-plugin-ledger-connector-besu/src/main/typescript/index.web.ts index cb0ff5c3b5..aff65e4ec2 100755 --- a/packages/cactus-plugin-ledger-connector-besu/src/main/typescript/index.web.ts +++ b/packages/cactus-plugin-ledger-connector-besu/src/main/typescript/index.web.ts @@ -1 +1,6 @@ -export {}; +export { + BesuApiClient, + BesuApiClientOptions, +} from "./api-client/besu-api-client"; + +export * from "./generated/openapi/typescript-axios/api";