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 • 471 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = parseInitResponse;
const jsonito_1 = require("jsonito");
const shared_1 = require("../shared");
function parseInitResponse(response) {
if (response.startsWith(shared_1.jsonitoResponsePrefix)) {
return (0, jsonito_1.parse)(response.slice(shared_1.jsonitoResponsePrefix.length));
}
return JSON.parse(response);
}
//# sourceMappingURL=parseInitResponse.js.map