Comparing version 3.0.2 to 3.0.3
@@ -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) => { |
{ | ||
"name": "cosa", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Cosa Models for MongoDB", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
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
55364
1331