mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-11 00:08:30 +01:00
feat: sdk with double start prevention (#6146)
This commit is contained in:
parent
c69f41e4ce
commit
7e9958d8b6
@ -145,7 +145,7 @@
|
|||||||
"stoppable": "^1.1.0",
|
"stoppable": "^1.1.0",
|
||||||
"ts-toolbelt": "^9.6.0",
|
"ts-toolbelt": "^9.6.0",
|
||||||
"type-is": "^1.6.18",
|
"type-is": "^1.6.18",
|
||||||
"unleash-client": "5.3.2",
|
"unleash-client": "5.5.0-beta.0",
|
||||||
"uuid": "^9.0.0"
|
"uuid": "^9.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
import EventEmitter from 'events';
|
import EventEmitter from 'events';
|
||||||
import { RepositoryInterface } from 'unleash-client/lib/repository';
|
import { RepositoryInterface } from 'unleash-client/lib/repository';
|
||||||
import { Segment } from 'unleash-client/lib/strategy/strategy';
|
import { Segment } from 'unleash-client/lib/strategy/strategy';
|
||||||
import { FeatureInterface } from 'unleash-client/lib/feature';
|
import {
|
||||||
|
EnhancedFeatureInterface,
|
||||||
|
FeatureInterface,
|
||||||
|
} from 'unleash-client/lib/feature';
|
||||||
import { IApiUser } from '../types/api-user';
|
import { IApiUser } from '../types/api-user';
|
||||||
import { IUnleashConfig, IUnleashServices, IUnleashStores } from '../types';
|
import { IUnleashConfig, IUnleashServices, IUnleashStores } from '../types';
|
||||||
import {
|
import {
|
||||||
@ -68,6 +71,11 @@ export class ProxyRepository
|
|||||||
this.interval = config.frontendApi.refreshIntervalInMs;
|
this.interval = config.frontendApi.refreshIntervalInMs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getTogglesWithSegmentData(): EnhancedFeatureInterface[] {
|
||||||
|
// TODO: add real implementation
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
getSegment(id: number): Segment | undefined {
|
getSegment(id: number): Segment | undefined {
|
||||||
return this.segments.find((segment) => segment.id === id);
|
return this.segments.find((segment) => segment.id === id);
|
||||||
}
|
}
|
||||||
|
@ -7152,10 +7152,10 @@ universalify@^0.2.0:
|
|||||||
resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0"
|
resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0"
|
||||||
integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==
|
integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==
|
||||||
|
|
||||||
unleash-client@5.3.2:
|
unleash-client@5.5.0-beta.0:
|
||||||
version "5.3.2"
|
version "5.5.0-beta.0"
|
||||||
resolved "https://registry.yarnpkg.com/unleash-client/-/unleash-client-5.3.2.tgz#d4612d6893b2175fd23a038c85c9deaf2d60a1af"
|
resolved "https://registry.yarnpkg.com/unleash-client/-/unleash-client-5.5.0-beta.0.tgz#8e9b8778fa2027fa282dcc9d31e0306a44bbb763"
|
||||||
integrity sha512-0iR0bzvWoJSuLPr9VKQhu1qr2jV3UeXcnMJylTzeeZWNhD6dxQSYS1bVl1wGhTRo/ucXnk5Lx66zmreIqojp8Q==
|
integrity sha512-/HwClfmGKl6Pl+X8LTe4xCjxjRzgolx9DXBQFVSN6FDLGUHqf7BJWeYbZ5DSu5AaNVG/9dvksmrdjMXDiPSejQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
ip "^1.1.8"
|
ip "^1.1.8"
|
||||||
make-fetch-happen "^10.2.1"
|
make-fetch-happen "^10.2.1"
|
||||||
|
Loading…
Reference in New Issue
Block a user