@squzy/vanilla
Advanced tools
Comparing version 0.1.19-alpha.0 to 0.1.20-alpha.0
@@ -13,2 +13,3 @@ "use strict"; | ||
let rqOpts; | ||
let customHeaders = false; | ||
if (typeof input === "string") { | ||
@@ -25,2 +26,3 @@ transactionName = input; | ||
reqUrl = location.host + reqUrl; | ||
customHeaders = true; | ||
} | ||
@@ -32,9 +34,9 @@ const { host, pathname } = uri_parse_lib_1.parseURI(reqUrl); | ||
method, | ||
headers: new Headers({ | ||
headers: customHeaders ? new Headers({ | ||
[app.getTracingHeaderKey()]: trx.getId(), | ||
}), | ||
}) : new Headers({}), | ||
}; | ||
} | ||
else { | ||
if (input.headers) { | ||
if (input.headers && customHeaders) { | ||
input.headers.append(app.getTracingHeaderKey(), trx.getId()); | ||
@@ -44,5 +46,5 @@ } | ||
? input.headers | ||
: new Headers({ | ||
: customHeaders ? new Headers({ | ||
[app.getTracingHeaderKey()]: trx.getId(), | ||
}) }); | ||
}) : new Headers({}) }); | ||
} | ||
@@ -49,0 +51,0 @@ trx.setMeta({ |
{ | ||
"name": "@squzy/vanilla", | ||
"version": "0.1.19-alpha.0", | ||
"version": "0.1.20-alpha.0", | ||
"description": "Monitoring package for vanilla", | ||
@@ -31,6 +31,6 @@ "author": "Iurii Panarin <tduble94@gmail.com>", | ||
"dependencies": { | ||
"@squzy/core": "^0.1.19-alpha.0", | ||
"@squzy/core": "^0.1.20-alpha.0", | ||
"uri-parse-lib": "^2.3.0" | ||
}, | ||
"gitHead": "cb1446b137a13400eb19d4dc051147f623dbdd3c" | ||
"gitHead": "8fd3587c0e03ba2c93e3ae033d626e94ea1b1b94" | ||
} |
Sorry, the diff of this file is not supported yet
8302
80
+ Added@squzy/core@0.1.20-alpha.0(transitive)
- Removed@squzy/core@0.1.19-alpha.0(transitive)
Updated@squzy/core@^0.1.20-alpha.0