mongodb-build-info
Advanced tools
Comparing version 1.3.0 to 1.4.0
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; |
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
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
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
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
28951
368