New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fastify-mongoose-driver

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-mongoose-driver - npm Package Compare versions

Comparing version 3.0.0 to 4.0.0

7

index.js

@@ -94,4 +94,7 @@ "use strict";

// Close connection when app is closing
fastify.addHook("onClose", app => {
return app.mongoose.instance.connection.close();
fastify.addHook("onClose", (app, done) => {
app.mongoose.instance.connection.on("close", function() {
done();
});
app.mongoose.instance.connection.close();
});

@@ -98,0 +101,0 @@

{
"name": "fastify-mongoose-driver",
"description": "A Fastify plugin to connect to a MongoDB instance via the Mongoose ODM",
"version": "3.0.0",
"version": "4.0.0",
"main": "index.js",

@@ -6,0 +6,0 @@ "scripts": {

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