@@ -10,6 +10,7 @@ import type {
10
10
ProviderMetadata ,
11
11
TrackingEventDetails ,
12
12
} from '@openfeature/web-sdk' ;
13
+ import { MapHookData } from '@openfeature/web-sdk' ;
13
14
import {
14
15
DefaultLogger ,
15
16
ErrorCode ,
@@ -21,7 +22,6 @@ import {
21
22
import { FirstMatchStrategy } from './strategies/FirstMatchStrategy' ;
22
23
import { FirstSuccessfulStrategy } from './strategies/FirstSuccessfulStrategy' ;
23
24
import { ComparisonStrategy } from './strategies/ComparisonStrategy' ;
24
- import type { BaseEvaluationStrategy } from './strategies/BaseEvaluationStrategy' ;
25
25
26
26
class TestProvider implements Provider {
27
27
public metadata : ProviderMetadata = {
@@ -64,6 +64,7 @@ const callBeforeHook = (
64
64
clientMetadata : { } as any ,
65
65
providerMetadata : { } as any ,
66
66
logger : logger ,
67
+ hookData : new MapHookData ( ) ,
67
68
} ;
68
69
multi . hooks [ 0 ] . before ?.( hookContext ) ;
69
70
} ;
@@ -271,6 +272,7 @@ describe('MultiProvider', () => {
271
272
clientMetadata : { } as any ,
272
273
providerMetadata : { } as any ,
273
274
logger : logger ,
275
+ hookData : new MapHookData ( ) ,
274
276
} ;
275
277
276
278
provider1 . hooks = [
@@ -350,6 +352,7 @@ describe('MultiProvider', () => {
350
352
clientMetadata : { } as any ,
351
353
providerMetadata : { } as any ,
352
354
logger : logger ,
355
+ hookData : new MapHookData ( ) ,
353
356
} ;
354
357
355
358
provider1 . hooks = [
0 commit comments