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

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.2 to 3.0.3

8

lib/db.js

@@ -8,3 +8,9 @@ const debug = require('debug')('cosa:db');

const RESULT_FIELDS = [ 'insertedCount', 'insertedIds', 'matchedCount', 'modifiedCount', 'upsertedCount', 'deletedCount', 'upsertedIds' ];
const getDbName = pipe(split('/'), last);
const getDbName = (uri) => {
let name = pipe(split('/'), last)(uri);
if (name.indexOf('?') !== -1) {
name = name.slice(0, name.indexOf('?'));
}
return name;
};

@@ -11,0 +17,0 @@ const normalizeResult = (r) => {

2

package.json
{
"name": "cosa",
"version": "3.0.2",
"version": "3.0.3",
"description": "Cosa Models for MongoDB",

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

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