unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
20 lines • 543 B
JavaScript
export class DefaultBootstrapProvider {
constructor(options) {
this.data = options.data;
this.segments = options.segments;
}
async readBootstrap() {
if (this.data) {
return {
version: 2,
segments: this.segments,
features: [...this.data],
};
}
return undefined;
}
}
export function resolveBootstrapProvider(options) {
return new DefaultBootstrapProvider(options);
}
//# sourceMappingURL=bootstrap-provider.js.map