Skip to content

Commit 545390f

Browse files
committed
Merge branch 'main' of github.com:Flagsmith/flagsmith-js-client
2 parents d96d94f + d480bb9 commit 545390f

File tree

8 files changed

+210
-68
lines changed

8 files changed

+210
-68
lines changed

flagsmith-core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { isTraitEvaluationContext, toEvaluationContext, toTraitEvaluationContext
2727
import { ensureTrailingSlash } from './utils/ensureTrailingSlash';
2828
import { SDK_VERSION } from './utils/version';
2929

30-
enum FlagSource {
30+
export enum FlagSource {
3131
"NONE" = "NONE",
3232
"DEFAULT_FLAGS" = "DEFAULT_FLAGS",
3333
"CACHE" = "CACHE",

index.react-native.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ export const createFlagsmithInstance = ()=>{
1414
eventSource: _EventSource
1515
})
1616
}
17+
export { FlagSource } from './flagsmith-core';

index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ export default flagsmith;
1919
export const createFlagsmithInstance = ():IFlagsmith=>{
2020
return core({ AsyncStorage, fetch:_fetch, eventSource:_EventSource})
2121
}
22+
export { FlagSource } from './flagsmith-core';

isomorphic.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ export const createFlagsmithInstance = (): IFlagsmith => {
2424
eventSource: typeof window !=='undefined'?eventSource : null
2525
})
2626
}
27+
export { FlagSource } from './flagsmith-core';

next-middleware.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ export default flagsmith;
55
export const createFlagsmithInstance = ():IFlagsmith=>{
66
return core({})
77
}
8+
export { FlagSource } from './flagsmith-core';

0 commit comments

Comments
 (0)