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

mongoose-database-service

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-database-service - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

16

index.js

@@ -58,2 +58,17 @@ var _ = require('lodash');

function findById(id) {
var deferred = new Deferred();
Model.findById(id, function (err, model) {
if (err) {
deferred.internalServerError(err);
} else if (!model) {
deferred.notFound();
} else {
deferred.success(model);
}
});
return deferred.promise;
}
function remove(queryObject) {

@@ -77,2 +92,3 @@ var deferred = new Deferred();

findOne: find.bind(this, true),
findById: findById,
remove: remove

@@ -79,0 +95,0 @@ };

2

package.json
{
"name": "mongoose-database-service",
"version": "1.0.0",
"version": "1.1.0",
"description": "Promise based database logic for mongoose",

@@ -5,0 +5,0 @@ "main": "index.js",

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