@defra/lis-infra-ui-services 0.38.0 → 0.39.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": "@defra/lis-infra-ui-services",
3
- "version": "0.38.0",
3
+ "version": "0.39.0",
4
4
  "description": "UI-Services shared definitions for the livestock taxonomy topology.",
5
5
  "main": "src/index.js",
6
6
  "repository": {
@@ -65,7 +65,7 @@ export function buildRedisClient({
65
65
  })
66
66
 
67
67
  redisClient.on('error', (error) => {
68
- logger?.error?.({ err: error }, 'Redis connection error')
68
+ logger?.error?.(error, 'Redis connection error')
69
69
  })
70
70
 
71
71
  return redisClient
@@ -135,7 +135,7 @@ test('buildRedisClient uses the default port and logs client events', () => {
135
135
 
136
136
  assert.deepEqual(logger.info.mock.calls[0], ['Connected to Redis server'])
137
137
  assert.deepEqual(logger.error.mock.calls[0], [
138
- { err: connectionError },
138
+ connectionError,
139
139
  'Redis connection error'
140
140
  ])
141
141
  })