Socket
Socket
Sign inDemoInstall

muri

Package Overview
Dependencies
0
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

7

History.md

@@ -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 @@ ==================

2

lib/index.js

@@ -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()
})
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc