arrow-express
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -87,5 +87,5 @@ "use strict"; | ||
if (error_1 instanceof apiErrorResponse_1.ApiError) { | ||
res.status(error_1.httpCode || 500).send(error_1.response || error_1.message); | ||
res.status(error_1.httpCode || 500).send(error_1.response || 'Internal error'); | ||
} | ||
res.status(500).send(error_1.message); | ||
res.status(500).send('Internal error'); | ||
} | ||
@@ -92,0 +92,0 @@ return [3 /*break*/, 3]; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ApiError = exports.Route = exports.Controller = exports.Application = void 0; | ||
exports.ApiError = exports.RouteConfigurator = exports.Route = exports.ControllerConfiguration = exports.Controller = exports.AppConfigurator = exports.Application = void 0; | ||
var Application_1 = require("./application/Application"); | ||
Object.defineProperty(exports, "Application", { enumerable: true, get: function () { return Application_1.Application; } }); | ||
Object.defineProperty(exports, "AppConfigurator", { enumerable: true, get: function () { return Application_1.AppConfigurator; } }); | ||
var Controller_1 = require("./controller/Controller"); | ||
Object.defineProperty(exports, "Controller", { enumerable: true, get: function () { return Controller_1.Controller; } }); | ||
Object.defineProperty(exports, "ControllerConfiguration", { enumerable: true, get: function () { return Controller_1.ControllerConfiguration; } }); | ||
var Route_1 = require("./route/Route"); | ||
Object.defineProperty(exports, "Route", { enumerable: true, get: function () { return Route_1.Route; } }); | ||
Object.defineProperty(exports, "RouteConfigurator", { enumerable: true, get: function () { return Route_1.RouteConfigurator; } }); | ||
var apiErrorResponse_1 = require("./error/apiErrorResponse"); | ||
Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return apiErrorResponse_1.ApiError; } }); |
{ | ||
"name": "arrow-express", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Library to bootstrap express applications with zero configuration", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
441325
9864