Comparing version 0.7.2 to 0.7.3
@@ -1,1 +0,1 @@ | ||
module.exports = '0.7.2' | ||
module.exports = '0.7.3' |
{ | ||
"name": "dd-trace", | ||
"version": "0.7.2", | ||
"version": "0.7.3", | ||
"description": "Datadog APM tracing client for JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -14,3 +14,3 @@ # dd-trace-js | ||
For a basic product overview, check out our [setup documentation](https://docs.datadoghq.com/tracing/setup/javascript/). | ||
For a basic product overview, check out our [setup documentation](https://docs.datadoghq.com/tracing/languages/nodejs/). | ||
@@ -17,0 +17,0 @@ For installation, configuration, and details about using the API, check out our [API documentation](https://datadog.github.io/dd-trace-js). |
@@ -22,8 +22,8 @@ 'use strict' | ||
if (callback) { | ||
if (typeof callback === 'function') { | ||
callback = tx.wrap(span, callback) | ||
} else if (args) { | ||
args[(args.length || 1) - 1] = tx.wrap(span, args[args.length - 1]) | ||
} else if (Array.isArray(args) && typeof args[args.length - 1] === 'function') { | ||
args[args.length - 1] = tx.wrap(span, args[args.length - 1]) | ||
} else { | ||
args = [tx.wrap(span)] | ||
callback = tx.wrap(span) | ||
} | ||
@@ -30,0 +30,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
128778