@eppo/js-client-sdk-common
Advanced tools
Comparing version 3.3.3 to 3.4.0
@@ -77,2 +77,3 @@ import { IAssignmentLogger } from '../assignment-logger'; | ||
getFlagKeys(): string[]; | ||
getFlagConfigurations(): Record<string, Flag>; | ||
isInitialized(): boolean; | ||
@@ -143,2 +144,3 @@ } | ||
setIsGracefulFailureMode(gracefulFailureMode: boolean): void; | ||
getFlagConfigurations(): Record<string, Flag>; | ||
private flushQueuedEvents; | ||
@@ -145,0 +147,0 @@ private logAssignment; |
@@ -206,2 +206,5 @@ "use strict"; | ||
} | ||
getFlagConfigurations() { | ||
return this.configurationStore.entries(); | ||
} | ||
flushQueuedEvents() { | ||
@@ -208,0 +211,0 @@ var _a; |
@@ -26,2 +26,3 @@ /** | ||
get(key: string): T | null; | ||
entries(): Record<string, T>; | ||
getKeys(): string[]; | ||
@@ -34,2 +35,3 @@ isInitialized(): boolean; | ||
get(key: string): T | null; | ||
entries(): Record<string, T>; | ||
getKeys(): string[]; | ||
@@ -42,5 +44,5 @@ isInitialized(): boolean; | ||
isExpired(): Promise<boolean>; | ||
getEntries(): Promise<Record<string, T>>; | ||
entries(): Promise<Record<string, T>>; | ||
setEntries(entries: Record<string, T>): Promise<void>; | ||
} | ||
//# sourceMappingURL=configuration-store.d.ts.map |
@@ -13,2 +13,3 @@ import { IAsyncStore, IConfigurationStore, ISyncStore } from './configuration-store'; | ||
get(key: string): T | null; | ||
entries(): Record<string, T>; | ||
getKeys(): string[]; | ||
@@ -15,0 +16,0 @@ setEntries(entries: Record<string, T>): Promise<void>; |
@@ -27,3 +27,3 @@ "use strict"; | ||
} | ||
const entries = await this.persistentStore.getEntries(); | ||
const entries = await this.persistentStore.entries(); | ||
this.servingStore.setEntries(entries); | ||
@@ -46,2 +46,5 @@ } | ||
} | ||
entries() { | ||
return this.servingStore.entries(); | ||
} | ||
getKeys() { | ||
@@ -48,0 +51,0 @@ return this.servingStore.getKeys(); |
@@ -6,2 +6,3 @@ import { IConfigurationStore, ISyncStore } from './configuration-store'; | ||
get(key: string): T | null; | ||
entries(): Record<string, T>; | ||
getKeys(): string[]; | ||
@@ -16,2 +17,3 @@ isInitialized(): boolean; | ||
get(key: string): T | null; | ||
entries(): Record<string, T>; | ||
getKeys(): string[]; | ||
@@ -18,0 +20,0 @@ isExpired(): Promise<boolean>; |
@@ -13,2 +13,5 @@ "use strict"; | ||
} | ||
entries() { | ||
return this.store; | ||
} | ||
getKeys() { | ||
@@ -38,2 +41,5 @@ return Object.keys(this.store); | ||
} | ||
entries() { | ||
return this.servingStore.entries(); | ||
} | ||
getKeys() { | ||
@@ -40,0 +46,0 @@ return this.servingStore.getKeys(); |
{ | ||
"name": "@eppo/js-client-sdk-common", | ||
"version": "3.3.3", | ||
"version": "3.4.0", | ||
"description": "Eppo SDK for client-side JavaScript applications (base for both web and react native)", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -146,2 +146,4 @@ import ApiEndpoints from '../api-endpoints'; | ||
getFlagConfigurations(): Record<string, Flag>; | ||
isInitialized(): boolean; | ||
@@ -507,2 +509,6 @@ } | ||
public getFlagConfigurations(): Record<string, Flag> { | ||
return this.configurationStore.entries(); | ||
} | ||
private flushQueuedEvents() { | ||
@@ -509,0 +515,0 @@ const eventsToFlush = this.queuedEvents; |
@@ -26,2 +26,3 @@ /** | ||
get(key: string): T | null; | ||
entries(): Record<string, T>; | ||
getKeys(): string[]; | ||
@@ -35,2 +36,3 @@ isInitialized(): boolean; | ||
get(key: string): T | null; | ||
entries(): Record<string, T>; | ||
getKeys(): string[]; | ||
@@ -44,4 +46,4 @@ isInitialized(): boolean; | ||
isExpired(): Promise<boolean>; | ||
getEntries(): Promise<Record<string, T>>; | ||
entries(): Promise<Record<string, T>>; | ||
setEntries(entries: Record<string, T>): Promise<void>; | ||
} |
@@ -32,3 +32,3 @@ import { logger, loggerPrefix } from '../application-logger'; | ||
const entries = await this.persistentStore.getEntries(); | ||
const entries = await this.persistentStore.entries(); | ||
this.servingStore.setEntries(entries); | ||
@@ -53,2 +53,6 @@ } | ||
public entries(): Record<string, T> { | ||
return this.servingStore.entries(); | ||
} | ||
public getKeys(): string[] { | ||
@@ -55,0 +59,0 @@ return this.servingStore.getKeys(); |
@@ -11,2 +11,6 @@ import { IConfigurationStore, ISyncStore } from './configuration-store'; | ||
entries(): Record<string, T> { | ||
return this.store; | ||
} | ||
getKeys(): string[] { | ||
@@ -39,2 +43,6 @@ return Object.keys(this.store); | ||
entries(): Record<string, T> { | ||
return this.servingStore.entries(); | ||
} | ||
getKeys(): string[] { | ||
@@ -41,0 +49,0 @@ return this.servingStore.getKeys(); |
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 not supported yet
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 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
593193
4236