hapi-rethinkdb
Advanced tools
Comparing version 1.0.0-alpha.0 to 1.0.0
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" | ||
} | ||
} |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5714
6
101
0
1
32
2
+ Addedrethinkdb@^1.16.2
+ Addedbluebird@3.7.2(transitive)
+ Addedrethinkdb@1.16.2(transitive)