Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.proxycom = void 0;
var ApiService_1 = require("./apiService/ApiService");
var ApiProxy_1 = require("./apiProxy/ApiProxy");
var exposeApi = function (_a) {
var apiConfig = _a.apiConfig, api = _a.api, transport = _a.transport;
var apiService = new ApiService_1.ApiService(apiConfig, api);
// @ts-ignore
apiService.setOutboundFn(new transport(apiService.getInboundFn()).outboundFn);
// TODO: allow for destroy
};
var createProxy = function (_a) {
var apiConfig = _a.apiConfig, transport = _a.transport;
var apiProxy = new ApiProxy_1.ApiProxy(apiConfig);
// @ts-ignore
apiProxy.setOutboundFn(new transport(apiProxy.getInboundFn()).outboundFn);
return apiProxy.get();
};
exports.proxycom = {
exposeApi: exposeApi,
createProxy: createProxy
};
//# sourceMappingURL=index.js.map |