@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/dist/zm-api-js-client.esm.js +1 -2
- package/dist/zm-api-js-client.esm.js.map +1 -1
- package/dist/zm-api-js-client.js +2 -2
- package/dist/zm-api-js-client.js.map +1 -1
- package/dist/zm-api-js-client.umd.js +8 -8
- package/dist/zm-api-js-client.umd.js.map +1 -1
- package/package-lock.json +1 -1
- package/package.json +1 -1
- package/src/apollo/zimbra-in-memory-cache.ts +4 -2
package/package-lock.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zimbra/api-client",
|
|
3
3
|
"amdName": "zmApiJsClient",
|
|
4
|
-
"version": "92.
|
|
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(
|
|
99
|
+
return uniqWith(
|
|
100
|
+
[...(existing || []), ...(incoming || [])],
|
|
101
|
+
(a, b) => a.address === b.address && a.type === b.type
|
|
102
|
+
);
|
|
101
103
|
}
|
|
102
104
|
}
|
|
103
105
|
}
|