dd-trace 5.77.0 → 5.78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dd-trace",
3
- "version": "5.77.0",
3
+ "version": "5.78.0",
4
4
  "description": "Datadog APM tracing client for JavaScript",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
@@ -1345,9 +1345,6 @@ addHook({
1345
1345
  }
1346
1346
  }
1347
1347
  return returnedValue
1348
- } catch (error) {
1349
- testSuiteErrorCh.publish({ error, testSuiteAbsolutePath: this._testPath })
1350
- throw error
1351
1348
  } finally {
1352
1349
  // Restore original prepareStackTrace
1353
1350
  Error.prepareStackTrace = originalPrepareStackTrace
@@ -2,6 +2,7 @@
2
2
 
3
3
  const path = require('path')
4
4
  const process = require('process')
5
+ const { fileURLToPath } = require('url')
5
6
  const { ddBasePath } = require('../../util')
6
7
  const { getOriginalPathAndLineFromSourceMap } = require('./taint-tracking/rewriter')
7
8
  const pathLine = {
@@ -31,11 +32,11 @@ function getNonDDCallSiteFrames (callSiteFrames, externallyExcludedPaths) {
31
32
  const result = []
32
33
 
33
34
  for (const callsite of callSiteFrames) {
34
- let filepath = callsite.file
35
+ let filepath = callsite.file?.startsWith('file://') ? fileURLToPath(callsite.file) : callsite.file
35
36
 
36
37
  if (globalThis.__DD_ESBUILD_IAST_WITH_SM) {
37
38
  const callsiteLocation = {
38
- path: getRelativePath(filepath),
39
+ path: filepath,
39
40
  line: callsite.line,
40
41
  column: callsite.column
41
42
  }