@nxtedition/lib 23.9.1 → 23.9.3

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/app.js CHANGED
@@ -139,7 +139,7 @@ export function makeApp(appConfig, onTerminate) {
139
139
  null)
140
140
 
141
141
  if (isMainThread && serviceName) {
142
- process.title = serviceName
142
+ process.title = userAgent
143
143
  }
144
144
 
145
145
  const dailyOffpeakTime = config.dailyOffpeakTime ?? getUTCRangeForLocalTime('00:00-04:00')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "23.9.1",
3
+ "version": "23.9.3",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",
@@ -45,7 +45,7 @@ class FetchEntry {
45
45
  this.status = null
46
46
  this.error = null
47
47
 
48
- let { headers, body, method } = options
48
+ let { headers, body, method } = options ?? {}
49
49
 
50
50
  if (fp.isPlainObject(body) || fp.isArray(body)) {
51
51
  headers = { 'content-type': 'application/json', ...headers }