Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@frenchbread/dq-models

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frenchbread/dq-models - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

12

lib/models/watcher.js
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 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc