Socket
Socket
Sign inDemoInstall

cosa

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cosa - npm Package Compare versions

Comparing version 3.0.8 to 3.0.9

9

lib/db.js
const debug = require('debug')('cosa:db');
const defaults = require('defaults');
const EJSON = require('mongodb-extended-json');
const EventEmitter = require('events').EventEmitter;
const MongoClient = require('mongodb').MongoClient;
const { EventEmitter } = require('events');
const { MongoClient } = require('mongodb');
const {

@@ -81,3 +81,6 @@ curry, split, last, pipe, isEmpty, clamp

try {
this._client = await MongoClient.connect(this._uri, { useNewUrlParser: true });
this._client = await MongoClient.connect(this._uri, {
useNewUrlParser: true,
useUnifiedTopology: true
});
this._db = await this._client.db(dbName);

@@ -84,0 +87,0 @@ } catch (err) {

@@ -370,2 +370,6 @@ const assign = require('object-assign');

get __collectionName() { return definition.collection; },
get __name() { return definition.name; },
create: (data) => {

@@ -372,0 +376,0 @@ return _create(data, definition);

{
"name": "cosa",
"version": "3.0.8",
"version": "3.0.9",
"description": "Cosa Models for MongoDB",

@@ -43,18 +43,18 @@ "main": "lib/index.js",

"etag": "^1.8.1",
"@hapi/joi": "^15.0.0",
"mongodb": "~3.2.4",
"@hapi/joi": "^15.1.1",
"mongodb": "~3.3.2",
"mongodb-extended-json": "~1.10.1",
"object-assign": "^4.1.1",
"object-path": "^0.11.4",
"omnibelt": "^1.3.0"
"omnibelt": "^1.3.1"
},
"devDependencies": {
"@losant/eslint-config-losant": "^1.3.6",
"husky": "^2.1.0",
"lint-staged": "^8.1.5",
"@losant/eslint-config-losant": "^1.3.9",
"husky": "^3.0.5",
"lint-staged": "^9.2.5",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"chai-datetime": "^1.5.0",
"documentation": "^10.1.0",
"mocha": "^6.1.4",
"documentation": "^12.1.2",
"mocha": "^6.2.0",
"string-template": "^1.0.0"

@@ -61,0 +61,0 @@ },

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