@frenchbread/dq-models
Advanced tools
Comparing version 0.0.8 to 0.0.9
var mongoose = require('mongoose'); | ||
var Schema = mongoose.Schema; | ||
var geoip = require('geoip-lite'); | ||
var validator = require('validator'); | ||
@@ -12,2 +11,3 @@ // ip-ware | ||
path: String, | ||
regMethod: String, | ||
isAdmin: Boolean, | ||
@@ -34,6 +34,12 @@ project: String, | ||
eye.path = req.originalUrl; | ||
eye.reqMethod = req.method; | ||
eye.isAdmin = req.isAuthenticated() ? true : false; | ||
console.log(eye); | ||
eye.save(function (err) { | ||
if (err) throw err; | ||
console.log("Watched."); | ||
}); | ||
}; | ||
@@ -40,0 +46,0 @@ |
{ | ||
"name": "@frenchbread/dq-models", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Models lib for dq", | ||
@@ -26,6 +26,5 @@ "main": "index.js", | ||
"mongoose": "^4.2.8", | ||
"passport-local-mongoose": "^3.1.0", | ||
"validator": "^4.4.0" | ||
"passport-local-mongoose": "^3.1.0" | ||
}, | ||
"devDependencies": {} | ||
} |
@@ -11,3 +11,3 @@ # dq-models | ||
### Update geo db: | ||
### Update geo db under its `node_modules`: | ||
@@ -14,0 +14,0 @@ ``` |
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
6091
3
191
- Removedvalidator@^4.4.0
- Removeddepd@1.1.0(transitive)
- Removedvalidator@4.9.0(transitive)