UNPKG

@buildable/connections

Version:

Buildable is a fully managed event bus lets you send and receive data across mission-critical cloud apps, databases and warehouses.

30 lines 839 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createClient = exports.Client = void 0; class Client { constructor(secret, configs = {}) { this.secret = secret; this.configs = configs; } get _clientInfo() { return { secret: this.secret, configs: this.configs, }; } get _url() { if (this.configs.baseUrl) { return this.configs.baseUrl; } if (this.configs.environment === 'production') { return 'https://api.event.dev'; } return 'https://development-stream.event.dev'; } } exports.Client = Client; const createClient = (secret, configs = {}) => { return new Client(secret, configs); }; exports.createClient = createClient; //# sourceMappingURL=index.js.map