@zimbra/api-client 92.0.0 → 92.1.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-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zimbra/api-client",
3
- "version": "92.0.0",
3
+ "version": "92.1.0",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zimbra/api-client",
3
3
  "amdName": "zmApiJsClient",
4
- "version": "92.0.0",
4
+ "version": "92.1.0",
5
5
  "description": "Zimbra JS API Client and GraphQL client for making requests against the Zimbra SOAP API.",
6
6
  "main": "dist/zm-api-js-client.js",
7
7
  "source": "index.ts",
@@ -1,6 +1,5 @@
1
1
  import { defaultDataIdFromObject, InMemoryCache, InMemoryCacheConfig } from '@apollo/client/core';
2
2
  import get from 'lodash/get';
3
- import isEqual from 'lodash/isEqual';
4
3
  import uniqWith from 'lodash/uniqWith';
5
4
  import { EmailAddress } from './types';
6
5
 
@@ -97,7 +96,10 @@ const typePolicies = {
97
96
  fields: {
98
97
  emailAddresses: {
99
98
  merge(existing: EmailAddress[], incoming: EmailAddress[]) {
100
- return uniqWith([...(existing || []), ...(incoming || [])], isEqual);
99
+ return uniqWith(
100
+ [...(existing || []), ...(incoming || [])],
101
+ (a, b) => a.address === b.address && a.type === b.type
102
+ );
101
103
  }
102
104
  }
103
105
  }