Skip to content

Commit 9d1ea7b

Browse files
committed
fix: update deps and pr suggestion
1 parent cd4bc4b commit 9d1ea7b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/node-sdk/src/client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,8 @@ export class BucketClient {
13201320
);
13211321

13221322
if (key) {
1323-
return this._wrapRawFeature(contextWithTracking, res.features[key]!);
1323+
if (!res.features[key]) throw new Error(`Feature ${key} not found`);
1324+
return this._wrapRawFeature(contextWithTracking, res.features[key]);
13241325
} else {
13251326
return Object.fromEntries(
13261327
Object.entries(res.features).map(([featureKey, feature]) => [

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ __metadata:
774774
languageName: unknown
775775
linkType: soft
776776

777-
"@bucketco/node-sdk@npm:1.9.3, @bucketco/node-sdk@workspace:packages/node-sdk":
777+
"@bucketco/node-sdk@npm:1.10.0, @bucketco/node-sdk@workspace:packages/node-sdk":
778778
version: 0.0.0-use.local
779779
resolution: "@bucketco/node-sdk@workspace:packages/node-sdk"
780780
dependencies:
@@ -824,7 +824,7 @@ __metadata:
824824
dependencies:
825825
"@babel/core": "npm:~7.24.7"
826826
"@bucketco/eslint-config": "npm:~0.0.2"
827-
"@bucketco/node-sdk": "npm:1.9.3"
827+
"@bucketco/node-sdk": "npm:1.10.0"
828828
"@bucketco/tsconfig": "npm:~0.0.2"
829829
"@openfeature/core": "npm:^1.5.0"
830830
"@openfeature/server-sdk": "npm:>=1.16.1"

0 commit comments

Comments
 (0)