Comparing version 1.5.0 to 1.5.1
@@ -5,2 +5,6 @@ ## Changelog | ||
### v1.5.1 - June 16, 2015 | ||
* Fix getting NaN db index([#74](https://github.com/luin/ioredis/issues/74)). | ||
### v1.5.0 - June 13, 2015 | ||
@@ -11,3 +15,3 @@ | ||
* Adds ReadOnly mode for Cluster mode([#69](https://github.com/luin/ioredis/pull/69)). Thanks to [Nakul Ganesh](https://github.com/luin/ioredis/pull/69). | ||
* Adds `Redis.print`((#71)[https://github.com/luin/ioredis/pull/71]). Thanks to [Frank Murphy](https://github.com/frankvm04). | ||
* Adds `Redis.print`([#71](https://github.com/luin/ioredis/pull/71)). Thanks to [Frank Murphy](https://github.com/frankvm04). | ||
@@ -14,0 +18,0 @@ ### v1.4.0 - June 3, 2015 |
@@ -271,3 +271,5 @@ 'use strict'; | ||
if (parsed.protocol === 'redis:') { | ||
result.db = parsed.pathname.slice(1); | ||
if (parsed.pathname.length > 1) { | ||
result.db = parsed.pathname.slice(1); | ||
} | ||
} else { | ||
@@ -274,0 +276,0 @@ result.path = parsed.pathname; |
{ | ||
"name": "ioredis", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "A delightful, performance-focused Redis client for Node and io.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -43,2 +43,5 @@ 'use strict'; | ||
option = getOption('redis://127.0.0.1/'); | ||
expect(option).to.have.property('db', 0); | ||
option = getOption('/tmp/redis.sock'); | ||
@@ -45,0 +48,0 @@ expect(option).to.have.property('path', '/tmp/redis.sock'); |
@@ -149,4 +149,7 @@ 'use strict'; | ||
}); | ||
expect(utils.parseURL('redis://127.0.0.1/')).to.eql({ | ||
host: '127.0.0.1' | ||
}); | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
270705
7203