@defra-fish/dynamics-lib 1.73.0-rc.2 → 1.73.0-rc.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defra-fish/dynamics-lib",
3
- "version": "1.73.0-rc.2",
3
+ "version": "1.73.0-rc.3",
4
4
  "description": "Framework to support integration with dynamics",
5
5
  "type": "module",
6
6
  "engines": {
@@ -43,5 +43,5 @@
43
43
  "simple-oauth2": "4.3.0",
44
44
  "uuid": "8.3.2"
45
45
  },
46
- "gitHead": "4af1022c2c39f20e07f6f26737d2cd01a038a76a"
46
+ "gitHead": "7bb5d167e8bed944e6c106c161d542a2422604ba"
47
47
  }
@@ -1,6 +1,7 @@
1
1
  import { dynamicsClient } from '../client/dynamics-client.js'
2
2
  import { escapeODataStringValue } from './util.js'
3
3
  import { CacheableOperation } from './cache.js'
4
+
4
5
  /**
5
6
  * Persist the provided entities. Uses a create or update request as appropriate based on the state of the entity.
6
7
  *
@@ -183,6 +184,7 @@ export async function findByExample (entity) {
183
184
  const optionSetData = await retrieveGlobalOptionSets().cached()
184
185
  return results.value.map(result => entity.constructor.fromResponse(result, optionSetData))
185
186
  } catch (e) {
187
+ console.trace('Error when trying to findByExample for entity: %s', JSON.stringify(entity))
186
188
  console.error('Unable to findByExample:', e)
187
189
  throw e
188
190
  }