Comparing version 1.1.0 to 1.1.1
@@ -0,2 +1,9 @@ | ||
1.1.1 / 2016-09-26 | ||
================== | ||
* fixed; handle parsing of replicaSet with leading number #8 | ||
1.1.0 / 2015-04-13 | ||
================== | ||
* added; parse ipv6 addresses | ||
1.0.0 / 2014-10-18 | ||
@@ -3,0 +10,0 @@ ================== |
@@ -138,3 +138,3 @@ // muri | ||
} else { | ||
num = parseInt(val, 10); | ||
num = parseInt(+val, 10); | ||
if (!isNaN(num)) { | ||
@@ -141,0 +141,0 @@ return num; |
{ | ||
"name": "muri", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "MongoDB URI parser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -321,2 +321,9 @@ | ||
}) | ||
it('replica set name with a leading number', function(done){ | ||
var uri = 'mongodb://localhost:27017/test?replicaSet=1800-shard-0'; | ||
var val = muri(uri); | ||
assert.equal('1800-shard-0', val.options.replicaSet); | ||
done() | ||
}) | ||
}) |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
20796
497
0