UNPKG

hypertune

Version:

[Hypertune](https://www.hypertune.com/) is the most flexible platform for feature flags, A/B testing, analytics and app configuration. Built with full end-to-end type-safety, Git-style version control and local, synchronous, in-memory flag evaluation. Opt

12 lines 494 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = decodeFlagValues; function decodeFlagValues({ flagPaths, encodedValues, }) { const flagValues = JSON.parse(atob(encodedValues)); const missingFlags = flagPaths.filter((flag) => !(flag in flagValues)); if (missingFlags.length > 0) { throw new Error(`Missing flag values for: ${missingFlags.join(", ")}`); } return flagValues; } //# sourceMappingURL=decodeFlagValues.js.map