@scvo/router
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -38,3 +38,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var util = require("util"); | ||
var RouteMatch = /** @class */ (function () { | ||
@@ -123,3 +122,2 @@ function RouteMatch(route, request, context) { | ||
_a.trys.push([0, 2, , 3]); | ||
console.log('#### RouteMatch.runDestination ->', util.inspect(this, false, null, true)); | ||
routerDestination = this.context.routerDestinations[this.route.destination.destinationType]; | ||
@@ -129,2 +127,3 @@ return [4 /*yield*/, routerDestination.execute(this)]; | ||
response = _a.sent(); | ||
//console.log('#### ROUTEMATCH.runDestination() -> Destination completed:'); | ||
Object.assign(this.response, response); | ||
@@ -131,0 +130,0 @@ this.response.cookies = response.cookies; // Overwriting these in case cookies are cleared in the response |
@@ -112,3 +112,3 @@ "use strict"; | ||
routeMatch = _a.sent(); | ||
console.log('[ROUTER], \n\tRequest:', routeMatch.request, '\n\tMatch:', routeMatch.route.name); | ||
console.log('[ROUTER], Request:', routeMatch.request.fullUrl, '| Match:', routeMatch.route.name); | ||
return [4 /*yield*/, routeMatch.execute()]; | ||
@@ -115,0 +115,0 @@ case 2: |
{ | ||
"name": "@scvo/router", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "A moderately oppinionated web application framework based around mapping routes to tasks and then rendering with handlebars", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -58,3 +58,5 @@ import * as util from 'util'; | ||
var routerDestination = this.context.routerDestinations[this.route.destination.destinationType]; | ||
//console.log('#### ROUTEMATCH.runDestination() -> Running destination:', routerDestination.name); | ||
var response = await routerDestination.execute(this); | ||
//console.log('#### ROUTEMATCH.runDestination() -> Destination completed:'); | ||
Object.assign(this.response, response); | ||
@@ -61,0 +63,0 @@ this.response.cookies = response.cookies; // Overwriting these in case cookies are cleared in the response |
@@ -101,3 +101,3 @@ // System imports | ||
console.log('[ROUTER], \n\tRequest:', routeMatch.request, '\n\tMatch:', routeMatch.route.name); | ||
console.log('[ROUTER], Request:', routeMatch.request.fullUrl, '| Match:', routeMatch.route.name); | ||
@@ -104,0 +104,0 @@ await routeMatch.execute(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
261722
2601