@bugsnag/request-tracker-performance
Advanced tools
Comparing version 2.3.0-alpha.0 to 2.4.0
@@ -17,8 +17,14 @@ class RequestTracker { | ||
onRequestEnd: (endContext) => { | ||
var _a; | ||
for (const result of results) { | ||
(_a = result === null || result === void 0 ? void 0 : result.onRequestEnd) === null || _a === void 0 ? void 0 : _a.call(result, endContext); | ||
if (result && result.onRequestEnd) { | ||
result.onRequestEnd(endContext); | ||
} | ||
} | ||
}, | ||
extraRequestHeaders: results.map(result => result === null || result === void 0 ? void 0 : result.extraRequestHeaders).filter(isDefined) | ||
extraRequestHeaders: results.map((result) => { | ||
if (result && result.extraRequestHeaders) { | ||
return result.extraRequestHeaders; | ||
} | ||
return undefined; | ||
}).filter(isDefined) | ||
}; | ||
@@ -25,0 +31,0 @@ } |
export interface NetworkRequestInfo { | ||
url: string | null; | ||
/** | ||
* Experimental. Whether to propagate trace context by adding a `traceparent` header to the request. | ||
*/ | ||
propagateTraceContext?: boolean; | ||
@@ -4,0 +7,0 @@ } |
{ | ||
"name": "@bugsnag/request-tracker-performance", | ||
"version": "2.3.0-alpha.0", | ||
"version": "2.4.0", | ||
"description": "BugSnag performance request tracker for monitoring XHR and fetch requests", | ||
@@ -23,3 +23,3 @@ "homepage": "https://www.bugsnag.com/", | ||
"dependencies": { | ||
"@bugsnag/core-performance": "^2.3.0-alpha.0" | ||
"@bugsnag/core-performance": "^2.4.0" | ||
}, | ||
@@ -32,3 +32,3 @@ "type": "module", | ||
], | ||
"gitHead": "fde1316da0f448bedbdad6a22f9732d14c07ce61" | ||
"gitHead": "145aaab33c80c3efb898cf657cf3369557bcb468" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
14284
215
0
0