Skip to content

Commit

Permalink
update readme and regen package lock
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Wootton <[email protected]>
  • Loading branch information
ajwootto committed Jun 6, 2024
1 parent f13e5bf commit 271ca0e
Show file tree
Hide file tree
Showing 6 changed files with 2,159 additions and 4,672 deletions.
3 changes: 3 additions & 0 deletions libs/providers/multi-provider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ local files, database values and SaaS hosted feature management systems.
$ npm install @openfeature/multi-provider
```

> [!TIP]
> This SDK is designed to be used with the [Node.js SDK](https://openfeature.dev/docs/reference/technologies/server/javascript/).
## Usage
The Multi-Provider is initialized with an array of providers it should evaluate:

Expand Down
4 changes: 2 additions & 2 deletions libs/providers/multi-provider/src/lib/multi-provider.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ describe('MultiProvider', () => {
logger: logger,
};

let weakMap = new WeakMap();
const weakMap = new WeakMap();

provider1.hooks = [
{
Expand Down Expand Up @@ -368,7 +368,7 @@ describe('MultiProvider', () => {
logger: logger,
};

let weakMap = new WeakMap();
const weakMap = new WeakMap();

provider1.hooks = [
{
Expand Down
2 changes: 1 addition & 1 deletion libs/providers/multi-provider/src/lib/multi-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class MultiProvider implements Provider {

for (const constructorProvider of constructorProviders) {
const providerName = constructorProvider.provider.metadata.name;
let candidateName = constructorProvider.name ?? providerName;
const candidateName = constructorProvider.name ?? providerName;

if (constructorProvider.name && providersByName[constructorProvider.name]) {
throw new Error('Provider names must be unique');
Expand Down
Loading

0 comments on commit 271ca0e

Please sign in to comment.