@nxtedition/nxt-undici 1.0.6 → 1.0.7

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.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -170,7 +170,7 @@ async function request(url, opts) {
170
170
  return new Promise((resolve, reject) =>
171
171
  dispatch(
172
172
  {
173
- id: opts.id ?? genReqId(),
173
+ id: opts.id ?? headers?.['request-id'] ?? headers?.['Request-Id'] ?? genReqId(),
174
174
  url,
175
175
  method,
176
176
  body: opts.body,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/nxt-undici",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "main": "lib/index.js",