UNPKG

honion

Version:
21 lines (20 loc) 576 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.initContainer = void 0; const lambda_middleware_1 = require("./lambda.middleware"); function initContainer(container, mds) { container.use = (lambda) => { mds.push(() => new lambda_middleware_1.LambdaMiddleware(lambda)); return container; }; container.add = (md, type) => { if (type) { mds.push([md, type]); } else { mds.push(md); } return container; }; } exports.initContainer = initContainer;