Skip to content

Commit 485d25a

Browse files
committed
Extract to constants.
Signed-off-by: Ryan Lamb <[email protected]>
1 parent cf35803 commit 485d25a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

libs/providers/launchdarkly-client/src/lib/launchdarkly-client-provider.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ import type { LaunchDarklyProviderOptions } from './launchdarkly-provider-option
2525
import translateContext from './translate-context';
2626
import translateResult from './translate-result';
2727

28+
const WRAPPER_NAME = 'open-feature-community-js-client';
29+
const WRAPPER_VERSION = '0.3.2'; // {{ x-release-please-version }}
30+
2831
/**
2932
* Create a ResolutionDetails for an evaluation that produced a type different
3033
* from the expected type.
@@ -78,8 +81,8 @@ export class LaunchDarklyClientProvider implements Provider {
7881
this.ldOptions = {
7982
...ldOptions,
8083
logger: this.logger,
81-
wrapperName: 'open-feature-community-js-client',
82-
wrapperVersion: '0.3.2', // {{ x-release-please-version }}
84+
wrapperName: WRAPPER_NAME,
85+
wrapperVersion: WRAPPER_VERSION,
8386
};
8487
}
8588

0 commit comments

Comments
 (0)