vweb-mvc
Advanced tools
Comparing version 1.2.21 to 1.2.22
@@ -272,2 +272,3 @@ "use strict"; | ||
err.message = `${err.message}【${req.originalUrl}】`; | ||
err.path = req.originalUrl; | ||
if (!req.originalUrl.endsWith(".ico") && err.status !== 404) { | ||
@@ -274,0 +275,0 @@ logger.error(err); |
@@ -22,3 +22,3 @@ /// <reference types="node" /> | ||
private data; | ||
constructor(data?: any); | ||
constructor(data?: {}); | ||
put(key: any, value: any): void; | ||
@@ -25,0 +25,0 @@ add(value: any): void; |
@@ -19,7 +19,6 @@ "use strict"; | ||
class Success extends RestModel { | ||
constructor(data) { | ||
constructor(data = {}) { | ||
super(); | ||
this.success = false; | ||
this.success = true; | ||
this.data = data || {}; | ||
this.data = data; | ||
} | ||
@@ -26,0 +25,0 @@ put(key, value) { |
{ | ||
"name": "vweb-mvc", | ||
"version": "1.2.21", | ||
"version": "1.2.22", | ||
"description": "mvc ", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
139415