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

hapi-rethinkdb

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-rethinkdb - npm Package Compare versions

Comparing version 1.0.0-alpha.0 to 1.0.0

README.md

13

index.js

@@ -8,3 +8,3 @@ 'use strict';

if (!opts.url) {
opts.port = ops.port || 28015;
opts.port = opts.port || 28015;
opts.host = opts.host || 'localhost';

@@ -14,4 +14,5 @@ opts.db = opts.db || 'test';

var url = require('url').parse(opts.url);
opts.port = url.port || 28015;
opts.port = parseInt(url.port) || 28015;
opts.host = url.hostname || 'localhost';
opts.db = url.pathname ? url.pathname.replace(/^\//, '') : 'test';

@@ -29,8 +30,8 @@ if (url.auth)

plugin.expose('client', conn);
plugin.expose('library', rethink);
plugin.bind({ rethinkdb: conn });
plugin.log(['hapi-rethinkdb', 'info'], 'RethinkDB connection established');
return next();
plugin.expose('client', client);
plugin.expose('library', rethink);
plugin.bind({ rethinkdb: client });
});

@@ -37,0 +38,0 @@ };

{
"name": "hapi-rethinkdb",
"version": "1.0.0-alpha.0",
"version": "1.0.0",
"description": "Hapi's rethinkdb plugin",

@@ -26,10 +26,11 @@ "main": "index.js",

"dependencies": {
"rethinkdb": "^1.16.2"
},
"devDependencies": {
"hapi": "^8.0.0",
"hapi": "^8.2.0",
"mocha": "^2.1.0"
},
"peerDependencies": {
"hapi": "^8.0.0"
"hapi": "^8.2.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