UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.

18 lines 699 B
export const DELTA_EVENT_TYPES = { FEATURE_UPDATED: 'feature-updated', FEATURE_REMOVED: 'feature-removed', SEGMENT_UPDATED: 'segment-updated', SEGMENT_REMOVED: 'segment-removed', HYDRATION: 'hydration', }; export const isDeltaFeatureUpdatedEvent = (event) => { return event.type === DELTA_EVENT_TYPES.FEATURE_UPDATED; }; export const isDeltaFeatureRemovedEvent = (event) => { return event.type === DELTA_EVENT_TYPES.FEATURE_REMOVED; }; export const isDeltaSegmentEvent = (event) => { return (event.type === DELTA_EVENT_TYPES.SEGMENT_UPDATED || event.type === DELTA_EVENT_TYPES.SEGMENT_REMOVED); }; //# sourceMappingURL=client-feature-toggle-delta-types.js.map