Skip to content

Commit 0c41534

Browse files
committed
Filter to base options to prevent warnings.
1 parent b2e6c41 commit 0c41534

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/sdk/server-node/src/LDClientNode.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,13 @@ class LDClientNode extends LDClientImpl implements LDClient {
4545
}
4646
}
4747

48+
const baseOptions = { ...options, logger };
49+
delete baseOptions.plugins;
50+
4851
super(
4952
sdkKey,
5053
new NodePlatform({ ...options, logger }),
51-
{ ...options, logger },
54+
baseOptions,
5255
{
5356
onError: (err: Error) => {
5457
if (emitter.listenerCount('error')) {

0 commit comments

Comments
 (0)