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

flora-mongodb

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flora-mongodb - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

12

lib/index.js

@@ -11,5 +11,5 @@ 'use strict';

function buildQuery(filter) {
const or = filter.map(andFilters => {
const or = filter.map((andFilters) => {
const and = [];
andFilters.forEach(condition => {
andFilters.forEach((condition) => {
if (condition.operator === 'equal') {

@@ -91,3 +91,3 @@ const c = {};

this.baseUrl += options.servers
.map(server => {
.map((server) => {
if (!server.host) throw new Error('Invalid configuration, missing `host` in servers');

@@ -129,3 +129,3 @@ let serverUrl = '';

options.projection = {};
request.attributes.forEach(a => {
request.attributes.forEach((a) => {
options.projection[a] = 1;

@@ -144,3 +144,3 @@ });

if (request.order) {
options.sort = request.order.map(o => {
options.sort = request.order.map((o) => {
const { attribute } = o;

@@ -176,3 +176,3 @@ const direction = o.direction === 'desc' ? -1 : 1;

return Promise.all(
Object.keys(this.connections).map(connId => {
Object.keys(this.connections).map((connId) => {
this.log.info('closing MongoDB connection "%s"', connId);

@@ -179,0 +179,0 @@ return this.connections[connId].close();

{
"name": "flora-mongodb",
"version": "2.0.0",
"version": "2.0.1",
"description": "MongoDB connection for Flora",
"main": "lib/index.js",
"scripts": {
"test": "eslint . && mocha",
"pretest": "npm run lint",
"test": "mocha \"test/**/*.spec.js\"",
"lint": "eslint ."

@@ -28,15 +29,15 @@ },

"dependencies": {
"mongodb": "^3.2.7",
"mongodb": "^3.6.3",
"flora-errors": "2.0.0"
},
"devDependencies": {
"bunyan": "^1.8.12",
"abstract-logging": "^2.0.1",
"chai": "^4.2.0",
"eslint": "^6.0.1",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-prettier": "^3.1.0",
"mocha": "^6.1.4",
"eslint": "^7.13.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-prettier": "^3.1.4",
"mocha": "^8.2.1",
"pre-commit": "^1.2.2",
"prettier": "^1.18.2"
"prettier": "^2.1.2"
}
}

Sorry, the diff of this file is not supported yet

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