Comparing version 1.0.21 to 1.0.22
@@ -104,3 +104,3 @@ "use strict"; | ||
if (Array.isArray(names)) { | ||
var _iterator = _createForOfIteratorHelper(name), | ||
var _iterator = _createForOfIteratorHelper(names), | ||
_step; | ||
@@ -112,3 +112,3 @@ | ||
if (this.params.indexOf(names) !== -1) { | ||
if (this.params.indexOf(name) !== -1) { | ||
return true; | ||
@@ -115,0 +115,0 @@ } |
@@ -54,3 +54,3 @@ "use strict"; | ||
_config$session = config.session, | ||
session = _config$session === void 0 ? {} : _config$session; | ||
session = _config$session === void 0 ? false : _config$session; | ||
var _view$engine = view.engine, | ||
@@ -57,0 +57,0 @@ engine = _view$engine === void 0 ? 'ejs' : _view$engine, |
{ | ||
"name": "vweb-mvc", | ||
"version": "1.0.21", | ||
"version": "1.0.22", | ||
"description": "mvc ", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index", |
@@ -60,4 +60,4 @@ import {ConvertWorker} from "./MessageConverter"; | ||
if (Array.isArray(names)) { | ||
for (let name of name) { | ||
if (this.params.indexOf(names) !== -1) { | ||
for (let name of names) { | ||
if (this.params.indexOf(name) !== -1) { | ||
return true; | ||
@@ -64,0 +64,0 @@ } |
@@ -48,3 +48,3 @@ import ControllerAdapter from "./controller"; | ||
let {log4j, userDir} = this; | ||
let {view = {}, session = {}} = config; | ||
let {view = {}, session = false} = config; | ||
let {engine = 'ejs', root = 'views', resource = 'public'} = view; | ||
@@ -51,0 +51,0 @@ let logger = log4j.getLogger("mvc"); |
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
99632