UNPKG

unleash-server

Version:

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

15 lines 793 B
import { FeatureSearchService } from './feature-search-service.js'; import FakeFeatureSearchStore from './fake-feature-search-store.js'; import FeatureSearchStore from './feature-search-store.js'; export const createFeatureSearchService = (config) => (db) => { const { getLogger, eventBus, flagResolver } = config; const featureSearchStore = new FeatureSearchStore(db, eventBus, getLogger, flagResolver); return new FeatureSearchService({ featureSearchStore: featureSearchStore }, config); }; export const createFakeFeatureSearchService = (config) => { const fakeFeatureSearchStore = new FakeFeatureSearchStore(); return new FeatureSearchService({ featureSearchStore: fakeFeatureSearchStore, }, config); }; //# sourceMappingURL=createFeatureSearchService.js.map