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

mongo-express

Package Overview
Dependencies
Maintainers
4
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongo-express - npm Package Compare versions

Comparing version 1.0.0-alpha.2 to 1.0.0-alpha.4

.github/dependabot.yml

8

app.js

@@ -52,6 +52,6 @@ #!/usr/bin/env node

.option('-U, --url <url>', 'connection string url')
.option('-H, --host <host>', 'hostname or address of the db')
.option('-P, --dbport <host>', 'port of the db')
.option('-u, --username <username>', 'username for authentication')
.option('-p, --password <password>', 'password for authentication')
.option('-H, --host <host>', 'hostname or address of the db(deprecated)')
.option('-P, --dbport <host>', 'port of the db(deprecated)')
.option('-u, --username <username>', 'username for authentication(deprecated)')
.option('-p, --password <password>', 'password for authentication(deprecated)')
.option('-a, --admin', 'enable authentication as admin')

@@ -58,0 +58,0 @@ .option('-d, --database <database>', 'authenticate to database')

@@ -6,2 +6,4 @@ 'use strict';

// to see more databases you need to set mongodb.admin to true or add databases to the mongodb.auth list
// It is RECOMMENDED to use connectionString instead of individual params, other options will be removed later.
// More info here: https://docs.mongodb.com/manual/reference/connection-string/
connectionString: process.env.ME_CONFIG_MONGODB_SERVER ? '' : process.env.ME_CONFIG_MONGODB_URL,

@@ -78,4 +80,4 @@ host: '127.0.0.1',

// leave username and password empty if no admin account exists
username: getFileEnv(adminUsername) || getFileEnv(dbAuthUsername) || mongo.username || dbAuthUsername,
password: getFileEnv(adminPassword) || getFileEnv(dbAuthPassword) || mongo.password || dbAuthPassword,
username: getFileEnv(adminUsername) || getFileEnv(dbAuthUsername) || mongo.username,
password: getFileEnv(adminPassword) || getFileEnv(dbAuthPassword) || mongo.password,
};

@@ -82,0 +84,0 @@ const login = infos.username ? `${infos.username}:${infos.password}@` : '';

@@ -0,15 +1,24 @@

