zcatalyst-cli
Version:
Command Line Tool for CATALYST
18 lines (17 loc) • 648 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const ansi_colors_1 = require("ansi-colors");
exports.default = (appSailDetails) => (req, _RES, next) => {
var _a;
console.log('[' +
new Date().getTime() +
'] ' +
(appSailDetails ? (0, ansi_colors_1.cyan)(` Appsail[${(_a = appSailDetails === null || appSailDetails === void 0 ? void 0 : appSailDetails.target) === null || _a === void 0 ? void 0 : _a.name}] `) : '') +
' "' +
(0, ansi_colors_1.cyan)(req.method) +
'" ' +
' "' +
(0, ansi_colors_1.bold)(req.originalUrl) +
'"');
next();
};