Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mongodb-build-info

Package Overview
Dependencies
Maintainers
11
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb-build-info - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

2

index.js
const { default: ConnectionString } = require('mongodb-connection-string-url');
const ATLAS_REGEX = /\.mongodb(-dev)?\.net$/i;
const LOCALHOST_REGEX = /^(localhost|127\.0\.0\.1)$/i;
const LOCALHOST_REGEX = /^(localhost|127\.0\.0\.1|0\.0\.0\.0)$/i;
const DIGITAL_OCEAN_REGEX = /\.mongo\.ondigitalocean\.com$/i;

@@ -6,0 +6,0 @@

{
"name": "mongodb-build-info",
"version": "1.3.0",
"version": "1.4.0",
"description": "Extract information from mongodb's buildInfo",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -99,2 +99,4 @@ const expect = require('chai').expect;

expect(isLocalhost('mongodb+srv://127.0.0.1')).to.be.true;
expect(isLocalhost('mongodb://0.0.0.0:27019')).to.be.true;
expect(isLocalhost('mongodb+srv://0.0.0.0')).to.be.true;
expect(isLocalhost('mongodb://localhost')).to.be.true;

@@ -106,2 +108,3 @@ expect(isLocalhost('mongodb://localhost:27019')).to.be.true;

expect(isLocalhost('127.0.0.1')).to.be.true;
expect(isLocalhost('0.0.0.0')).to.be.true;
expect(isLocalhost('localhost')).to.be.true;

@@ -112,2 +115,3 @@ });

expect(isLocalhost('127.0.0.2')).to.be.false;
expect(isLocalhost('0.0.0.1')).to.be.false;
expect(isLocalhost('remotehost')).to.be.false;

@@ -114,0 +118,0 @@ expect(isLocalhost('mongodb://remotelocalhost')).to.be.false;

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