# 1.0-alpha.4 - Fri Jun 4, 2021
Fix:
- Fix invalid config fallback values [(#710)](https://github.com/mongo-express/mongo-express/pull/710)
Deps:
- Upgrade to GitHub-native Dependabot [(#682)](https://github.com/mongo-express/mongo-express/pull/682)
- Bump webpack-cli from 4.1.0 to 4.7.0 [(#695)](https://github.com/mongo-express/mongo-express/pull/695)
- Bump browserslist from 4.14.5 to 4.16.6 [(#707)](https://github.com/mongo-express/mongo-express/pull/707)
# 1.0-alpha.2 - Mon Apr 3, 2021
New:
- Property to disable delete action [(#608)](https://github.com/mongo-express/mongo-express/pull/#608)
- Property to disable delete action [(#608)](https://github.com/mongo-express/mongo-express/pull/608)
Fix:
- Fix boolean parameter parsing [(#604)](https://github.com/mongo-express/mongo-express/pull/#604)
- Fix invalid default values for config [(#614)](https://github.com/mongo-express/mongo-express/pull/#614)
- Fix query options bug from Mongodb breaking change [(#615)](https://github.com/mongo-express/mongo-express/pull/#615)
- Fix boolean parameter parsing [(#604)](https://github.com/mongo-express/mongo-express/pull/604)
- Fix invalid default values for config [(#614)](https://github.com/mongo-express/mongo-express/pull/614)
- Fix query options bug from Mongodb breaking change [(#615)](https://github.com/mongo-express/mongo-express/pull/615)
- Fix several XSS vulnerability [(#merge](https://github.com/mongo-express/mongo-express/commit/f5e0d4931f856f032f22664b5e5901d5950cfd4b)
Deps:
- Update babel to 7 [(#624)](https://github.com/mongo-express/mongo-express/pull/#624)
- Update webpack to 5 [(#625)](https://github.com/mongo-express/mongo-express/pull/#625)
- Update eslint [(#626)](https://github.com/mongo-express/mongo-express/pull/#626)
- Update babel to 7 [(#624)](https://github.com/mongo-express/mongo-express/pull/624)
- Update webpack to 5 [(#625)](https://github.com/mongo-express/mongo-express/pull/625)
- Update eslint [(#626)](https://github.com/mongo-express/mongo-express/pull/626)

@@ -19,12 +28,12 @@

Breaking:
- Change mongo-query-parser to 2.0. This changes how parsing works altogether and drop support for some advanced syntax but is safer [(#528)](https://github.com/mongo-express/mongo-express/pull/#528)
- Rewrite the connection module to use mongo as much as possible and update mongodb to 3.5 [(#528)](https://github.com/mongo-express/mongo-express/pull/#528)
- Change mongo-query-parser to 2.0. This changes how parsing works altogether and drop support for some advanced syntax but is safer [(#528)](https://github.com/mongo-express/mongo-express/pull/528)
- Rewrite the connection module to use mongo as much as possible and update mongodb to 3.5 [(#528)](https://github.com/mongo-express/mongo-express/pull/528)
New:
- Add csv extension in file export [(#578)](https://github.com/mongo-express/mongo-express/pull/#578)
- Don't drop the collection on Delete docs action when no query is provided. [(#502)](https://github.com/mongo-express/mongo-express/pull/#502)
- Fix broken delete document for UUID (BinData 3 & 4) [(#538)](https://github.com/mongo-express/mongo-express/pull/#538)
- Add csv extension in file export [(#578)](https://github.com/mongo-express/mongo-express/pull/578)
- Don't drop the collection on Delete docs action when no query is provided. [(#502)](https://github.com/mongo-express/mongo-express/pull/502)
- Fix broken delete document for UUID (BinData 3 & 4) [(#538)](https://github.com/mongo-express/mongo-express/pull/538)
Deps:
- Bump lodash to 4.6.2 [(#525)](https://github.com/mongo-express/mongo-express/pull/#525)
- Bump lodash to 4.6.2 [(#525)](https://github.com/mongo-express/mongo-express/pull/525)

@@ -35,3 +44,3 @@

Breaking:
- Change bson parsing to use mongo-query-parser [(#522)](https://github.com/mongo-express/mongo-express/pull/#522)
- Change bson parsing to use mongo-query-parser [(#522)](https://github.com/mongo-express/mongo-express/pull/522)
- Drop support for node 6

@@ -43,13 +52,13 @@

- Add yarn.lock [(#515)](https://github.com/mongo-express/mongo-express/pull/515)
- Fix broken save document for UUID (BinData 3 & 4) [(#537)](https://github.com/mongo-express/mongo-express/pull/#537)
- Fix broken save document for UUID (BinData 3 & 4) [(#537)](https://github.com/mongo-express/mongo-express/pull/537)
Deps:
- Pin Event stream to 4.0 [(#514)](https://github.com/mongo-express/mongo-express/pull/514)
- Bump bootstrap from 3.3.7 to 3.4.1 [(#523)](https://github.com/mongo-express/mongo-express/pull/#523)
- Bump lodash from 4.17.11 to 4.17.13 [(#532)](https://github.com/mongo-express/mongo-express/pull/#532)
- Bump jquery from 3.3.1 to 3.4.1 [(#530)](https://github.com/mongo-express/mongo-express/pull/#530)
- Bump mixin-deep from 1.3.1 to 1.3.2 [(#526)](https://github.com/mongo-express/mongo-express/pull/#526)
- Bump js-yaml from 3.12.0 to 3.13.1 [(#527)](https://github.com/mongo-express/mongo-express/pull/#527)
- Bump cross-env from 3.2.4 to 6.0.3 [(#519)](https://github.com/mongo-express/mongo-express/pull/#519)
- Bump concurrently from 3.6.1 to 5.0.0 [(#507)](https://github.com/mongo-express/mongo-express/pull/#507)
- Bump bootstrap from 3.3.7 to 3.4.1 [(#523)](https://github.com/mongo-express/mongo-express/pull/523)
- Bump lodash from 4.17.11 to 4.17.13 [(#532)](https://github.com/mongo-express/mongo-express/pull/532)
- Bump jquery from 3.3.1 to 3.4.1 [(#530)](https://github.com/mongo-express/mongo-express/pull/530)
- Bump mixin-deep from 1.3.1 to 1.3.2 [(#526)](https://github.com/mongo-express/mongo-express/pull/526)
- Bump js-yaml from 3.12.0 to 3.13.1 [(#527)](https://github.com/mongo-express/mongo-express/pull/527)
- Bump cross-env from 3.2.4 to 6.0.3 [(#519)](https://github.com/mongo-express/mongo-express/pull/519)
- Bump concurrently from 3.6.1 to 5.0.0 [(#507)](https://github.com/mongo-express/mongo-express/pull/507)

@@ -56,0 +65,0 @@

@@ -107,3 +107,3 @@ 'use strict';

} catch (err) {
console.error(`Could not connect to database at index "${index}"`);
console.error(`Could not connect to database using connectionString: ${connectionString}"`);
throw err;

@@ -110,0 +110,0 @@ }

{
"version": "1.0.0-alpha.2",
"version": "1.0.0-alpha.4",
"author": "https://github.com/mongo-express",

@@ -4,0 +4,0 @@ "name": "mongo-express",

@@ -80,15 +80,11 @@ mongo-express

mongo-express -u user -p password -d database
mongo-express --url mongodb://127.0.0.1:27017
You can access a remote database by providing MongoDB Host and Port:
mongo-express -u user -p password -d database -H mongoDBHost -P mongoDBPort
Or if you want to use it as an administrator:
mongo-express -a -u superuser -p password
mongo-express --admin --url mongodb://127.0.0.1:27017
For help on configuration options:
mongo-express -h
mongo-express --help

@@ -108,3 +104,3 @@ Usage (Express 4 middleware)

Make sure you have a running [MongoDB container](https://hub.docker.com/_/mongo/) on a Docker network (`--network some-network` below) with `--name` or `--network-alias` set to `mongo`. Alternatively, set `ME_CONFIG_MONGODB_SERVER` to the name/alias of your MongoDB container on your Docker network.
Make sure you have a running [MongoDB container](https://hub.docker.com/_/mongo/) on a Docker network (`--network some-network` below) with `--name` or `--network-alias` set to `mongo`. Alternatively, set connection string `ME_CONFIG_MONGODB_URL` to the proper connection for your MongoDB container on your Docker network.

@@ -130,8 +126,4 @@ **Use [the Docker Hub image](https://hub.docker.com/_/mongo-express/):**

----------------------------------|-----------------|------------
`ME_CONFIG_MONGODB_SERVER` |`mongo` or `localhost`| MongoDB host name or IP address. The default is `localhost` in the config file and `mongo` in the docker image. If it is a replica set, use a comma delimited list of the host names.
`ME_CONFIG_MONGODB_PORT` | `27017` | MongoDB port.
`ME_CONFIG_MONGODB_URL` | `mongodb://admin:pass@localhost:27017/db?ssl=false`
`ME_CONFIG_MONGODB_ENABLE_ADMIN` | `false` | Enable administrator access. Send strings: `"true"` or `"false"`.
`ME_CONFIG_MONGODB_ADMINUSERNAME` | ` ` | Administrator username.
`ME_CONFIG_MONGODB_ADMINPASSWORD` | ` ` | Administrator password.
`ME_CONFIG_MONGODB_AUTH_DATABASE` | `db` | Database name (only needed if `ENABLE_ADMIN` is `"false"`).

@@ -173,3 +165,3 @@ `ME_CONFIG_MONGODB_AUTH_USERNAME` | `admin` | Database username (only needed if `ENABLE_ADMIN` is `"false"`).

-e ME_CONFIG_BASICAUTH_USERNAME="" \
-e ME_CONFIG_MONGODB_SERVER="db" \
-e ME_CONFIG_MONGODB_URL="mongodb://mongo:27017" \
mongo-express

@@ -176,0 +168,0 @@

Sorry, the diff of this file is not supported yet

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