UNPKG

@nvwa-app/frontend-commons-web

Version:
16 lines 653 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const http_1 = require("./http"); const storage_1 = require("./storage"); const postgrest_1 = require("./postgrest"); class Nvwa { constructor(baseUrl, handleUnauthorized) { this.baseUrl = baseUrl; this.handleUnauthorized = handleUnauthorized; this.http = new http_1.WebHttpService(this.baseUrl, this.handleUnauthorized); this.postgrest = (0, postgrest_1.createPostgrestClient)(this.baseUrl, this.handleUnauthorized); this.storage = new storage_1.WebStorageService(); } } exports.default = Nvwa; //# sourceMappingURL=nvwa.js.map