mongodb-legacy
Advanced tools
Comparing version 6.1.2 to 6.1.3
{ | ||
"name": "mongodb-legacy", | ||
"description": "The legacy MongoDB driver with callback support for Node.js", | ||
"version": "6.1.2", | ||
"version": "6.1.3", | ||
"files": [ | ||
@@ -6,0 +6,0 @@ "src", |
@@ -28,11 +28,14 @@ 'use strict'; | ||
explain(verbosity, callback) { | ||
explain(verbosity, options, callback) { | ||
callback = | ||
typeof callback === 'function' | ||
? callback | ||
: typeof verbosity === 'function' | ||
? verbosity | ||
: undefined; | ||
: typeof options === 'function' | ||
? options | ||
: typeof verbosity === 'function' | ||
? verbosity | ||
: undefined; | ||
options = typeof options !== 'function' ? options : undefined; | ||
verbosity = typeof verbosity !== 'function' ? verbosity : undefined; | ||
return maybeCallback(super.explain(verbosity), callback); | ||
return maybeCallback(super.explain(verbosity, options), callback); | ||
} | ||
@@ -184,11 +187,14 @@ | ||
class LegacyAggregationCursor extends baseClass { | ||
explain(verbosity, callback) { | ||
explain(verbosity, options, callback) { | ||
callback = | ||
typeof callback === 'function' | ||
? callback | ||
: typeof verbosity === 'function' | ||
? verbosity | ||
: undefined; | ||
: typeof options === 'function' | ||
? options | ||
: typeof verbosity === 'function' | ||
? verbosity | ||
: undefined; | ||
options = typeof options !== 'function' ? options : undefined; | ||
verbosity = typeof verbosity !== 'function' ? verbosity : undefined; | ||
return maybeCallback(super.explain(verbosity), callback); | ||
return maybeCallback(super.explain(verbosity, options), callback); | ||
} | ||
@@ -195,0 +201,0 @@ |
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
122975
2338