@bucketco/openfeature-browser-provider
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -1,2 +0,2 @@ | ||
import { EvaluationContext, JsonValue, OpenFeatureEventEmitter, Provider, ProviderMetadata, ProviderStatus, ResolutionDetails } from '@openfeature/web-sdk'; | ||
import { EvaluationContext, JsonValue, OpenFeatureEventEmitter, Provider, ProviderMetadata, ProviderStatus, ResolutionDetails, TrackingEventDetails } from '@openfeature/web-sdk'; | ||
import { BucketClient, InitOptions } from '@bucketco/browser-sdk'; | ||
@@ -26,2 +26,3 @@ | ||
resolveStringEvaluation(_flagKey: string, defaultValue: string): ResolutionDetails<string>; | ||
track(trackingEventName: string, _context?: EvaluationContext, trackingEventDetails?: TrackingEventDetails): void; | ||
} |
{ | ||
"name": "@bucketco/openfeature-browser-provider", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"packageManager": "yarn@4.1.1", | ||
@@ -37,4 +37,4 @@ "license": "MIT", | ||
"@bucketco/tsconfig": "0.0.2", | ||
"@openfeature/core": "1.3.0", | ||
"@openfeature/web-sdk": "^1.2.3", | ||
"@openfeature/core": "1.5.0", | ||
"@openfeature/web-sdk": "^1.3.0", | ||
"@types/node": "^20.14.0", | ||
@@ -50,5 +50,5 @@ "eslint": "^8.57.0", | ||
"peerDependencies": { | ||
"@openfeature/web-sdk": ">=1" | ||
"@openfeature/web-sdk": ">=1.3" | ||
}, | ||
"gitHead": "39669d0cf62757df6e4623ec5db6b4a6aaad4918" | ||
"gitHead": "ca07a2ca2f0bd732edf859dc991dd849a67df006" | ||
} |
@@ -61,4 +61,8 @@ # Bucket Browser OpenFeature Provider | ||
return { | ||
user: { id: context.userId, name: context.name, email: context.email }, | ||
company: { id: context.orgId, name: context.orgName }, | ||
user: { | ||
id: context["trackingKey"], | ||
name: context["name"], | ||
email: context["email"], | ||
}, | ||
company: { id: context["orgId"], name: context["orgName"] }, | ||
}; | ||
@@ -65,0 +69,0 @@ }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
969480
5089
105