UNPKG

2.33 kBJavaScriptView Raw
1"use strict";
2// Copyright IBM Corp. and LoopBack contributors 2017,2020. All Rights Reserved.
3// Node module: @loopback/rest
4// This file is licensed under the MIT License.
5// License text available at https://opensource.org/licenses/MIT
6Object.defineProperty(exports, "__esModule", { value: true });
7exports.HttpErrors = exports.writeErrorToResponse = void 0;
8const tslib_1 = require("tslib");
9/**
10 * The REST API package for loopback-next.
11 *
12 * @remarks
13 * A REST server for LoopBack 4 application instances, complete with:
14 *
15 * - new custom routing engine (special thanks to @bajtos)!
16 * - tools for defining your application routes
17 * - OpenAPI 3.0 spec (openapi.json/openapi.yaml) generation using
18 * @loopback/openapi-v3
19 * - a default sequence implementation to manage the request and response
20 * lifecycle
21 *
22 *
23 * @packageDocumentation
24 */
25tslib_1.__exportStar(require("@loopback/openapi-v3"), exports);
26var strong_error_handler_1 = require("strong-error-handler");
27Object.defineProperty(exports, "writeErrorToResponse", { enumerable: true, get: function () { return strong_error_handler_1.writeErrorToResponse; } });
28tslib_1.__exportStar(require("./body-parsers"), exports);
29tslib_1.__exportStar(require("./http-handler"), exports);
30tslib_1.__exportStar(require("./keys"), exports);
31tslib_1.__exportStar(require("./parse-json"), exports);
32tslib_1.__exportStar(require("./parser"), exports);
33tslib_1.__exportStar(require("./providers"), exports);
34tslib_1.__exportStar(require("./request-context"), exports);
35tslib_1.__exportStar(require("./rest-http-error"), exports);
36tslib_1.__exportStar(require("./rest.application"), exports);
37tslib_1.__exportStar(require("./rest.component"), exports);
38tslib_1.__exportStar(require("./rest.server"), exports);
39tslib_1.__exportStar(require("./router"), exports);
40tslib_1.__exportStar(require("./sequence"), exports);
41tslib_1.__exportStar(require("./spec-enhancers/info.spec-enhancer"), exports);
42tslib_1.__exportStar(require("./types"), exports);
43tslib_1.__exportStar(require("./validation/request-body.validator"), exports);
44tslib_1.__exportStar(require("./writer"), exports);
45// export all errors from external http-errors package
46const http_errors_1 = tslib_1.__importDefault(require("http-errors"));
47exports.HttpErrors = http_errors_1.default;
48//# sourceMappingURL=index.js.map
\No newline at end of file