Skip to content

Commit

Permalink
#67 fixed readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bennobuilder committed Aug 27, 2024
1 parent 803a0e6 commit c81eebc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ A collection of open source libraries maintained by [builder.group](https://buil
| ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------- |
| [cli](https://github.com/builder-group/monorepo/blob/develop/packages/cli) | Straightforward CLI to bundle Typescript libraries with presets, powered by Rollup and Esbuild | [`@blgc/cli`](https://www.npmjs.com/package/@blgc/cli) |
| [config](https://github.com/builder-group/monorepo/blob/develop/packages/cli) | Collection of ESLint, Vite, and Typescript configurations | [`@blgc/config`](https://www.npmjs.com/package/@blgc/config) |
| [eprel-client](https://github.com/builder-group/monorepo/blob/develop/packages/eprel-client) | Typesafe and straightforward fetch client for interacting with the European Product Registry for Energy Labelling (EPREL) API using feature-fetch | [`eprel-client`](https://www.npmjs.com/package/eprel-client) |
| [feature-fetch](https://github.com/builder-group/monorepo/blob/develop/packages/feature-fetch) | Straightforward, typesafe, and feature-based fetch wrapper supporting OpenAPI types | [`feature-fetch`](https://www.npmjs.com/package/feature-fetch) |
| [feature-form](https://github.com/builder-group/monorepo/blob/develop/packages/feature-form) | Straightforward, typesafe, and feature-based form library | [`feature-form`](https://www.npmjs.com/package/feature-form) |
| [feature-logger](https://github.com/builder-group/monorepo/blob/develop/packages/feature-logger) | Straightforward, typesafe, and feature-based logging library | [`feature-logger`](https://www.npmjs.com/package/feature-logger) |
Expand Down
6 changes: 3 additions & 3 deletions packages/eprel-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

> Status: Experimental
`eprel-client` is a typesafe and straightforward fetch client for interacting with the European Product Registry for Energy Labelling (EPREL) API using [`feature-fetch`](https://github.com/builder-group/monorepo/tree/develop/packages/feature-fetch). This client provides typesafe methods for fetching and downloading Google Fonts.
`eprel-client` is a typesafe and straightforward fetch client for interacting with the European Product Registry for Energy Labelling (EPREL) API using [`feature-fetch`](https://github.com/builder-group/monorepo/tree/develop/packages/feature-fetch).

- [EPREL API Docs](https://webgate.ec.europa.eu/fpfis/wikis/display/EPREL/EPREL+Public+site+-+API)

Expand All @@ -42,7 +42,7 @@ const client = createEPRELClient({
Fetches the available product groups from the ERAP API.

```ts
const products = await client.getProductGroups();
const productGroups = await client.getProductGroups();
```

### Error Handling
Expand All @@ -55,7 +55,7 @@ Errors can occur during API requests, and the client will return detailed error

```ts
try {
const products = await client.getProductGroups();
const productGroups = await client.getProductGroups();
} catch (error) {
if (error instanceof NetworkError) {
console.error('Network error:', error.message);
Expand Down
2 changes: 1 addition & 1 deletion packages/eprel-client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eprel-client",
"description": "Typesafe and straightforward fetch client for interacting with the European Product Registry for Energy Labelling (EPREL) API using feature-fetch",
"version": "0.0.1",
"version": "0.0.2",
"private": false,
"scripts": {
"build": "shx rm -rf dist && ../../scripts/cli.sh bundle",
Expand Down

0 comments on commit c81eebc

Please sign in to comment.