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

hapi-mongodb-init

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-mongodb-init - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

lib/db.js

@@ -38,3 +38,3 @@ var indexes = require("./indexes");

indexes.ensure(conn, config.indexes, plugin, callback);
indexes.ensure(conn, config.indexes || [], plugin, callback);
});

@@ -41,0 +41,0 @@ };

{
"name": "hapi-mongodb-init",
"version": "1.0.2",
"version": "1.0.3",
"description": "initialises mongo db connections for hapi",

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

@@ -221,3 +221,15 @@ describe('db-init tests', function(){

});
it('should not break when indexes is missing', function(done){
p.register(plugin, {
dbs: [{
connectionString: 'mongodb://127.0.0.1',
name: 'myconnection'
}],
mongo: fakeMongo
}, function(err){
done(err);
});
});
});
});
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