Comparing version 1.0.39 to 1.0.40
@@ -19,2 +19,5 @@ "use strict"; | ||
}; | ||
var uuid = require('uuid'); | ||
var defaultConfig = { | ||
@@ -26,3 +29,4 @@ redis: false, | ||
name: 'vweb.sid', | ||
secret: 'vweb.secret' | ||
secret: 'vweb.secret', | ||
genid: uuid.v4 | ||
}; | ||
@@ -29,0 +33,0 @@ /** |
@@ -33,2 +33,3 @@ "use strict"; | ||
if (!attributes) session.attributes = {}; | ||
this.id = session.id; | ||
this.attributes = new Proxy(session.attributes, { | ||
@@ -35,0 +36,0 @@ set: function set(target, prop, value, proxy) { |
{ | ||
"name": "vweb-mvc", | ||
"version": "1.0.39", | ||
"version": "1.0.40", | ||
"description": "mvc ", | ||
@@ -47,4 +47,5 @@ "main": "./lib/index", | ||
"http-errors": "latest", | ||
"querystring": "^0.2.1" | ||
"querystring": "^0.2.1", | ||
"uuid": "^8.3.2" | ||
} | ||
} |
@@ -9,2 +9,3 @@ const session = require("express-session"); | ||
}; | ||
let uuid = require('uuid'); | ||
@@ -17,3 +18,4 @@ const defaultConfig = { | ||
name: 'vweb.sid', | ||
secret: 'vweb.secret' | ||
secret: 'vweb.secret', | ||
genid: uuid.v4 | ||
}; | ||
@@ -20,0 +22,0 @@ |
@@ -14,2 +14,3 @@ const {KEYS, ALL} = { | ||
if (!attributes) session.attributes = {}; | ||
this.id = session.id; | ||
this.attributes = new Proxy(session.attributes, { | ||
@@ -44,2 +45,2 @@ set(target, prop, value, proxy) { | ||
export default Wrapper; | ||
export default Wrapper; |
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
105687
2713
9
+ Addeduuid@^8.3.2
+ Addeduuid@8.3.2(transitive)