Comparing version 1.0.7 to 1.0.9
@@ -7,2 +7,8 @@ "use strict"; | ||
var _anno = require("./anno"); | ||
var _model = require("./model"); | ||
var _interceptor = require("./interceptor"); | ||
var createError = require('http-errors'); | ||
@@ -18,7 +24,26 @@ | ||
var _require = require('./model'), | ||
Fail = _require.Fail; | ||
var app = express(); | ||
module.exports = { | ||
HttpInterceptor: _interceptor.HttpInterceptor, | ||
model: { | ||
Fail: _model.Fail, | ||
Success: _model.Success, | ||
RestModel: _model.RestModel, | ||
View: _model.View, | ||
Redirect: _model.Redirect, | ||
Forward: _model.Forward | ||
}, | ||
annotation: { | ||
Controller: _anno.Controller, | ||
RequestMapping: _anno.RequestMapping, | ||
Interceptor: _anno.Interceptor, | ||
GetMapping: _anno.GetMapping, | ||
PostMapping: _anno.PostMapping, | ||
PutMapping: _anno.PutMapping, | ||
DeleteMapping: _anno.DeleteMapping, | ||
AppScope: _anno.AppScope, | ||
Validator: _anno.Validator, | ||
RequestParam: _anno.RequestParam, | ||
ResponseBody: _anno.ResponseBody | ||
}, | ||
name: 'mvc', | ||
@@ -64,3 +89,3 @@ launch: function launch(config) { | ||
} else { | ||
res.json(new Fail(err.message, err.status || 500)); | ||
res.json(new _model.Fail(err.message, err.status || 500)); | ||
} | ||
@@ -67,0 +92,0 @@ }); |
{ | ||
"name": "vweb-mvc", | ||
"version": "1.0.7", | ||
"version": "1.0.9", | ||
"description": "mvc ", | ||
@@ -25,14 +25,14 @@ "main": "./lib/index", | ||
"devDependencies": { | ||
"@babel/cli": "^7.7.7", | ||
"@babel/core": "^7.7.7", | ||
"@babel/plugin-proposal-decorators": "^7.7.4", | ||
"@babel/cli": "^7.15.4", | ||
"@babel/core": "^7.15.4", | ||
"@babel/plugin-proposal-decorators": "^7.15.4", | ||
"@babel/plugin-syntax-dynamic-import": "^7.7.4", | ||
"@babel/plugin-transform-runtime": "^7.7.6", | ||
"@babel/preset-env": "^7.7.7", | ||
"@babel/preset-env": "^7.15.4", | ||
"@babel/register": "^7.7.7", | ||
"@babel/runtime": "^7.7.7", | ||
"@babel/runtime": "^7.15.4", | ||
"babel-plugin-transform-decorators-legacy": "^1.3.5", | ||
"connect-redis": "^6.0.0", | ||
"redis": "^3.1.2", | ||
"vweb-core": "^1.0.11" | ||
"vweb-core": "^1.0.24" | ||
}, | ||
@@ -39,0 +39,0 @@ "dependencies": { |
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
61947
14