UNPKG

@varia-bly/variably-sdk

Version:

Official JavaScript/TypeScript SDK for Variably feature flags, experimentation, and real-time dynamic configurations

33 lines 2.58 kB
"use strict"; /** * Variably JavaScript/TypeScript SDK * Official SDK for feature flags and experimentation */ Object.defineProperty(exports, "__esModule", { value: true }); exports.BrowserCache = exports.MemoryCache = exports.CacheManager = exports.ValidationError = exports.AuthenticationError = exports.NetworkError = exports.VariablyError = exports.WebSocketClient = exports.DynamicConfigClient = exports.createClientFromEnv = exports.createClient = exports.VariablyClient = void 0; // Core client for feature flags and analytics var client_1 = require("./client"); Object.defineProperty(exports, "VariablyClient", { enumerable: true, get: function () { return client_1.VariablyClient; } }); Object.defineProperty(exports, "createClient", { enumerable: true, get: function () { return client_1.createClient; } }); Object.defineProperty(exports, "createClientFromEnv", { enumerable: true, get: function () { return client_1.createClientFromEnv; } }); // Dynamic configuration client with real-time updates var dynamic_config_client_1 = require("./dynamic-config-client"); Object.defineProperty(exports, "DynamicConfigClient", { enumerable: true, get: function () { return dynamic_config_client_1.DynamicConfigClient; } }); // WebSocket client for real-time updates var websocket_client_1 = require("./websocket-client"); Object.defineProperty(exports, "WebSocketClient", { enumerable: true, get: function () { return websocket_client_1.WebSocketClient; } }); // Error types var errors_1 = require("./errors"); Object.defineProperty(exports, "VariablyError", { enumerable: true, get: function () { return errors_1.VariablyError; } }); Object.defineProperty(exports, "NetworkError", { enumerable: true, get: function () { return errors_1.NetworkError; } }); Object.defineProperty(exports, "AuthenticationError", { enumerable: true, get: function () { return errors_1.AuthenticationError; } }); Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return errors_1.ValidationError; } }); // Cache management var cache_1 = require("./cache"); Object.defineProperty(exports, "CacheManager", { enumerable: true, get: function () { return cache_1.CacheManager; } }); Object.defineProperty(exports, "MemoryCache", { enumerable: true, get: function () { return cache_1.MemoryCache; } }); Object.defineProperty(exports, "BrowserCache", { enumerable: true, get: function () { return cache_1.BrowserCache; } }); // Re-export for convenience const client_2 = require("./client"); exports.default = client_2.VariablyClient; //# sourceMappingURL=index.js.map