unleash-server 5.1.8 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/create-config.js +5 -2
- package/dist/lib/create-config.js.map +1 -1
- package/dist/lib/db/access-store.d.ts +2 -1
- package/dist/lib/db/access-store.js +17 -3
- package/dist/lib/db/access-store.js.map +1 -1
- package/dist/lib/db/client-metrics-store-v2.js +19 -30
- package/dist/lib/db/client-metrics-store-v2.js.map +1 -1
- package/dist/lib/db/context-field-store.d.ts +4 -1
- package/dist/lib/db/context-field-store.js +44 -14
- package/dist/lib/db/context-field-store.js.map +1 -1
- package/dist/lib/db/environment-store.d.ts +1 -0
- package/dist/lib/db/environment-store.js +6 -0
- package/dist/lib/db/environment-store.js.map +1 -1
- package/dist/lib/db/event-store.js +2 -1
- package/dist/lib/db/event-store.js.map +1 -1
- package/dist/lib/db/feature-strategy-store.d.ts +2 -0
- package/dist/lib/db/feature-strategy-store.js +25 -0
- package/dist/lib/db/feature-strategy-store.js.map +1 -1
- package/dist/lib/db/feature-strategy-store.test.js +75 -0
- package/dist/lib/db/feature-strategy-store.test.js.map +1 -0
- package/dist/lib/db/group-store.d.ts +1 -1
- package/dist/lib/db/group-store.js +2 -2
- package/dist/lib/db/group-store.js.map +1 -1
- package/dist/lib/db/index.js +2 -2
- package/dist/lib/db/index.js.map +1 -1
- package/dist/lib/db/project-store.js +2 -1
- package/dist/lib/db/project-store.js.map +1 -1
- package/dist/lib/db/role-store.js +2 -2
- package/dist/lib/db/role-store.js.map +1 -1
- package/dist/lib/db/segment-store.d.ts +6 -2
- package/dist/lib/db/segment-store.js +27 -6
- package/dist/lib/db/segment-store.js.map +1 -1
- package/dist/lib/error/no-access-error.d.ts +3 -2
- package/dist/lib/error/no-access-error.js +10 -4
- package/dist/lib/error/no-access-error.js.map +1 -1
- package/dist/lib/error/unleash-error.test.js +8 -2
- package/dist/lib/error/unleash-error.test.js.map +1 -1
- package/dist/lib/features/access/createAccessService.js +5 -5
- package/dist/lib/features/access/createAccessService.js.map +1 -1
- package/dist/lib/features/export-import-toggles/createExportImportService.js +4 -2
- package/dist/lib/features/export-import-toggles/createExportImportService.js.map +1 -1
- package/dist/lib/features/export-import-toggles/export-import-api-usage.test.d.ts +1 -0
- package/dist/lib/features/export-import-toggles/export-import-api-usage.test.js +69 -0
- package/dist/lib/features/export-import-toggles/export-import-api-usage.test.js.map +1 -0
- package/dist/lib/features/export-import-toggles/export-import-controller.js +5 -1
- package/dist/lib/features/export-import-toggles/export-import-controller.js.map +1 -1
- package/dist/lib/features/export-import-toggles/export-import-service.js +7 -2
- package/dist/lib/features/export-import-toggles/export-import-service.js.map +1 -1
- package/dist/lib/features/feature-toggle/createFeatureToggleService.js +4 -4
- package/dist/lib/features/feature-toggle/createFeatureToggleService.js.map +1 -1
- package/dist/lib/features/playground/advanced-playground.test.d.ts +1 -0
- package/dist/lib/features/playground/advanced-playground.test.js +238 -0
- package/dist/lib/features/playground/advanced-playground.test.js.map +1 -0
- package/dist/lib/{util → features/playground}/feature-evaluator/client.d.ts +3 -2
- package/dist/lib/{util → features/playground}/feature-evaluator/client.js +1 -1
- package/dist/lib/features/playground/feature-evaluator/client.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/constraint.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/context.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/feature-evaluator.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/feature.js.map +1 -0
- package/dist/lib/{util → features/playground}/feature-evaluator/helpers.d.ts +1 -1
- package/dist/lib/features/playground/feature-evaluator/helpers.js.map +1 -0
- package/dist/lib/{util → features/playground}/feature-evaluator/index.d.ts +1 -1
- package/dist/lib/{util → features/playground}/feature-evaluator/index.js +2 -2
- package/dist/lib/features/playground/feature-evaluator/index.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/repository/bootstrap-provider.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/repository/index.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/repository/storage-provider-in-mem.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/repository/storage-provider.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/application-hostname-strategy.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/default-strategy.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/flexible-rollout-strategy.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/gradual-rollout-random.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/gradual-rollout-session-id.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/gradual-rollout-user-id.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/index.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/remote-address-strategy.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/strategy.js.map +1 -0
- package/dist/lib/{util → features/playground}/feature-evaluator/strategy/unknown-strategy.js +1 -1
- package/dist/lib/features/playground/feature-evaluator/strategy/unknown-strategy.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/user-with-id-strategy.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/util.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/variant.js.map +1 -0
- package/dist/lib/features/playground/generateObjectCombinations.d.ts +7 -0
- package/dist/lib/features/playground/generateObjectCombinations.js +16 -0
- package/dist/lib/features/playground/generateObjectCombinations.js.map +1 -0
- package/dist/lib/features/playground/generateObjectCombinations.test.d.ts +1 -0
- package/dist/lib/features/playground/generateObjectCombinations.test.js +33 -0
- package/dist/lib/features/playground/generateObjectCombinations.test.js.map +1 -0
- package/dist/lib/{util → features/playground}/offline-unleash-client.js +2 -2
- package/dist/lib/features/playground/offline-unleash-client.js.map +1 -0
- package/dist/lib/{util → features/playground}/offline-unleash-client.test.js +1 -1
- package/dist/lib/features/playground/offline-unleash-client.test.js.map +1 -0
- package/dist/lib/features/playground/playground-service.d.ts +34 -0
- package/dist/lib/features/playground/playground-service.js +114 -0
- package/dist/lib/features/playground/playground-service.js.map +1 -0
- package/dist/lib/features/playground/playground-view-model.d.ts +4 -0
- package/dist/lib/features/playground/playground-view-model.js +49 -0
- package/dist/lib/features/playground/playground-view-model.js.map +1 -0
- package/dist/lib/features/playground/playground-view-model.test.d.ts +1 -0
- package/dist/lib/features/playground/playground-view-model.test.js +122 -0
- package/dist/lib/features/playground/playground-view-model.test.js.map +1 -0
- package/dist/lib/features/playground/playground.d.ts +16 -0
- package/dist/lib/features/playground/playground.js +78 -0
- package/dist/lib/features/playground/playground.js.map +1 -0
- package/dist/lib/features/playground/playground.test.d.ts +1 -0
- package/dist/lib/{routes/admin-api → features/playground}/playground.test.js +3 -2
- package/dist/lib/features/playground/playground.test.js.map +1 -0
- package/dist/lib/features/playground/validateQueryComplexity.d.ts +1 -0
- package/dist/lib/features/playground/validateQueryComplexity.js +15 -0
- package/dist/lib/features/playground/validateQueryComplexity.js.map +1 -0
- package/dist/lib/features/playground/validateQueryComplexity.test.d.ts +1 -0
- package/dist/lib/features/playground/validateQueryComplexity.test.js +19 -0
- package/dist/lib/features/playground/validateQueryComplexity.test.js.map +1 -0
- package/dist/lib/middleware/rbac-middleware.d.ts +1 -1
- package/dist/lib/middleware/rbac-middleware.js +7 -4
- package/dist/lib/middleware/rbac-middleware.js.map +1 -1
- package/dist/lib/middleware/rbac-middleware.test.js +8 -8
- package/dist/lib/middleware/rbac-middleware.test.js.map +1 -1
- package/dist/lib/openapi/endpoint-descriptions.d.ts +4 -0
- package/dist/lib/openapi/endpoint-descriptions.js +4 -0
- package/dist/lib/openapi/endpoint-descriptions.js.map +1 -1
- package/dist/lib/openapi/index.js +7 -0
- package/dist/lib/openapi/index.js.map +1 -1
- package/dist/lib/openapi/meta-schema-rules.test.js +16 -25
- package/dist/lib/openapi/meta-schema-rules.test.js.map +1 -1
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.d.ts +652 -0
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js +146 -0
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js.map +1 -0
- package/dist/lib/openapi/spec/advanced-playground-feature-schema.d.ts +1217 -0
- package/dist/lib/openapi/spec/advanced-playground-feature-schema.js +51 -0
- package/dist/lib/openapi/spec/advanced-playground-feature-schema.js.map +1 -0
- package/dist/lib/openapi/spec/advanced-playground-request-schema.d.ts +95 -0
- package/dist/lib/openapi/spec/advanced-playground-request-schema.js +49 -0
- package/dist/lib/openapi/spec/advanced-playground-request-schema.js.map +1 -0
- package/dist/lib/openapi/spec/advanced-playground-response-schema.d.ts +2560 -0
- package/dist/lib/openapi/spec/advanced-playground-response-schema.js +50 -0
- package/dist/lib/openapi/spec/advanced-playground-response-schema.js.map +1 -0
- package/dist/lib/openapi/spec/client-application-schema.d.ts +17 -0
- package/dist/lib/openapi/spec/client-application-schema.js +17 -0
- package/dist/lib/openapi/spec/client-application-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-feature-schema.d.ts +44 -13
- package/dist/lib/openapi/spec/client-feature-schema.js +17 -12
- package/dist/lib/openapi/spec/client-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-features-query-schema.d.ts +12 -0
- package/dist/lib/openapi/spec/client-features-query-schema.js +12 -0
- package/dist/lib/openapi/spec/client-features-query-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-features-schema.d.ts +90 -14
- package/dist/lib/openapi/spec/client-features-schema.js +7 -0
- package/dist/lib/openapi/spec/client-features-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-features-schema.test.js +5 -12
- package/dist/lib/openapi/spec/client-features-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/client-metrics-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/client-metrics-schema.js +1 -1
- package/dist/lib/openapi/spec/client-metrics-schema.js.map +1 -1
- package/dist/lib/openapi/spec/context-field-schema.d.ts +13 -0
- package/dist/lib/openapi/spec/context-field-schema.js +13 -0
- package/dist/lib/openapi/spec/context-field-schema.js.map +1 -1
- package/dist/lib/openapi/spec/context-field-strategies-schema.d.ts +43 -0
- package/dist/lib/openapi/spec/context-field-strategies-schema.js +51 -0
- package/dist/lib/openapi/spec/context-field-strategies-schema.js.map +1 -0
- package/dist/lib/openapi/spec/context-fields-schema.d.ts +13 -0
- package/dist/lib/openapi/spec/create-application-schema.d.ts +0 -1
- package/dist/lib/openapi/spec/create-application-schema.js +0 -1
- package/dist/lib/openapi/spec/create-application-schema.js.map +1 -1
- package/dist/lib/openapi/spec/export-result-schema.d.ts +137 -4
- package/dist/lib/openapi/spec/feature-environment-schema.d.ts +22 -1
- package/dist/lib/openapi/spec/feature-schema.d.ts +49 -2
- package/dist/lib/openapi/spec/feature-schema.test.js +1 -1
- package/dist/lib/openapi/spec/feature-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/feature-strategy-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/feature-strategy-schema.js +1 -1
- package/dist/lib/openapi/spec/feature-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-variants-schema.d.ts +26 -0
- package/dist/lib/openapi/spec/features-schema.d.ts +98 -4
- package/dist/lib/openapi/spec/health-check-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/health-check-schema.js +3 -0
- package/dist/lib/openapi/spec/health-check-schema.js.map +1 -1
- package/dist/lib/openapi/spec/health-overview-schema.d.ts +105 -4
- package/dist/lib/openapi/spec/health-overview-schema.js +7 -0
- package/dist/lib/openapi/spec/health-overview-schema.js.map +1 -1
- package/dist/lib/openapi/spec/health-report-schema.d.ts +105 -4
- package/dist/lib/openapi/spec/import-toggles-schema.d.ts +274 -8
- package/dist/lib/openapi/spec/index.d.ts +3 -0
- package/dist/lib/openapi/spec/index.js +3 -0
- package/dist/lib/openapi/spec/index.js.map +1 -1
- package/dist/lib/openapi/spec/instance-admin-stats-schema.d.ts +65 -2
- package/dist/lib/openapi/spec/instance-admin-stats-schema.js +65 -2
- package/dist/lib/openapi/spec/instance-admin-stats-schema.js.map +1 -1
- package/dist/lib/openapi/spec/override-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/override-schema.js +5 -0
- package/dist/lib/openapi/spec/override-schema.js.map +1 -1
- package/dist/lib/openapi/spec/password-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/password-schema.js +3 -0
- package/dist/lib/openapi/spec/password-schema.js.map +1 -1
- package/dist/lib/openapi/spec/playground-feature-schema.d.ts +41 -1
- package/dist/lib/openapi/spec/playground-feature-schema.js +6 -1
- package/dist/lib/openapi/spec/playground-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/playground-feature-schema.test.js +3 -0
- package/dist/lib/openapi/spec/playground-feature-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/playground-request-schema.d.ts +7 -1
- package/dist/lib/openapi/spec/playground-request-schema.js +1 -1
- package/dist/lib/openapi/spec/playground-request-schema.js.map +1 -1
- package/dist/lib/openapi/spec/playground-response-schema.d.ts +93 -3
- package/dist/lib/openapi/spec/playground-strategy-schema.d.ts +13 -1
- package/dist/lib/openapi/spec/playground-strategy-schema.js +13 -0
- package/dist/lib/openapi/spec/playground-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/profile-schema.d.ts +49 -2
- package/dist/lib/openapi/spec/project-overview-schema.d.ts +104 -4
- package/dist/lib/openapi/spec/project-overview-schema.js +6 -0
- package/dist/lib/openapi/spec/project-overview-schema.js.map +1 -1
- package/dist/lib/openapi/spec/push-variants-schema.d.ts +26 -0
- package/dist/lib/openapi/spec/sdk-context-schema.d.ts +6 -0
- package/dist/lib/openapi/spec/sdk-context-schema.js +14 -2
- package/dist/lib/openapi/spec/sdk-context-schema.js.map +1 -1
- package/dist/lib/openapi/spec/state-schema.d.ts +72 -4
- package/dist/lib/openapi/spec/variant-schema.d.ts +21 -0
- package/dist/lib/openapi/spec/variant-schema.js +13 -0
- package/dist/lib/openapi/spec/variant-schema.js.map +1 -1
- package/dist/lib/openapi/spec/variants-schema.d.ts +26 -0
- package/dist/lib/openapi/util/create-response-schema.d.ts +1 -0
- package/dist/lib/openapi/util/create-response-schema.js +7 -1
- package/dist/lib/openapi/util/create-response-schema.js.map +1 -1
- package/dist/lib/proxy/proxy-repository.js +1 -1
- package/dist/lib/proxy/proxy-repository.js.map +1 -1
- package/dist/lib/routes/admin-api/api-token.d.ts +2 -0
- package/dist/lib/routes/admin-api/api-token.js +120 -11
- package/dist/lib/routes/admin-api/api-token.js.map +1 -1
- package/dist/lib/routes/admin-api/context.d.ts +3 -0
- package/dist/lib/routes/admin-api/context.js +21 -0
- package/dist/lib/routes/admin-api/context.js.map +1 -1
- package/dist/lib/routes/admin-api/index.js +1 -1
- package/dist/lib/routes/admin-api/index.js.map +1 -1
- package/dist/lib/routes/admin-api/instance-admin.d.ts +3 -1
- package/dist/lib/routes/admin-api/instance-admin.js +41 -0
- package/dist/lib/routes/admin-api/instance-admin.js.map +1 -1
- package/dist/lib/routes/admin-api/metrics.test.js +12 -0
- package/dist/lib/routes/admin-api/metrics.test.js.map +1 -1
- package/dist/lib/routes/admin-api/project/api-token.js +7 -0
- package/dist/lib/routes/admin-api/project/api-token.js.map +1 -1
- package/dist/lib/routes/admin-api/user/user.js +5 -4
- package/dist/lib/routes/admin-api/user/user.js.map +1 -1
- package/dist/lib/routes/admin-api/user/user.test.js +30 -5
- package/dist/lib/routes/admin-api/user/user.test.js.map +1 -1
- package/dist/lib/routes/admin-api/user-admin.js +0 -1
- package/dist/lib/routes/admin-api/user-admin.js.map +1 -1
- package/dist/lib/routes/client-api/feature.js +4 -0
- package/dist/lib/routes/client-api/feature.js.map +1 -1
- package/dist/lib/routes/client-api/metrics.js +2 -0
- package/dist/lib/routes/client-api/metrics.js.map +1 -1
- package/dist/lib/routes/client-api/register.js +2 -0
- package/dist/lib/routes/client-api/register.js.map +1 -1
- package/dist/lib/routes/controller.d.ts +8 -7
- package/dist/lib/routes/controller.js +11 -10
- package/dist/lib/routes/controller.js.map +1 -1
- package/dist/lib/routes/health-check.js +2 -0
- package/dist/lib/routes/health-check.js.map +1 -1
- package/dist/lib/server-impl.js +1 -1
- package/dist/lib/server-impl.js.map +1 -1
- package/dist/lib/services/access-service.d.ts +6 -4
- package/dist/lib/services/access-service.js +47 -11
- package/dist/lib/services/access-service.js.map +1 -1
- package/dist/lib/services/access-service.test.js +39 -22
- package/dist/lib/services/access-service.test.js.map +1 -1
- package/dist/lib/services/api-token-service.d.ts +1 -0
- package/dist/lib/services/api-token-service.js +3 -0
- package/dist/lib/services/api-token-service.js.map +1 -1
- package/dist/lib/services/context-service.d.ts +4 -1
- package/dist/lib/services/context-service.js +14 -1
- package/dist/lib/services/context-service.js.map +1 -1
- package/dist/lib/services/feature-toggle-service.d.ts +1 -1
- package/dist/lib/services/feature-toggle-service.js +6 -7
- package/dist/lib/services/feature-toggle-service.js.map +1 -1
- package/dist/lib/services/group-service.js +1 -3
- package/dist/lib/services/group-service.js.map +1 -1
- package/dist/lib/services/index.d.ts +1 -1
- package/dist/lib/services/index.js +1 -1
- package/dist/lib/services/index.js.map +1 -1
- package/dist/lib/services/instance-stats-service.d.ts +2 -3
- package/dist/lib/services/project-service.js +1 -0
- package/dist/lib/services/project-service.js.map +1 -1
- package/dist/lib/services/user-service.d.ts +1 -0
- package/dist/lib/services/user-service.js +8 -0
- package/dist/lib/services/user-service.js.map +1 -1
- package/dist/lib/services/version-service.d.ts +37 -1
- package/dist/lib/services/version-service.js +76 -5
- package/dist/lib/services/version-service.js.map +1 -1
- package/dist/lib/services/version-service.test.js +196 -9
- package/dist/lib/services/version-service.test.js.map +1 -1
- package/dist/lib/types/experimental.d.ts +1 -1
- package/dist/lib/types/experimental.js +6 -2
- package/dist/lib/types/experimental.js.map +1 -1
- package/dist/lib/types/model.d.ts +9 -4
- package/dist/lib/types/model.js +1 -0
- package/dist/lib/types/model.js.map +1 -1
- package/dist/lib/types/option.d.ts +2 -0
- package/dist/lib/types/permissions.d.ts +34 -27
- package/dist/lib/types/permissions.js +85 -29
- package/dist/lib/types/permissions.js.map +1 -1
- package/dist/lib/types/services.d.ts +1 -1
- package/dist/lib/types/stores/access-store.d.ts +1 -1
- package/dist/lib/types/stores/context-field-store.d.ts +2 -0
- package/dist/lib/types/stores/environment-store.d.ts +1 -0
- package/dist/lib/types/stores/feature-strategies-store.d.ts +2 -0
- package/dist/lib/types/stores/feature-toggle-store.d.ts +1 -1
- package/dist/lib/types/stores/group-store.d.ts +1 -1
- package/dist/lib/util/constants.d.ts +7 -1
- package/dist/lib/util/constants.js +8 -2
- package/dist/lib/util/constants.js.map +1 -1
- package/dist/lib/util/ensureArray.d.ts +1 -0
- package/dist/lib/util/ensureArray.js +8 -0
- package/dist/lib/util/ensureArray.js.map +1 -0
- package/dist/lib/util/index.d.ts +1 -1
- package/dist/lib/util/index.js +1 -1
- package/dist/lib/util/index.js.map +1 -1
- package/dist/migrations/20230615122909-fix-env-sort-order.d.ts +2 -0
- package/dist/migrations/20230615122909-fix-env-sort-order.js +28 -0
- package/dist/migrations/20230615122909-fix-env-sort-order.js.map +1 -0
- package/dist/migrations/20230619105029-new-fine-grained-api-token-permissions.d.ts +2 -0
- package/dist/migrations/20230619105029-new-fine-grained-api-token-permissions.js +26 -0
- package/dist/migrations/20230619105029-new-fine-grained-api-token-permissions.js.map +1 -0
- package/dist/migrations/20230619110243-assign-apitoken-permissions-to-rootroles.d.ts +2 -0
- package/dist/migrations/20230619110243-assign-apitoken-permissions-to-rootroles.js +23 -0
- package/dist/migrations/20230619110243-assign-apitoken-permissions-to-rootroles.js.map +1 -0
- package/dist/migrations/20230621141239-refactor-api-token-permissions.d.ts +2 -0
- package/dist/migrations/20230621141239-refactor-api-token-permissions.js +19 -0
- package/dist/migrations/20230621141239-refactor-api-token-permissions.js.map +1 -0
- package/dist/server-dev.js +3 -3
- package/dist/server-dev.js.map +1 -1
- package/dist/test/arbitraries.test.js +3 -1
- package/dist/test/arbitraries.test.js.map +1 -1
- package/dist/test/config/test-config.js +0 -1
- package/dist/test/config/test-config.js.map +1 -1
- package/dist/test/e2e/api/admin/api-token.auth.e2e.test.js +542 -3
- package/dist/test/e2e/api/admin/api-token.auth.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/api-token.e2e.test.js +14 -1
- package/dist/test/e2e/api/admin/api-token.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/client-metrics.e2e.test.js +1 -8
- package/dist/test/e2e/api/admin/client-metrics.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/context.e2e.test.js +47 -1
- package/dist/test/e2e/api/admin/context.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/project/features.e2e.test.js +14 -14
- package/dist/test/e2e/api/admin/project/features.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/project/projects.e2e.test.js +14 -0
- package/dist/test/e2e/api/admin/project/projects.e2e.test.js.map +1 -1
- package/dist/test/e2e/helpers/test-helper.d.ts +1 -1
- package/dist/test/e2e/helpers/test-helper.js +4 -2
- package/dist/test/e2e/helpers/test-helper.js.map +1 -1
- package/dist/test/e2e/services/access-service.e2e.test.js +1 -1
- package/dist/test/e2e/services/access-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/playground-service.test.js +2 -2
- package/dist/test/e2e/services/playground-service.test.js.map +1 -1
- package/dist/test/fixtures/access-service-mock.js +1 -1
- package/dist/test/fixtures/access-service-mock.js.map +1 -1
- package/dist/test/fixtures/fake-access-store.d.ts +5 -3
- package/dist/test/fixtures/fake-access-store.js +24 -9
- package/dist/test/fixtures/fake-access-store.js.map +1 -1
- package/dist/test/fixtures/fake-environment-store.d.ts +1 -0
- package/dist/test/fixtures/fake-environment-store.js +3 -0
- package/dist/test/fixtures/fake-environment-store.js.map +1 -1
- package/dist/test/fixtures/fake-feature-strategies-store.d.ts +2 -0
- package/dist/test/fixtures/fake-feature-strategies-store.js +7 -0
- package/dist/test/fixtures/fake-feature-strategies-store.js.map +1 -1
- package/dist/test/fixtures/fake-group-store.d.ts +1 -1
- package/dist/test/fixtures/fake-group-store.js +1 -1
- package/dist/test/fixtures/fake-group-store.js.map +1 -1
- package/dist/test/fixtures/fake-role-store.d.ts +1 -1
- package/dist/test/fixtures/fake-role-store.js +9 -4
- package/dist/test/fixtures/fake-role-store.js.map +1 -1
- package/frontend/build/index.html +1 -1
- package/frontend/build/static/AdvancedPlayground-520a25e1.js +1 -0
- package/frontend/build/static/CreateProject-c430691b.js +4 -0
- package/frontend/build/static/{Error-5606eccd.js → Error-492e8b38.js} +1 -1
- package/frontend/build/static/FeatureArchiveDialog-70daa567.js +10 -0
- package/frontend/build/static/{FeatureMetricsChart-1c6bb078.js → FeatureMetricsChart-bc99b364.js} +2 -2
- package/frontend/build/static/FeatureViewLazyExport-01d70575.js +7 -0
- package/frontend/build/static/LazyAdminExport-e2c90193.js +37 -0
- package/frontend/build/static/LazyProjectExport-fa62d2fe.js +13 -0
- package/frontend/build/static/NetworkOverview-3b72e4ea.js +1298 -0
- package/frontend/build/static/NetworkTraffic-365db744.js +1 -0
- package/frontend/build/static/Playground-b473b399.js +1 -0
- package/frontend/build/static/{Playground-6602cb1a.js → PlaygroundGuidancePopper-8e3e97db.js} +12 -12
- package/frontend/build/static/RoleCell-9bb513a8.js +1 -0
- package/frontend/build/static/StrategyItemContainer-1f7503c7.js +1 -0
- package/frontend/build/static/{chartjs-adapter-date-fns.esm-c75aa905.js → chartjs-adapter-date-fns.esm-db338d44.js} +1 -1
- package/frontend/build/static/flowchart-elk-definition-170a3958-a428dd25.js +134 -0
- package/frontend/build/static/index-0a56292a.js +450 -0
- package/frontend/build/static/{index-b3def5eb.js → index-d362ae7a.js} +1 -1
- package/frontend/build/static/{index-f8439975.js → index-dc5debe9.js} +1 -1
- package/frontend/build/static/is_dark-884249e0.js +1 -0
- package/frontend/build/static/mindmap-definition-44684416-3c9425ff.js +101 -0
- package/frontend/build/static/stringify-ec884b6d.js +1 -0
- package/frontend/build/static/timeline-definition-8e5a9bc6-d289cd6d.js +62 -0
- package/frontend/build/static/{unknownify-6683037a.js → unknownify-5b23bf29.js} +1 -1
- package/frontend/package.json +18 -17
- package/package.json +16 -13
- package/dist/lib/routes/admin-api/playground.d.ts +0 -12
- package/dist/lib/routes/admin-api/playground.js +0 -46
- package/dist/lib/routes/admin-api/playground.js.map +0 -1
- package/dist/lib/routes/admin-api/playground.test.js.map +0 -1
- package/dist/lib/services/playground-service.d.ts +0 -12
- package/dist/lib/services/playground-service.js +0 -65
- package/dist/lib/services/playground-service.js.map +0 -1
- package/dist/lib/util/feature-evaluator/client.js.map +0 -1
- package/dist/lib/util/feature-evaluator/constraint.js.map +0 -1
- package/dist/lib/util/feature-evaluator/context.js.map +0 -1
- package/dist/lib/util/feature-evaluator/feature-evaluator.js.map +0 -1
- package/dist/lib/util/feature-evaluator/feature.js.map +0 -1
- package/dist/lib/util/feature-evaluator/helpers.js.map +0 -1
- package/dist/lib/util/feature-evaluator/index.js.map +0 -1
- package/dist/lib/util/feature-evaluator/repository/bootstrap-provider.js.map +0 -1
- package/dist/lib/util/feature-evaluator/repository/index.js.map +0 -1
- package/dist/lib/util/feature-evaluator/repository/storage-provider-in-mem.js.map +0 -1
- package/dist/lib/util/feature-evaluator/repository/storage-provider.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/application-hostname-strategy.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/default-strategy.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/flexible-rollout-strategy.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/gradual-rollout-random.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/gradual-rollout-session-id.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/gradual-rollout-user-id.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/index.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/remote-address-strategy.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/strategy.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/unknown-strategy.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/user-with-id-strategy.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/util.js.map +0 -1
- package/dist/lib/util/feature-evaluator/variant.js.map +0 -1
- package/dist/lib/util/offline-unleash-client.js.map +0 -1
- package/dist/lib/util/offline-unleash-client.test.js.map +0 -1
- package/frontend/build/static/CreateProject-217f67b6.js +0 -4
- package/frontend/build/static/FeatureArchiveDialog-c311c641.js +0 -4
- package/frontend/build/static/FeatureViewLazyExport-06cf4baa.js +0 -7
- package/frontend/build/static/LazyAdminExport-04c8032d.js +0 -43
- package/frontend/build/static/LazyProjectExport-d9663a8c.js +0 -19
- package/frontend/build/static/NetworkOverview-2bce4916.js +0 -1296
- package/frontend/build/static/NetworkTraffic-7db94d86.js +0 -1
- package/frontend/build/static/StrategyItemContainer-0140b94f.js +0 -1
- package/frontend/build/static/index-1f392976.js +0 -450
- package/frontend/build/static/useProjectRole-122ac4bb.js +0 -1
- package/frontend/build/static/v4-a960c1f4.js +0 -1
- /package/dist/lib/{routes/admin-api/playground.test.d.ts → db/feature-strategy-store.test.d.ts} +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/constraint.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/constraint.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/context.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/context.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/feature-evaluator.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/feature-evaluator.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/feature.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/feature.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/helpers.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/repository/bootstrap-provider.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/repository/bootstrap-provider.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/repository/index.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/repository/index.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/repository/storage-provider-in-mem.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/repository/storage-provider-in-mem.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/repository/storage-provider.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/repository/storage-provider.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/application-hostname-strategy.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/application-hostname-strategy.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/default-strategy.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/default-strategy.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/flexible-rollout-strategy.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/flexible-rollout-strategy.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/gradual-rollout-random.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/gradual-rollout-random.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/gradual-rollout-session-id.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/gradual-rollout-session-id.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/gradual-rollout-user-id.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/gradual-rollout-user-id.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/index.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/index.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/remote-address-strategy.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/remote-address-strategy.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/strategy.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/strategy.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/unknown-strategy.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/user-with-id-strategy.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/user-with-id-strategy.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/util.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/util.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/variant.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/variant.js +0 -0
- /package/dist/lib/{util → features/playground}/offline-unleash-client.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/offline-unleash-client.test.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const i=[];for(let n=0;n<256;++n)i.push((n+256).toString(16).slice(1));function c(n,u=0){return(i[n[u+0]]+i[n[u+1]]+i[n[u+2]]+i[n[u+3]]+"-"+i[n[u+4]]+i[n[u+5]]+"-"+i[n[u+6]]+i[n[u+7]]+"-"+i[n[u+8]]+i[n[u+9]]+"-"+i[n[u+10]]+i[n[u+11]]+i[n[u+12]]+i[n[u+13]]+i[n[u+14]]+i[n[u+15]]).toLowerCase()}export{c as u};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import{o as kt,q as vt,r as wt,g as rt,l as I,s as q,a as St,t as Et,u as Tt,v as et}from"./NetworkOverview-3b72e4ea.js";import{i as It}from"./is_dark-884249e0.js";import"./index-0a56292a.js";import"./stringify-ec884b6d.js";import"./unknownify-5b23bf29.js";var X=function(){var n=function(k,r,a,h){for(a=a||{},h=k.length;h--;a[k[h]]=r);return a},t=[1,2],e=[1,5],s=[6,9,11,17,18,20,22,23,26,27,28],i=[1,15],o=[1,16],l=[1,17],p=[1,18],g=[1,19],d=[1,23],f=[1,24],v=[1,27],_=[4,6,9,11,17,18,20,22,23,26,27,28],b={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,period_statement:24,event_statement:25,period:26,event:27,open_directive:28,type_directive:29,arg_directive:30,close_directive:31,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",26:"period",27:"event",28:"open_directive",29:"type_directive",30:"arg_directive",31:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[24,1],[25,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(r,a,h,u,y,c,M){var x=c.length-1;switch(y){case 1:return c[x-1];case 3:this.$=[];break;case 4:c[x-1].push(c[x]),this.$=c[x-1];break;case 5:case 6:this.$=c[x];break;case 7:case 8:this.$=[];break;case 11:u.getCommonDb().setDiagramTitle(c[x].substr(6)),this.$=c[x].substr(6);break;case 12:this.$=c[x].trim(),u.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=c[x].trim(),u.getCommonDb().setAccDescription(this.$);break;case 15:u.addSection(c[x].substr(8)),this.$=c[x].substr(8);break;case 19:u.addTask(c[x],0,""),this.$=c[x];break;case 20:u.addEvent(c[x].substr(2)),this.$=c[x];break;case 21:u.parseDirective("%%{","open_directive");break;case 22:u.parseDirective(c[x],"type_directive");break;case 23:c[x]=c[x].trim().replace(/'/g,'"'),u.parseDirective(c[x],"arg_directive");break;case 24:u.parseDirective("}%%","close_directive","timeline");break}},table:[{3:1,4:t,7:3,12:4,28:e},{1:[3]},n(s,[2,3],{5:6}),{3:7,4:t,7:3,12:4,28:e},{13:8,29:[1,9]},{29:[2,21]},{6:[1,10],7:22,8:11,9:[1,12],10:13,11:[1,14],12:4,17:i,18:o,20:l,22:p,23:g,24:20,25:21,26:d,27:f,28:e},{1:[2,2]},{14:25,15:[1,26],31:v},n([15,31],[2,22]),n(s,[2,8],{1:[2,1]}),n(s,[2,4]),{7:22,10:28,12:4,17:i,18:o,20:l,22:p,23:g,24:20,25:21,26:d,27:f,28:e},n(s,[2,6]),n(s,[2,7]),n(s,[2,11]),{19:[1,29]},{21:[1,30]},n(s,[2,14]),n(s,[2,15]),n(s,[2,16]),n(s,[2,17]),n(s,[2,18]),n(s,[2,19]),n(s,[2,20]),{11:[1,31]},{16:32,30:[1,33]},{11:[2,24]},n(s,[2,5]),n(s,[2,12]),n(s,[2,13]),n(_,[2,9]),{14:34,31:v},{31:[2,23]},{11:[1,35]},n(_,[2,10])],defaultActions:{5:[2,21],7:[2,2],27:[2,24],33:[2,23]},parseError:function(r,a){if(a.recoverable)this.trace(r);else{var h=new Error(r);throw h.hash=a,h}},parse:function(r){var a=this,h=[0],u=[],y=[null],c=[],M=this.table,x="",N=0,S=0,L=2,V=1,H=c.slice.call(arguments,1),m=Object.create(this.lexer),C={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(C.yy[O]=this.yy[O]);m.setInput(r,C.yy),C.yy.lexer=m,C.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var J=m.yylloc;c.push(J);var _t=m.options&&m.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function bt(){var P;return P=u.pop()||m.lex()||V,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=a.symbols_[P]||P),P}for(var T,z,$,K,W={},j,A,tt,G;;){if(z=h[h.length-1],this.defaultActions[z]?$=this.defaultActions[z]:((T===null||typeof T>"u")&&(T=bt()),$=M[z]&&M[z][T]),typeof $>"u"||!$.length||!$[0]){var Q="";G=[];for(j in M[z])this.terminals_[j]&&j>L&&G.push("'"+this.terminals_[j]+"'");m.showPosition?Q="Parse error on line "+(N+1)+`:
|
|
2
|
+
`+m.showPosition()+`
|
|
3
|
+
Expecting `+G.join(", ")+", got '"+(this.terminals_[T]||T)+"'":Q="Parse error on line "+(N+1)+": Unexpected "+(T==V?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(Q,{text:m.match,token:this.terminals_[T]||T,line:m.yylineno,loc:J,expected:G})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+T);switch($[0]){case 1:h.push(T),y.push(m.yytext),c.push(m.yylloc),h.push($[1]),T=null,S=m.yyleng,x=m.yytext,N=m.yylineno,J=m.yylloc;break;case 2:if(A=this.productions_[$[1]][1],W.$=y[y.length-A],W._$={first_line:c[c.length-(A||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(A||1)].first_column,last_column:c[c.length-1].last_column},_t&&(W._$.range=[c[c.length-(A||1)].range[0],c[c.length-1].range[1]]),K=this.performAction.apply(W,[x,S,N,C.yy,$[1],y,c].concat(H)),typeof K<"u")return K;A&&(h=h.slice(0,-1*A*2),y=y.slice(0,-1*A),c=c.slice(0,-1*A)),h.push(this.productions_[$[1]][0]),y.push(W.$),c.push(W._$),tt=M[h[h.length-2]][h[h.length-1]],h.push(tt);break;case 3:return!0}}return!0}},w=function(){var k={EOF:1,parseError:function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},setInput:function(r,a){return this.yy=a||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var a=r.length,h=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===u.length?this.yylloc.first_column:0)+u[u.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
5
|
+
`+a+"^"},test_match:function(r,a){var h,u,y;if(this.options.backtrack_lexer&&(y={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(y.yylloc.range=this.yylloc.range.slice(0))),u=r[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],h=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),h)return h;if(this._backtrack){for(var c in y)this[c]=y[c];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,a,h,u;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),c=0;c<y.length;c++)if(h=this._input.match(this.rules[y[c]]),h&&(!a||h[0].length>a[0].length)){if(a=h,u=c,this.options.backtrack_lexer){if(r=this.test_match(h,y[c]),r!==!1)return r;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(r=this.test_match(a,y[u]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return a||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(a,h,u,y){switch(u){case 0:return this.begin("open_directive"),28;case 1:return this.begin("type_directive"),29;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),31;case 4:return 30;case 5:break;case 6:break;case 7:return 11;case 8:break;case 9:break;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 27;case 21:return 26;case 22:return 6;case 23:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?::\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23],inclusive:!0}}};return k}();b.lexer=w;function E(){this.yy={}}return E.prototype=b,b.Parser=E,new E}();X.parser=X;const $t=X;let F="",at=0;const Y=[],U=[],B=[],ct=()=>kt,ot=(n,t,e)=>{vt(globalThis,n,t,e)},lt=function(){Y.length=0,U.length=0,F="",B.length=0,wt()},ht=function(n){F=n,Y.push(n)},dt=function(){return Y},ut=function(){let n=nt();const t=100;let e=0;for(;!n&&e<t;)n=nt(),e++;return U.push(...B),U},pt=function(n,t,e){const s={id:at++,section:F,type:F,task:n,score:t||0,events:e?[e]:[]};B.push(s)},yt=function(n){B.find(e=>e.id===at-1).events.push(n)},gt=function(n){const t={section:F,type:F,description:n,task:n,classes:[]};U.push(t)},nt=function(){const n=function(e){return B[e].processed};let t=!0;for(const[e,s]of B.entries())n(e),t=t&&s.processed;return t},Nt={clear:lt,getCommonDb:ct,addSection:ht,getSections:dt,getTasks:ut,addTask:pt,addTaskOrg:gt,addEvent:yt,parseDirective:ot},Mt=Object.freeze(Object.defineProperty({__proto__:null,addEvent:yt,addSection:ht,addTask:pt,addTaskOrg:gt,clear:lt,default:Nt,getCommonDb:ct,getSections:dt,getTasks:ut,parseDirective:ot},Symbol.toStringTag,{value:"Module"})),Lt=12,Z=function(n,t){const e=n.append("rect");return e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),e.attr("rx",t.rx),e.attr("ry",t.ry),t.class!==void 0&&e.attr("class",t.class),e},At=function(n,t){const s=n.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=n.append("g");i.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function o(g){const d=et().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",d).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}function l(g){const d=et().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",d).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}function p(g){g.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return t.score>3?o(i):t.score<3?l(i):p(i),s},Pt=function(n,t){const e=n.append("circle");return e.attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),e.class!==void 0&&e.attr("class",e.class),t.title!==void 0&&e.append("title").text(t.title),e},ft=function(n,t){const e=t.text.replace(/<br\s*\/?>/gi," "),s=n.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class!==void 0&&s.attr("class",t.class);const i=s.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.text(e),s},Ht=function(n,t){function e(i,o,l,p,g){return i+","+o+" "+(i+l)+","+o+" "+(i+l)+","+(o+p-g)+" "+(i+l-g*1.2)+","+(o+p)+" "+i+","+(o+p)}const s=n.append("polygon");s.attr("points",e(t.x,t.y,50,20,7)),s.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,ft(n,t)},Ct=function(n,t,e){const s=n.append("g"),i=D();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=e.width,i.height=e.height,i.class="journey-section section-type-"+t.num,i.rx=3,i.ry=3,Z(s,i),mt(e)(t.text,s,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+t.num},e,t.colour)};let it=-1;const Vt=function(n,t,e){const s=t.x+e.width/2,i=n.append("g");it++;const o=300+5*30;i.append("line").attr("id","task"+it).attr("x1",s).attr("y1",t.y).attr("x2",s).attr("y2",o).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),At(i,{cx:s,cy:300+(5-t.score)*30,score:t.score});const l=D();l.x=t.x,l.y=t.y,l.fill=t.fill,l.width=e.width,l.height=e.height,l.class="task task-type-"+t.num,l.rx=3,l.ry=3,Z(i,l),t.x+14,mt(e)(t.task,i,l.x,l.y,l.width,l.height,{class:"task"},e,t.colour)},zt=function(n,t){Z(n,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},Rt=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},D=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},mt=function(){function n(i,o,l,p,g,d,f,v){const _=o.append("text").attr("x",l+g/2).attr("y",p+d/2+5).style("font-color",v).style("text-anchor","middle").text(i);s(_,f)}function t(i,o,l,p,g,d,f,v,_){const{taskFontSize:b,taskFontFamily:w}=v,E=i.split(/<br\s*\/?>/gi);for(let k=0;k<E.length;k++){const r=k*b-b*(E.length-1)/2,a=o.append("text").attr("x",l+g/2).attr("y",p).attr("fill",_).style("text-anchor","middle").style("font-size",b).style("font-family",w);a.append("tspan").attr("x",l+g/2).attr("dy",r).text(E[k]),a.attr("y",p+d/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(a,f)}}function e(i,o,l,p,g,d,f,v){const _=o.append("switch"),w=_.append("foreignObject").attr("x",l).attr("y",p).attr("width",g).attr("height",d).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");w.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),t(i,_,l,p,g,d,f,v),s(w,f)}function s(i,o){for(const l in o)l in o&&i.attr(l,o[l])}return function(i){return i.textPlacement==="fo"?e:i.textPlacement==="old"?n:t}}(),Wt=function(n){n.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")};function xt(n,t){n.each(function(){var e=q(this),s=e.text().split(/(\s+|<br>)/).reverse(),i,o=[],l=1.1,p=e.attr("y"),g=parseFloat(e.attr("dy")),d=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("dy",g+"em");for(let f=0;f<s.length;f++)i=s[s.length-1-f],o.push(i),d.text(o.join(" ").trim()),(d.node().getComputedTextLength()>t||i==="<br>")&&(o.pop(),d.text(o.join(" ").trim()),i==="<br>"?o=[""]:o=[i],d=e.append("tspan").attr("x",0).attr("y",p).attr("dy",l+"em").text(i))})}const Ft=function(n,t,e,s){const i=e%Lt-1,o=n.append("g");t.section=i,o.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+i));const l=o.append("g"),p=o.append("g"),d=p.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(xt,t.width).node().getBBox(),f=s.fontSize&&s.fontSize.replace?s.fontSize.replace("px",""):s.fontSize;return t.height=d.height+f*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,p.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),Ot(l,t,i),t},Bt=function(n,t,e){const s=n.append("g"),o=s.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(xt,t.width).node().getBBox(),l=e.fontSize&&e.fontSize.replace?e.fontSize.replace("px",""):e.fontSize;return s.remove(),o.height+l*1.1*.5+t.padding},Ot=function(n,t,e){n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+2*5} q0,-5 5,-5 h${t.width-2*5} q5,0 5,5 v${t.height-5} H0 Z`),n.append("line").attr("class","node-line-"+e).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},R={drawRect:Z,drawCircle:Pt,drawSection:Ct,drawText:ft,drawLabel:Ht,drawTask:Vt,drawBackgroundRect:zt,getTextObj:Rt,getNoteRect:D,initGraphics:Wt,drawNode:Ft,getVirtualNodeHeight:Bt},jt=function(n){Object.keys(n).forEach(function(e){conf[e]=n[e]})},Gt=function(n,t,e,s){const i=rt(),o=i.leftMargin?i.leftMargin:50;s.db.clear(),s.parser.parse(n+`
|
|
7
|
+
`),I.debug("timeline",s.db);const l=i.securityLevel;let p;l==="sandbox"&&(p=q("#i"+t));const d=(l==="sandbox"?q(p.nodes()[0].contentDocument.body):q("body")).select("#"+t);d.append("g");const f=s.db.getTasks(),v=s.db.getCommonDb().getDiagramTitle();I.debug("task",f),R.initGraphics(d);const _=s.db.getSections();I.debug("sections",_);let b=0,w=0,E=0,k=0,r=50+o,a=50;k=50;let h=0,u=!0;_.forEach(function(N){const S={number:h,descr:N,section:h,width:150,padding:20,maxHeight:b},L=R.getVirtualNodeHeight(d,S,i);I.debug("sectionHeight before draw",L),b=Math.max(b,L+20)});let y=0,c=0;I.debug("tasks.length",f.length);for(const[N,S]of f.entries()){const L={number:N,descr:S,section:S.section,width:150,padding:20,maxHeight:w},V=R.getVirtualNodeHeight(d,L,i);I.debug("taskHeight before draw",V),w=Math.max(w,V+20),y=Math.max(y,S.events.length);let H=0;for(let m=0;m<S.events.length;m++){const O={descr:S.events[m],section:S.section,number:S.section,width:150,padding:20,maxHeight:50};H+=R.getVirtualNodeHeight(d,O,i)}c=Math.max(c,H)}I.debug("maxSectionHeight before draw",b),I.debug("maxTaskHeight before draw",w),_&&_.length>0?_.forEach(N=>{const S={number:h,descr:N,section:h,width:150,padding:20,maxHeight:b};I.debug("sectionNode",S);const L=d.append("g"),V=R.drawNode(L,S,h,i);I.debug("sectionNode output",V),L.attr("transform",`translate(${r}, ${k})`),a+=b+50;const H=f.filter(m=>m.section===N);H.length>0&&st(d,H,h,r,a,w,i,y,c,b,!1),r+=200*Math.max(H.length,1),a=k,h++}):(u=!1,st(d,f,h,r,a,w,i,y,c,b,!0));const M=d.node().getBBox();I.debug("bounds",M),v&&d.append("text").text(v).attr("x",M.width/2-o).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),E=u?b+w+150:w+100,d.append("g").attr("class","lineWrapper").append("line").attr("x1",o).attr("y1",E).attr("x2",M.width+3*o).attr("y2",E).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),St(void 0,d,i.timeline.padding?i.timeline.padding:50,i.timeline.useMaxWidth?i.timeline.useMaxWidth:!1)},st=function(n,t,e,s,i,o,l,p,g,d,f){for(const v of t){const _={descr:v.task,section:e,number:e,width:150,padding:20,maxHeight:o};I.debug("taskNode",_);const b=n.append("g").attr("class","taskWrapper"),E=R.drawNode(b,_,e,l).height;if(I.debug("taskHeight after draw",E),b.attr("transform",`translate(${s}, ${i})`),o=Math.max(o,E),v.events){const k=n.append("g").attr("class","lineWrapper");let r=o;i+=100,r=r+qt(n,v.events,e,s,i,l),i-=100,k.append("line").attr("x1",s+190/2).attr("y1",i+o).attr("x2",s+190/2).attr("y2",i+o+(f?o:d)+g+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}s=s+200,f&&!rt().timeline.disableMulticolor&&e++}i=i-10},qt=function(n,t,e,s,i,o){let l=0;const p=i;i=i+100;for(const g of t){const d={descr:g,section:e,number:e,width:150,padding:20,maxHeight:50};I.debug("eventNode",d);const f=n.append("g").attr("class","eventWrapper"),_=R.drawNode(f,d,e,o).height;l=l+_,f.attr("transform",`translate(${s}, ${i})`),i=i+10+_}return i=p,l},Ut={setConf:jt,draw:Gt},Zt=n=>{let t="";for(let e=0;e<n.THEME_COLOR_LIMIT;e++)n["lineColor"+e]=n["lineColor"+e]||n["cScaleInv"+e],It(n["lineColor"+e])?n["lineColor"+e]=Et(n["lineColor"+e],20):n["lineColor"+e]=Tt(n["lineColor"+e],20);for(let e=0;e<n.THEME_COLOR_LIMIT;e++){const s=""+(17-3*e);t+=`
|
|
8
|
+
.section-${e-1} rect, .section-${e-1} path, .section-${e-1} circle, .section-${e-1} path {
|
|
9
|
+
fill: ${n["cScale"+e]};
|
|
10
|
+
}
|
|
11
|
+
.section-${e-1} text {
|
|
12
|
+
fill: ${n["cScaleLabel"+e]};
|
|
13
|
+
}
|
|
14
|
+
.node-icon-${e-1} {
|
|
15
|
+
font-size: 40px;
|
|
16
|
+
color: ${n["cScaleLabel"+e]};
|
|
17
|
+
}
|
|
18
|
+
.section-edge-${e-1}{
|
|
19
|
+
stroke: ${n["cScale"+e]};
|
|
20
|
+
}
|
|
21
|
+
.edge-depth-${e-1}{
|
|
22
|
+
stroke-width: ${s};
|
|
23
|
+
}
|
|
24
|
+
.section-${e-1} line {
|
|
25
|
+
stroke: ${n["cScaleInv"+e]} ;
|
|
26
|
+
stroke-width: 3;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.lineWrapper line{
|
|
30
|
+
stroke: ${n["cScaleLabel"+e]} ;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.disabled, .disabled circle, .disabled text {
|
|
34
|
+
fill: lightgray;
|
|
35
|
+
}
|
|
36
|
+
.disabled text {
|
|
37
|
+
fill: #efefef;
|
|
38
|
+
}
|
|
39
|
+
`}return t},Jt=n=>`
|
|
40
|
+
.edge {
|
|
41
|
+
stroke-width: 3;
|
|
42
|
+
}
|
|
43
|
+
${Zt(n)}
|
|
44
|
+
.section-root rect, .section-root path, .section-root circle {
|
|
45
|
+
fill: ${n.git0};
|
|
46
|
+
}
|
|
47
|
+
.section-root text {
|
|
48
|
+
fill: ${n.gitBranchLabel0};
|
|
49
|
+
}
|
|
50
|
+
.icon-container {
|
|
51
|
+
height:100%;
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
align-items: center;
|
|
55
|
+
}
|
|
56
|
+
.edge {
|
|
57
|
+
fill: none;
|
|
58
|
+
}
|
|
59
|
+
.eventWrapper {
|
|
60
|
+
filter: brightness(120%);
|
|
61
|
+
}
|
|
62
|
+
`,Kt=Jt,ee={db:Mt,renderer:Ut,parser:$t,styles:Kt};export{ee as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aR as r,aS as a,r as o,aT as c}from"./index-0a56292a.js";const u=(e={})=>{const{data:t,error:n,mutate:s}=r(a("api/admin/metrics/rps"),i,e);return o.useMemo(()=>({metrics:t,loading:!n&&!t,refetch:()=>s(),error:n}),[t,n,s])},i=e=>fetch(e).then(c("Instance Metrics")).then(t=>t.json()),f=e=>!e||e==="undefined"?"unknown":e;export{f as a,u};
|
package/frontend/package.json
CHANGED
|
@@ -34,23 +34,23 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@codemirror/lang-json": "6.0.1",
|
|
37
|
-
"@emotion/react": "11.11.
|
|
37
|
+
"@emotion/react": "11.11.1",
|
|
38
38
|
"@emotion/styled": "11.11.0",
|
|
39
39
|
"@mui/icons-material": "5.11.9",
|
|
40
40
|
"@mui/lab": "5.0.0-alpha.120",
|
|
41
41
|
"@mui/material": "5.11.10",
|
|
42
|
-
"@testing-library/dom": "8.20.
|
|
42
|
+
"@testing-library/dom": "8.20.1",
|
|
43
43
|
"@testing-library/jest-dom": "5.16.5",
|
|
44
44
|
"@testing-library/react": "12.1.5",
|
|
45
45
|
"@testing-library/react-hooks": "7.0.2",
|
|
46
46
|
"@testing-library/user-event": "14.4.3",
|
|
47
47
|
"@types/debounce": "1.2.1",
|
|
48
48
|
"@types/deep-diff": "1.0.2",
|
|
49
|
-
"@types/jest": "29.5.
|
|
49
|
+
"@types/jest": "29.5.2",
|
|
50
50
|
"@types/lodash.clonedeep": "4.5.7",
|
|
51
51
|
"@types/lodash.omit": "4.5.7",
|
|
52
|
-
"@types/node": "17.0.
|
|
53
|
-
"@types/react": "17.0.
|
|
52
|
+
"@types/node": "17.0.45",
|
|
53
|
+
"@types/react": "17.0.62",
|
|
54
54
|
"@types/react-dom": "17.0.20",
|
|
55
55
|
"@types/react-linkify": "1.0.1",
|
|
56
56
|
"@types/react-router-dom": "5.3.3",
|
|
@@ -59,22 +59,23 @@
|
|
|
59
59
|
"@types/react-timeago": "4.1.3",
|
|
60
60
|
"@types/semver": "7.5.0",
|
|
61
61
|
"@types/uuid": "^9.0.0",
|
|
62
|
-
"@uiw/codemirror-theme-duotone": "4.
|
|
63
|
-
"@uiw/react-codemirror": "4.
|
|
62
|
+
"@uiw/codemirror-theme-duotone": "4.21.3",
|
|
63
|
+
"@uiw/react-codemirror": "4.21.3",
|
|
64
64
|
"@vitejs/plugin-react": "3.1.0",
|
|
65
|
+
"cartesian": "^1.0.1",
|
|
65
66
|
"chart.js": "3.9.1",
|
|
66
67
|
"chartjs-adapter-date-fns": "3.0.0",
|
|
67
68
|
"classnames": "2.3.2",
|
|
68
69
|
"copy-to-clipboard": "3.3.3",
|
|
69
70
|
"countries-and-timezones": "^3.4.0",
|
|
70
|
-
"cypress": "12.
|
|
71
|
+
"cypress": "12.15.0",
|
|
71
72
|
"cypress-vite": "^1.4.0",
|
|
72
73
|
"date-fns": "2.30.0",
|
|
73
74
|
"date-fns-tz": "^2.0.0",
|
|
74
75
|
"debounce": "1.2.1",
|
|
75
76
|
"deep-diff": "1.0.2",
|
|
76
77
|
"dequal": "2.0.3",
|
|
77
|
-
"eslint": "8.
|
|
78
|
+
"eslint": "8.43.0",
|
|
78
79
|
"eslint-config-react-app": "7.0.1",
|
|
79
80
|
"fast-json-patch": "3.1.1",
|
|
80
81
|
"http-proxy-middleware": "2.0.6",
|
|
@@ -99,30 +100,30 @@
|
|
|
99
100
|
"react-joyride": "^2.5.3",
|
|
100
101
|
"react-linkify": "^1.0.0-alpha",
|
|
101
102
|
"react-markdown": "^8.0.4",
|
|
102
|
-
"react-router-dom": "6.
|
|
103
|
+
"react-router-dom": "6.13.0",
|
|
103
104
|
"react-table": "7.8.0",
|
|
104
105
|
"react-test-renderer": "17.0.2",
|
|
105
106
|
"react-timeago": "7.1.0",
|
|
106
|
-
"sass": "1.
|
|
107
|
-
"semver": "7.5.
|
|
107
|
+
"sass": "1.63.4",
|
|
108
|
+
"semver": "7.5.2",
|
|
108
109
|
"swr": "2.1.5",
|
|
109
|
-
"tss-react": "4.8.
|
|
110
|
+
"tss-react": "4.8.6",
|
|
110
111
|
"typescript": "4.8.4",
|
|
111
|
-
"vite": "4.3.
|
|
112
|
+
"vite": "4.3.9",
|
|
112
113
|
"vite-plugin-env-compatible": "1.1.1",
|
|
113
114
|
"vite-plugin-svgr": "2.4.0",
|
|
114
115
|
"vite-tsconfig-paths": "4.2.0",
|
|
115
|
-
"vitest": "0.
|
|
116
|
+
"vitest": "0.32.2",
|
|
116
117
|
"whatwg-fetch": "3.6.2"
|
|
117
118
|
},
|
|
118
119
|
"optionalDependencies": {
|
|
119
120
|
"orval": "^6.10.3"
|
|
120
121
|
},
|
|
121
122
|
"resolutions": {
|
|
122
|
-
"@codemirror/state": "6.2.
|
|
123
|
+
"@codemirror/state": "6.2.1",
|
|
123
124
|
"@xmldom/xmldom": "^0.8.4",
|
|
124
125
|
"json5": "^2.2.2",
|
|
125
|
-
"@types/react": "17.0.
|
|
126
|
+
"@types/react": "17.0.62",
|
|
126
127
|
"@types/react-dom": "17.0.20"
|
|
127
128
|
},
|
|
128
129
|
"jest": {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unleash-server",
|
|
3
3
|
"description": "Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.2.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unleash",
|
|
7
7
|
"feature toggle",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"dev:frontend": "wait-on tcp:4242 && yarn --cwd ./frontend run dev",
|
|
40
40
|
"dev": "concurrently \"yarn:dev:backend\" \"yarn:dev:frontend\"",
|
|
41
41
|
"prepare": "node scripts/husky-install && yarn --cwd ./frontend install && if [ ! -d ./dist ]; then yarn build; fi",
|
|
42
|
+
"prepare:backend": "concurrently \"yarn:copy-templates\" \"yarn:build:backend\"",
|
|
42
43
|
"prestart:dev": "yarn run clean",
|
|
43
44
|
"start:dev": "TZ=UTC NODE_ENV=development tsc-watch --strictNullChecks false --onSuccess \"node dist/server-dev.js\"",
|
|
44
45
|
"db-migrate": "db-migrate --migrations-dir ./src/migrations",
|
|
@@ -132,10 +133,11 @@
|
|
|
132
133
|
"joi": "^17.3.0",
|
|
133
134
|
"js-sha256": "^0.9.0",
|
|
134
135
|
"js-yaml": "^4.1.0",
|
|
135
|
-
"json-schema-to-ts": "2.
|
|
136
|
+
"json-schema-to-ts": "2.9.1",
|
|
136
137
|
"json2csv": "^5.0.7",
|
|
137
138
|
"knex": "^2.4.2",
|
|
138
139
|
"lodash.get": "^4.4.2",
|
|
140
|
+
"lodash.groupby": "^4.6.0",
|
|
139
141
|
"log4js": "^6.0.0",
|
|
140
142
|
"make-fetch-happen": "^11.0.0",
|
|
141
143
|
"memoizee": "^0.4.15",
|
|
@@ -158,13 +160,13 @@
|
|
|
158
160
|
"stoppable": "^1.1.0",
|
|
159
161
|
"ts-toolbelt": "^9.6.0",
|
|
160
162
|
"type-is": "^1.6.18",
|
|
161
|
-
"unleash-client": "3.
|
|
163
|
+
"unleash-client": "3.21.0",
|
|
162
164
|
"uuid": "^9.0.0"
|
|
163
165
|
},
|
|
164
166
|
"devDependencies": {
|
|
165
167
|
"@apidevtools/swagger-parser": "10.1.0",
|
|
166
|
-
"@babel/core": "7.
|
|
167
|
-
"@swc/core": "1.3.
|
|
168
|
+
"@babel/core": "7.22.5",
|
|
169
|
+
"@swc/core": "1.3.66",
|
|
168
170
|
"@swc/jest": "0.2.26",
|
|
169
171
|
"@types/bcryptjs": "2.4.2",
|
|
170
172
|
"@types/cors": "2.8.13",
|
|
@@ -172,22 +174,23 @@
|
|
|
172
174
|
"@types/express-session": "1.17.7",
|
|
173
175
|
"@types/faker": "5.5.9",
|
|
174
176
|
"@types/hash-sum": "^1.0.0",
|
|
175
|
-
"@types/jest": "29.5.
|
|
177
|
+
"@types/jest": "29.5.2",
|
|
176
178
|
"@types/js-yaml": "4.0.5",
|
|
179
|
+
"@types/lodash.groupby": "4.6.7",
|
|
177
180
|
"@types/make-fetch-happen": "10.0.1",
|
|
178
181
|
"@types/memoizee": "0.4.8",
|
|
179
182
|
"@types/mime": "3.0.1",
|
|
180
|
-
"@types/node": "16.18.
|
|
181
|
-
"@types/nodemailer": "6.4.
|
|
183
|
+
"@types/node": "16.18.36",
|
|
184
|
+
"@types/nodemailer": "6.4.8",
|
|
182
185
|
"@types/owasp-password-strength-test": "1.3.0",
|
|
183
|
-
"@types/pg": "8.
|
|
186
|
+
"@types/pg": "8.10.2",
|
|
184
187
|
"@types/semver": "7.5.0",
|
|
185
188
|
"@types/stoppable": "1.1.1",
|
|
186
189
|
"@types/supertest": "2.0.12",
|
|
187
190
|
"@types/type-is": "1.6.3",
|
|
188
|
-
"@types/uuid": "9.0.
|
|
189
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
190
|
-
"@typescript-eslint/parser": "5.
|
|
191
|
+
"@types/uuid": "9.0.2",
|
|
192
|
+
"@typescript-eslint/eslint-plugin": "5.60.0",
|
|
193
|
+
"@typescript-eslint/parser": "5.60.0",
|
|
191
194
|
"concurrently": "^8.0.1",
|
|
192
195
|
"copyfiles": "2.4.1",
|
|
193
196
|
"coveralls": "3.1.1",
|
|
@@ -201,7 +204,7 @@
|
|
|
201
204
|
"eslint-plugin-prettier": "4.2.1",
|
|
202
205
|
"eslint-plugin-regexp": "^1.14.0",
|
|
203
206
|
"faker": "5.5.3",
|
|
204
|
-
"fast-check": "3.
|
|
207
|
+
"fast-check": "3.10.0",
|
|
205
208
|
"fetch-mock": "9.11.0",
|
|
206
209
|
"husky": "8.0.3",
|
|
207
210
|
"jest": "29.5.0",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Request, Response } from 'express';
|
|
2
|
-
import { IUnleashConfig } from '../../types/option';
|
|
3
|
-
import { IUnleashServices } from '../../types/services';
|
|
4
|
-
import Controller from '../controller';
|
|
5
|
-
import { PlaygroundResponseSchema } from '../../../lib/openapi/spec/playground-response-schema';
|
|
6
|
-
import { PlaygroundRequestSchema } from '../../../lib/openapi/spec/playground-request-schema';
|
|
7
|
-
export default class PlaygroundController extends Controller {
|
|
8
|
-
private openApiService;
|
|
9
|
-
private playgroundService;
|
|
10
|
-
constructor(config: IUnleashConfig, { openApiService, playgroundService, }: Pick<IUnleashServices, 'openApiService' | 'playgroundService'>);
|
|
11
|
-
evaluateContext(req: Request<any, any, PlaygroundRequestSchema>, res: Response<PlaygroundResponseSchema>): Promise<void>;
|
|
12
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const permissions_1 = require("../../types/permissions");
|
|
7
|
-
const controller_1 = __importDefault(require("../controller"));
|
|
8
|
-
const create_response_schema_1 = require("../../openapi/util/create-response-schema");
|
|
9
|
-
const endpoint_descriptions_1 = require("../../openapi/endpoint-descriptions");
|
|
10
|
-
const standard_responses_1 = require("../../../lib/openapi/util/standard-responses");
|
|
11
|
-
const create_request_schema_1 = require("../../../lib/openapi/util/create-request-schema");
|
|
12
|
-
const playground_response_schema_1 = require("../../../lib/openapi/spec/playground-response-schema");
|
|
13
|
-
class PlaygroundController extends controller_1.default {
|
|
14
|
-
constructor(config, { openApiService, playgroundService, }) {
|
|
15
|
-
super(config);
|
|
16
|
-
this.openApiService = openApiService;
|
|
17
|
-
this.playgroundService = playgroundService;
|
|
18
|
-
this.route({
|
|
19
|
-
method: 'post',
|
|
20
|
-
path: '',
|
|
21
|
-
handler: this.evaluateContext,
|
|
22
|
-
permission: permissions_1.NONE,
|
|
23
|
-
middleware: [
|
|
24
|
-
openApiService.validPath({
|
|
25
|
-
operationId: 'getPlayground',
|
|
26
|
-
tags: ['Playground'],
|
|
27
|
-
responses: {
|
|
28
|
-
...(0, standard_responses_1.getStandardResponses)(400, 401),
|
|
29
|
-
200: (0, create_response_schema_1.createResponseSchema)('playgroundResponseSchema'),
|
|
30
|
-
},
|
|
31
|
-
requestBody: (0, create_request_schema_1.createRequestSchema)('playgroundRequestSchema'),
|
|
32
|
-
...endpoint_descriptions_1.endpointDescriptions.admin.playground,
|
|
33
|
-
}),
|
|
34
|
-
],
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
async evaluateContext(req, res) {
|
|
38
|
-
const response = {
|
|
39
|
-
input: req.body,
|
|
40
|
-
features: await this.playgroundService.evaluateQuery(req.body.projects, req.body.environment, req.body.context),
|
|
41
|
-
};
|
|
42
|
-
this.openApiService.respondWithValidation(200, res, playground_response_schema_1.playgroundResponseSchema.$id, response);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.default = PlaygroundController;
|
|
46
|
-
//# sourceMappingURL=playground.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"playground.js","sourceRoot":"","sources":["../../../../src/lib/routes/admin-api/playground.ts"],"names":[],"mappings":";;;;;AAGA,yDAA+C;AAC/C,+DAAuC;AAEvC,sFAAiF;AACjF,+EAA2E;AAC3E,qFAAoF;AACpF,2FAAsF;AACtF,qGAG8D;AAI9D,MAAqB,oBAAqB,SAAQ,oBAAU;IAKxD,YACI,MAAsB,EACtB,EACI,cAAc,EACd,iBAAiB,GAC4C;QAEjE,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAE3C,IAAI,CAAC,KAAK,CAAC;YACP,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,EAAE;YACR,OAAO,EAAE,IAAI,CAAC,eAAe;YAC7B,UAAU,EAAE,kBAAI;YAChB,UAAU,EAAE;gBACR,cAAc,CAAC,SAAS,CAAC;oBACrB,WAAW,EAAE,eAAe;oBAC5B,IAAI,EAAE,CAAC,YAAY,CAAC;oBACpB,SAAS,EAAE;wBACP,GAAG,IAAA,yCAAoB,EAAC,GAAG,EAAE,GAAG,CAAC;wBACjC,GAAG,EAAE,IAAA,6CAAoB,EAAC,0BAA0B,CAAC;qBACxD;oBACD,WAAW,EAAE,IAAA,2CAAmB,EAAC,yBAAyB,CAAC;oBAC3D,GAAG,4CAAoB,CAAC,KAAK,CAAC,UAAU;iBAC3C,CAAC;aACL;SACJ,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,eAAe,CACjB,GAA+C,EAC/C,GAAuC;QAEvC,MAAM,QAAQ,GAAG;YACb,KAAK,EAAE,GAAG,CAAC,IAAI;YACf,QAAQ,EAAE,MAAM,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAChD,GAAG,CAAC,IAAI,CAAC,QAAQ,EACjB,GAAG,CAAC,IAAI,CAAC,WAAW,EACpB,GAAG,CAAC,IAAI,CAAC,OAAO,CACnB;SACJ,CAAC;QAEF,IAAI,CAAC,cAAc,CAAC,qBAAqB,CACrC,GAAG,EACH,GAAG,EACH,qDAAwB,CAAC,GAAG,EAC5B,QAAQ,CACX,CAAC;IACN,CAAC;CACJ;AAxDD,uCAwDC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"playground.test.js","sourceRoot":"","sources":["../../../../src/lib/routes/admin-api/playground.test.ts"],"names":[],"mappings":";;;;;AAAA,4DAA4B;AAE5B,0DAAkC;AAClC,6CAAgD;AAChD,kEAAoE;AAEpE,yEAAwD;AAExD,oDAA+B;A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AACP,CAAC,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SdkContextSchema } from 'lib/openapi/spec/sdk-context-schema';
|
|
2
|
-
import { IUnleashServices } from 'lib/types/services';
|
|
3
|
-
import { ALL } from '../../lib/types/models/api-token';
|
|
4
|
-
import { PlaygroundFeatureSchema } from 'lib/openapi/spec/playground-feature-schema';
|
|
5
|
-
import { IUnleashConfig } from 'lib/types';
|
|
6
|
-
export declare class PlaygroundService {
|
|
7
|
-
private readonly logger;
|
|
8
|
-
private readonly featureToggleService;
|
|
9
|
-
private readonly segmentService;
|
|
10
|
-
constructor(config: IUnleashConfig, { featureToggleServiceV2, segmentService, }: Pick<IUnleashServices, 'featureToggleServiceV2' | 'segmentService'>);
|
|
11
|
-
evaluateQuery(projects: typeof ALL | string[], environment: string, context: SdkContextSchema): Promise<PlaygroundFeatureSchema[]>;
|
|
12
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlaygroundService = void 0;
|
|
4
|
-
const api_token_1 = require("../../lib/types/models/api-token");
|
|
5
|
-
const offline_unleash_client_1 = require("../util/offline-unleash-client");
|
|
6
|
-
class PlaygroundService {
|
|
7
|
-
constructor(config, { featureToggleServiceV2, segmentService, }) {
|
|
8
|
-
this.logger = config.getLogger('services/playground-service.ts');
|
|
9
|
-
this.featureToggleService = featureToggleServiceV2;
|
|
10
|
-
this.segmentService = segmentService;
|
|
11
|
-
}
|
|
12
|
-
async evaluateQuery(projects, environment, context) {
|
|
13
|
-
const [features, segments] = await Promise.all([
|
|
14
|
-
this.featureToggleService.getClientFeatures({
|
|
15
|
-
project: projects === api_token_1.ALL ? undefined : projects,
|
|
16
|
-
environment,
|
|
17
|
-
}, true, false),
|
|
18
|
-
this.segmentService.getActive(),
|
|
19
|
-
]);
|
|
20
|
-
const [head, ...rest] = features;
|
|
21
|
-
if (!head) {
|
|
22
|
-
return [];
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
const client = await (0, offline_unleash_client_1.offlineUnleashClient)({
|
|
26
|
-
features: [head, ...rest],
|
|
27
|
-
context,
|
|
28
|
-
logError: this.logger.error,
|
|
29
|
-
segments,
|
|
30
|
-
});
|
|
31
|
-
const variantsMap = features.reduce((acc, feature) => {
|
|
32
|
-
acc[feature.name] = feature.variants;
|
|
33
|
-
return acc;
|
|
34
|
-
}, {});
|
|
35
|
-
const clientContext = {
|
|
36
|
-
...context,
|
|
37
|
-
currentTime: context.currentTime
|
|
38
|
-
? new Date(context.currentTime)
|
|
39
|
-
: undefined,
|
|
40
|
-
};
|
|
41
|
-
const output = await Promise.all(client
|
|
42
|
-
.getFeatureToggleDefinitions()
|
|
43
|
-
.map(async (feature) => {
|
|
44
|
-
const strategyEvaluationResult = client.isEnabled(feature.name, clientContext);
|
|
45
|
-
const isEnabled = strategyEvaluationResult.result === true &&
|
|
46
|
-
feature.enabled;
|
|
47
|
-
return {
|
|
48
|
-
isEnabled,
|
|
49
|
-
isEnabledInCurrentEnvironment: feature.enabled,
|
|
50
|
-
strategies: {
|
|
51
|
-
result: strategyEvaluationResult.result,
|
|
52
|
-
data: strategyEvaluationResult.strategies,
|
|
53
|
-
},
|
|
54
|
-
projectId: await this.featureToggleService.getProjectId(feature.name),
|
|
55
|
-
variant: client.getVariant(feature.name, clientContext),
|
|
56
|
-
name: feature.name,
|
|
57
|
-
variants: variantsMap[feature.name] || [],
|
|
58
|
-
};
|
|
59
|
-
}));
|
|
60
|
-
return output;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
exports.PlaygroundService = PlaygroundService;
|
|
65
|
-
//# sourceMappingURL=playground-service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"playground-service.js","sourceRoot":"","sources":["../../../src/lib/services/playground-service.ts"],"names":[],"mappings":";;;AAGA,gEAAuD;AAIvD,2EAAsE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AC,SAAS,CAAC,IAAI,CAAC,CAAC;QAChD,IACI,OAAO,OAAO,KAAK,WAAW;YAC9B,CAAC,OAAO,CAAC,QAAQ;YACjB,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC;YAChC,OAAO,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC;YAC7B,CAAC,OAAO,CAAC,OAAO,EAClB;YACE,OAAO,QAAQ,CAAC;SACnB;QAED,IAAI,OAAO,GAAG,IAAI,CAAC;QACnB,IAAI,WAAW,EAAE;YACb,OAAO;gBACH,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,CACzC,eAAe,CAAC,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CACpD,CAAC,MAAM,KAAK,IAAI,CAAC;YACtB,IAAI,CAAC,OAAO,EAAE;gBACV,OAAO,QAAQ,CAAC;aACnB;SACJ;QAED,MAAM,OAAO,GAA6B,IAAA,uBAAa,EACnD,OAAO,EACP,OAAO,CACV,CAAC;QACF,IAAI,OAAO,KAAK,IAAI,EAAE;YAClB,OAAO,QAAQ,CAAC;SACnB;QAED,OAAO;YACH,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,OAAO,EAAE,CAAC,WAAW,IAAI,OAAO;SACnC,CAAC;IACN,CAAC;CACJ;AA7MD,gCA6MC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constraint.js","sourceRoot":"","sources":["../../../../src/lib/util/feature-evaluator/constraint.ts"],"names":[],"mappings":";;;AAAA,mCAAwE;AAExE,uCAAgD;AAWhD,IAAY,QAgBX;AAhBD,WAAY,QAAQ;IAChB,qBAAS,CAAA;IACT,6BAAiB,CAAA;IACjB,2CAA+B,CAAA;IAC/B,+CAAmC,CAAA;IACnC,yCAA6B,CAAA;IAC7B,6BAAiB,CAAA;IACjB,6BAAiB,CAAA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iBAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAC/C,iBAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;AAChD,iBAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAC/C,iBAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;AAChD,iBAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;AACjD,iBAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;AAClD,iBAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;AAClD,iBAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;AAClD,iBAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/lib/util/feature-evaluator/context.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"feature-evaluator.js","sourceRoot":"","sources":["../../../../src/lib/util/feature-evaluator/feature-evaluator.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAqE;AACrE,8DAA+D;AAE/D,yCAAyD;AAWhD,yFAXA,mBAAQ,OAWA;AAPjB,uCAAqE;AACrE,wEAGyC;AAmBzC,MAAa,gBAAgB;IAOzB,YAAY,EACR,OAAO,EACP,WAAW,GAAG,SAAS,EACvB,UAAU,GAAG,EAAE,EACf,UAAU,EACV,SAAS,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,EACxB,eAAe,GACM;QACrB,IAAI,CAAC,aAAa,GAAG,EAAE,OAAO,E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IAAI,CAAC,aAAa,EAAE,GAAG,OAAO,EAAE,CAAC;QAC9D,OAAO,IAAI,CAAC,MAAM,CAAC,eAAe,CAC9B,IAAI,EACJ,eAAe,EACf,eAAe,CAClB,CAAC;IACN,CAAC;IAED,0BAA0B,CAAC,UAAkB;QACzC,OAAO,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;IAED,2BAA2B;QACvB,OAAO,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC;IACxC,CAAC;CACJ;AA9FD,4CA8FC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"feature.js","sourceRoot":"","sources":["../../../../src/lib/util/feature-evaluator/feature.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/lib/util/feature-evaluator/helpers.ts"],"names":[],"mappings":";;;AAMA,SAAgB,sBAAsB,CAClC,IAAY,EACZ,OAAgB,EAChB,QAAqC;IAErC,MAAM,gBAAgB,GAAG,CAAC,OAAgB,EAAE,EAAE,CAAC,CAAC;QAC5C,MAAM,EAAE,OAAO;QACf,UAAU,EAAE,EAAE;KACjB,CAAC,CAAC;IAEH,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE;QAChC,OAAO,GAAG,EAAE,CAAC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;KAC1D;IACD,IAAI,OAAO,QAAQ,KAAK,SAAS,EAAE;QAC/B,OAAO,GAAG,EAAE,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;KAC3C;IACD,OAAO,GAAG,EAAE,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;AACzC,CAAC;AAjBD,wDAiBC;AAED,SAAgB,mBAAmB,CAC/B,OAAgB,EAChB,KAAa;IAEb,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE;QAChB,OAAO,OAAO,CAAC,KAAK,CAAW,CAAC;KACnC;IACD,IAAI,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;QACjD,OAAO,OAAO,CAAC,UAAU,CAAC,KAAK,CAAW,CAAC;KAC9C;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AAXD,kDAWC;AAED,SAAgB,QAAQ,CAAC,MAAc,EAAE;IACrC,OAAO,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AACnC,CAAC;AAFD,4BAEC;AAED,SAAgB,kBAAkB,CAAC,WAAmB;IAClD,OAAO;QACH,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE,EAAE;QACf,QAAQ,EAAE,KAAK;QACf,UAAU,EAAE;YACR,OAAO,EAAE,KAAK;YACd,UAAU,EAAE,SAAS;YACrB,OAAO,EAAE,WAAW;SACvB;KACJ,CAAC;AACN,CAAC;AAXD,gDAWC;AAED,SAAS,cAAc,CACnB,eAAgC,EAChC,WAAmB;IAEnB,MAAM,OAAO,GACT,eAAe,EAAE,UAAU,EAAE,OAAO,KAAK,EAAE;QACvC,CAAC,CAAC,eAAe,CAAC,UAAU,EAAE,OAAO;QACrC,CAAC,CAAC,WAAW,CAAC;IAEtB,OAAO,OAAO,IAAI,EAAE,CAAC;AACzB,CAAC;AAED,SAAgB,yBAAyB,CACrC,eAAgC,EAChC,WAAmB;IAEnB,OAAO;QACH,GAAG,eAAe;QAClB,UAAU,EAAE;YACR,GAAG,eAAe,CAAC,UAAU;YAC7B,OAAO,EAAE,cAAc,CAAC,eAAe,EAAE,WAAW,CAAC;SACxD;KACJ,CAAC;AACN,CAAC;AAXD,8DAWC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/util/feature-evaluator/index.ts"],"names":[],"mappings":";;;;;;AAAA,2DAA+E;AAQpD,iGARlB,oCAAgB,OAQkB;AAJ3C,mGAAwE;AAI3B,+BAJtC,iCAAoB,CAIsC;AAFjE,UAAU;AACV,0CAA4C;AAAnC,iGAAA,QAAQ,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap-provider.js","sourceRoot":"","sources":["../../../../../src/lib/util/feature-evaluator/repository/bootstrap-provider.ts"],"names":[],"mappings":";;;AAYA,MAAa,wBAAwB;IAKjC,YAAY,OAAyB;QACjC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,aAAa;QACf,IAAI,IAAI,CAAC,IAAI,EAAE;YACX,OAAO;gBACH,OAAO,EAAE,CAAC;gBACV,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,QAAQ,EAAE,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;aAC3B,CAAC;SACL;QACD,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ;AApBD,4DAoBC;AAED,SAAgB,wBAAwB,CACpC,OAAyB;IAEzB,OAAO,IAAI,wBAAwB,CAAC,OAAO,CAAC,CAAC;AACjD,CAAC;AAJD,4DAIC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/util/feature-evaluator/repository/index.ts"],"names":[],"mappings":";;AAIA,mCAAsC;AACtC,mDAA+C;AAmB/C,MAAqB,UAAW,SAAQ,qBAAY;IAahD,YAAY,EACR,OAAO,EACP,iBAAiB,EACjB,eAAe,GACC;QAChB,KAAK,EAAE,CAAC;QATJ,SAAI,GAAsB,EAAE,CAAC;QAUjC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,QAAQ,GAAG,IAAI,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,GAAG,GAAG,QAAQ,CAAC,MAAM,CACvB,CACI,CAAoC,EACpC,OAAyB,EAC3B,EAAE;YACA,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;YACnB,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC;YAC1B,OAAO,CAAC,CAAC;QACb,CAAC,EACD,EAAuC,CAC1C,CAAC;QAEF,OAAO,GAAG,CAAC;IACf,CAAC;IAED,IAAI;QACA,IAAI,IAAI,CAAC,KAAK,EAAE;YACZ,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC5B;IACL,CAAC;IAED,UAAU,CAAC,SAAiB;QACxB,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACxC,CAAC;IAED,SAAS,CAAC,IAAY;QAClB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAED,UAAU;QACN,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/D,CAAC;CACJ;AA7FD,6BA6FC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage-provider-in-mem.js","sourceRoot":"","sources":["../../../../../src/lib/util/feature-evaluator/repository/storage-provider-in-mem.ts"],"names":[],"mappings":";;AAEA,MAAqB,oBAAoB;IAAzC;QACY,UAAK,GAAmB,IAAI,GAAG,EAAa,CAAC;IAUzD,CAAC;IARG,KAAK,CAAC,GAAG,CAAC,GAAW,EAAE,IAAO;QAC1B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAC1B,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC7B,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,GAAW;QACjB,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;IAChD,CAAC;CACJ;AAXD,uCAWC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage-provider.js","sourceRoot":"","sources":["../../../../../src/lib/util/feature-evaluator/repository/storage-provider.ts"],"names":[],"mappings":";;;AAAA,+BAA4B;AAC5B,2BAA8B;AAC9B,wCAAsC;AAEtC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,aAAQ,CAAC;AAWzC,MAAa,mBAAmB;IAG5B,YAAY,UAAkB;QAC1B,IAAI,CAAC,UAAU,EAAE;YACb,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;SAC9C;QACD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAEO,OAAO,CAAC,GAAW;QACvB,OAAO,IAAA,WAAI,EAAC,IAAI,CAAC,UAAU,EAAE,mBAAmB,IAAA,kBAAQ,EAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,GAAW,EAAE,IAAO;QAC1B,OAAO,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,GAAW;QACjB,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,IAAI,CAAC;QACT,IAAI;YACA,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;SACvC;QAAC,OAAO,KAAU,EAAE;YACjB,IAAI,KAAK,CAAC,IAAI,KAAK,QAAQ,EAAE;gBACzB,MAAM,KAAK,CAAC;aACf;iBAAM;gBACH,OAAO,SAAS,CAAC;aACpB;SACJ;QAED,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE;YACnC,OAAO,SAAS,CAAC;SACpB;QAED,IAAI;YACA,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;SAC3B;QAAC,OAAO,KAAU,EAAE;YACjB,IAAI,KAAK,YAAY,KAAK,EAAE;gBACxB,KAAK,CAAC,OAAO,GAAG,uCAAuC,IAAI,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC;aACnF;YACD,MAAM,KAAK,CAAC;SACf;IACL,CAAC;CACJ;AA5CD,kDA4CC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"application-hostname-strategy.js","sourceRoot":"","sources":["../../../../../src/lib/util/feature-evaluator/strategy/application-hostname-strategy.ts"],"names":[],"mappings":";;AAAA,2BAA8B;AAC9B,yCAAsC;AAEtC,MAAqB,2BAA4B,SAAQ,mBAAQ;IAG7D;QACI,KAAK,CAAC,qBAAqB,CAAC,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,CACZ,OAAO,CAAC,GAAG,CAAC,QAAQ;YACpB,IAAA,aAAQ,GAAE;YACV,WAAW,CACd,CAAC,WAAW,EAAE,CAAC;IACpB,CAAC;IAED,SAAS,CAAC,UAAiC;QACvC,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE;YACvB,OAAO,KAAK,CAAC;SAChB;QAED,OAAO,UAAU,CAAC,SAAS;aACtB,WAAW,EAAE;aACb,KAAK,CAAC,SAAS,CAAC;aAChB,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC;CACJ;AAtBD,8CAsBC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default-strategy.js","sourceRoot":"","sources":["../../../../../src/lib/util/feature-evaluator/strategy/default-strategy.ts"],"names":[],"mappings":";;AAAA,yCAAsC;AAEtC,MAAqB,eAAgB,SAAQ,mBAAQ;IACjD;QACI,KAAK,CAAC,SAAS,CAAC,CAAC;IACrB,CAAC;IAED,SAAS;QACL,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AARD,kCAQC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flexible-rollout-strategy.js","sourceRoot":"","sources":["../../../../../src/lib/util/feature-evaluator/strategy/flexible-rollout-strategy.ts"],"names":[],"mappings":";;;;;AAAA,yCAAsC;AAEtC,kDAAqC;AACrC,wCAAiD;AAEjD,MAAM,UAAU,GAAG;IACf,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACnB,CAAC;AAEF,MAAqB,uBAAwB,SAAQ,mBAAQ;IAIzD,YAAY,eAA0B;QAClC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QAJrB,oBAAe,GAAa,GAAG,EAAE,CACrC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;QAIzC,IAAI,eAAe,EAAE;YACjB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;SAC1C;IACL,CAAC;IAED,iBAAiB,CAAC,UAAkB,EAAE,OAAgB;QAClD,QAAQ,UAAU,EAAE;YAChB,KAAK,UAAU,CAAC,OAAO;gBACnB,OAAO,CACH,OAAO,CAAC,MAAM;oBACd,OAAO,CAAC,SAAS;oBACjB,IAAI,CAAC,eAAe,EAAE,CACzB,CAAC;YACN,KAAK,UAAU,CAAC,MAAM;gBAClB,OAAO,IAAI,CAAC,eAAe,EAAE,CAAC;YAClC;gBACI,OAAO,IAAA,6BAAmB,EAAC,OAAO,EAAE,UAAU,CAAC,CAAC;SACvD;IACL,CAAC;IAED,6EAA6E;IAC7E,SAAS,CACL,UAIC,EACD,OAAgB;QAEhB,MAAM,OAAO,GACT,UAAU,CAAC,OAAO;YAClB,CAAC,OAAO,CAAC,aAAa,IAAI,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;YACxD,EAAE,CAAC;QACP,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAC9C,MAAM,UAAU,GAAW,UAAU,CAAC,UAAU,IAAI,UAAU,CAAC,OAAO,CAAC;QACvE,MAAM,YAAY,GAAG,IAAI,CAAC,iBAAiB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QAEjE,IAAI,CAAC,YAAY,EAAE;YACf,OAAO,KAAK,CAAC;SAChB;QACD,MAAM,gBAAgB,GAAG,IAAA,cAAe,EAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QAChE,OAAO,UAAU,GAAG,CAAC,IAAI,gBAAgB,IAAI,UAAU,CAAC;IAC5D,CAAC;CACJ;AAjDD,0CAiDC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gradual-rollout-random.js","sourceRoot":"","sources":["../../../../../src/lib/util/feature-evaluator/strategy/gradual-rollout-random.ts"],"names":[],"mappings":";;AAAA,yCAAsC;AAGtC,MAAqB,4BAA6B,SAAQ,mBAAQ;IAI9D,YAAY,eAA0B;QAClC,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAJ1B,oBAAe,GAAa,GAAG,EAAE,CACrC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;QAIpC,IAAI,CAAC,eAAe,GAAG,eAAe,IAAI,IAAI,CAAC,eAAe,CAAC;IACnE,CAAC;IAED,SAAS,CACL,UAA2C;IAC3C,6DAA6D;IAC7D,OAAgB;QAEhB,MAAM,UAAU,GAAW,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QACzD,MAAM,MAAM,GAAW,IAAI,CAAC,eAAe,EAAE,CAAC;QAC9C,OAAO,UAAU,IAAI,MAAM,CAAC;IAChC,CAAC;CACJ;AAlBD,+CAkBC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gradual-rollout-session-id.js","sourceRoot":"","sources":["../../../../../src/lib/util/feature-evaluator/strategy/gradual-rollout-session-id.ts"],"names":[],"mappings":";;;;;AAAA,yCAAsC;AACtC,kDAAqC;AAGrC,MAAqB,+BAAgC,SAAQ,mBAAQ;IACjE;QACI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACrC,CAAC;IAED,SAAS,CACL,UAA6D,EAC7D,OAAgB;QAEhB,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;QAC9B,IAAI,CAAC,SAAS,EAAE;YACZ,OAAO,KAAK,CAAC;SAChB;QAED,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QACjD,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,IAAI,EAAE,CAAC;QAEzC,MAAM,YAAY,GAAG,IAAA,cAAe,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAEzD,OAAO,UAAU,GAAG,CAAC,IAAI,YAAY,IAAI,UAAU,CAAC;IACxD,CAAC;CACJ;AArBD,kDAqBC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gradual-rollout-user-id.js","sourceRoot":"","sources":["../../../../../src/lib/util/feature-evaluator/strategy/gradual-rollout-user-id.ts"],"names":[],"mappings":";;;;;AAAA,yCAAsC;AAEtC,kDAAqC;AAErC,MAAqB,4BAA6B,SAAQ,mBAAQ;IAC9D;QACI,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAClC,CAAC;IAED,SAAS,CACL,UAA6D,EAC7D,OAAgB;QAEhB,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;QAC3B,IAAI,CAAC,MAAM,EAAE;YACT,OAAO,KAAK,CAAC;SAChB;QAED,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QACjD,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,IAAI,EAAE,CAAC;QAEzC,MAAM,gBAAgB,GAAG,IAAA,cAAe,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAE1D,OAAO,UAAU,GAAG,CAAC,IAAI,gBAAgB,IAAI,UAAU,CAAC;IAC5D,CAAC;CACJ;AArBD,+CAqBC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/util/feature-evaluator/strategy/index.ts"],"names":[],"mappings":";;;;;;AAAA,0EAAiD;AACjD,sFAAoE;AACpE,wFAAqE;AACrE,8FAA2E;AAC3E,oFAAyD;AACzD,wFAA8D;AAC9D,4FAAkE;AAElE,0EAAiD;AACjD,oGAA0E;AAE1E,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AAGJ,QAAA,iBAAiB,GAAoB;IAC9C,IAAI,0BAAe,EAAE;IACrB,IAAI,uCAA2B,EAAE;IACjC,IAAI,gCAA4B,EAAE;IAClC,IAAI,iCAA4B,EAAE;IAClC,IAAI,oCAA+B,EAAE;IACrC,IAAI,+BAAkB,EAAE;IACxB,IAAI,iCAAqB,EAAE;IAC3B,IAAI,mCAAuB,EAAE;IAC7B,IAAI,0BAAe,EAAE;CACxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remote-address-strategy.js","sourceRoot":"","sources":["../../../../../src/lib/util/feature-evaluator/strategy/remote-address-strategy.ts"],"names":[],"mappings":";;;;;AAAA,yCAAsC;AAEtC,4CAAoB;AAEpB,MAAqB,qBAAsB,SAAQ,mBAAQ;IACvD;QACI,KAAK,CAAC,eAAe,CAAC,CAAC;IAC3B,CAAC;IAED,SAAS,CAAC,UAA4B,EAAE,OAAgB;QACpD,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE;YACjB,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,IAAI,CACvC,CAAC,KAAa,EAAW,EAAE;YACvB,IAAI,KAAK,KAAK,OAAO,CAAC,aAAa,EAAE;gBACjC,OAAO,IAAI,CAAC;aACf;YACD,IAAI,CAAC,YAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;gBACvB,IAAI;oBACA,OAAO,YAAE;yBACJ,UAAU,CAAC,KAAK,CAAC;yBACjB,QAAQ,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;iBACxC;gBAAC,OAAO,GAAG,EAAE;oBACV,OAAO,KAAK,CAAC;iBAChB;aACJ;YACD,OAAO,KAAK,CAAC;QACjB,CAAC,CACJ,CAAC;IACN,CAAC;CACJ;AA3BD,wCA2BC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"strategy.js","sourceRoot":"","sources":["../../../../../src/lib/util/feature-evaluator/strategy/strategy.ts"],"names":[],"mappings":";;;AAGA,8CAAsD;AA4BtD,MAAa,QAAQ;IAKjB,YAAY,IAAY,EAAE,cAAuB,KAAK;QAClD,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,SAAS,CAAC;QAC9B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACnC,CAAC;IAED,eAAe,CAAC,UAAsB,EAAE,OAAgB;QACpD,MAAM,SAAS,GAAG,sBAAS,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QAErD,IAAI,CAAC,SAAS,EAAE;YACZ,OAAO,KAAK,CAAC;SAChB;QAED,IAAI,UAAU,CAAC,QAAQ,EAAE;YACrB,OAAO,CAAC,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;SAC1C;QAED,OAAO,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,gBAAgB,CACZ,OAAgB,EAChB,WAAkC;QAElC,IAAI,CAAC,WAAW,EAAE;YACd,OAAO;gBACH,MAAM,EAAE,IAAI;gBACZ,WAAW,EAAE,EAAE;aAClB,CAAC;SACL;QAED,MAAM,iBAAiB,GAAiC,EAAE,CAAC;QAC3D,KAAK,MAAM,U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,CAAC,CAAC;QACtE,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QAC1D,MAAM,cAAc,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAE7D,MAAM,aAAa,GACf,iBAAiB,CAAC,MAAM,IAAI,aAAa,IAAI,cAAc,CAAC,MAAM,CAAC;QAEvE,OAAO;YACH,MAAM,EAAE;gBACJ,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa;gBACzC,gBAAgB,EAAE,UAAU;aAC/B;YACD,WAAW,EAAE,iBAAiB,CAAC,WAAW;YAC1C,QAAQ,EAAE,cAAc,CAAC,QAAQ;SACpC,CAAC;IACN,CAAC;CACJ;AA3GD,4BA2GC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unknown-strategy.js","sourceRoot":"","sources":["../../../../../src/lib/util/feature-evaluator/strategy/unknown-strategy.ts"],"names":[],"mappings":";;AAAA,iGAAgG;AAIhG,yCAA4D;AAE5D,MAAqB,eAAgB,SAAQ,mBAAQ;IACjD;QACI,KAAK,CAAC,SAAS,CAAC,CAAC;IACrB,CAAC;IAED,SAAS;QACL,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,wBAAwB,CACpB,UAAmB,EACnB,OAAgB,EAChB,WAAiC,EACjC,QAAgC;QAEhC,MAAM,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QACtE,MAAM,cAAc,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAE7D,MAAM,aAAa,GACf,iBAAiB,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM;YAC7C,CAAC,CAAC,yDAA4B,CAAC,aAAa;YAC5C,CAAC,CAAC,KAAK,CAAC;QAEhB,OAAO;YACH,MAAM,EAAE;gBACJ,OAAO,EAAE,aAAa;gBACtB,gBAAgB,EAAE,YAAY;aACjC;YACD,WAAW,EAAE,iBAAiB,CAAC,WAAW;YAC1C,QAAQ,EAAE,cAAc,CAAC,QAAQ;SACpC,CAAC;IACN,CAAC;CACJ;AAhCD,kCAgCC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user-with-id-strategy.js","sourceRoot":"","sources":["../../../../../src/lib/util/feature-evaluator/strategy/user-with-id-strategy.ts"],"names":[],"mappings":";;AAAA,yCAAsC;AAGtC,MAAqB,kBAAmB,SAAQ,mBAAQ;IACpD;QACI,KAAK,CAAC,YAAY,CAAC,CAAC;IACxB,CAAC;IAED,SAAS,CAAC,UAAgC,EAAE,OAAgB;QACxD,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO;YACjC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC;YACrC,CAAC,CAAC,EAAE,CAAC;QACT,OAAO,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/C,CAAC;CACJ;AAXD,qCAWC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../../src/lib/util/feature-evaluator/strategy/util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA6C;AAE7C,SAAwB,eAAe,CACnC,EAAU,EACV,OAAe,EACf,UAAU,GAAG,GAAG;IAEhB,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,OAAO,IAAI,EAAE,EAAE,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;AACzE,CAAC;AAND,kCAMC"}
|