@apollo/client 3.5.0-beta.12 → 3.5.0-beta.16

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.
Files changed (190) hide show
  1. package/apollo-client.cjs +160 -120
  2. package/apollo-client.cjs.map +1 -1
  3. package/apollo-client.min.cjs +1 -0
  4. package/cache/cache.cjs +86 -65
  5. package/cache/cache.cjs.map +1 -1
  6. package/cache/core/cache.d.ts +4 -4
  7. package/cache/core/cache.d.ts.map +1 -1
  8. package/cache/core/cache.js +24 -13
  9. package/cache/core/cache.js.map +1 -1
  10. package/cache/core/types/Cache.d.ts +10 -10
  11. package/cache/core/types/Cache.d.ts.map +1 -1
  12. package/cache/core/types/Cache.js.map +1 -1
  13. package/cache/core/types/common.d.ts +8 -5
  14. package/cache/core/types/common.d.ts.map +1 -1
  15. package/cache/core/types/common.js +6 -11
  16. package/cache/core/types/common.js.map +1 -1
  17. package/cache/inmemory/entityStore.js.map +1 -1
  18. package/cache/inmemory/inMemoryCache.d.ts +4 -4
  19. package/cache/inmemory/inMemoryCache.d.ts.map +1 -1
  20. package/cache/inmemory/inMemoryCache.js +3 -1
  21. package/cache/inmemory/inMemoryCache.js.map +1 -1
  22. package/cache/inmemory/readFromStore.d.ts +2 -2
  23. package/cache/inmemory/readFromStore.d.ts.map +1 -1
  24. package/cache/inmemory/readFromStore.js +54 -42
  25. package/cache/inmemory/readFromStore.js.map +1 -1
  26. package/cache/inmemory/writeToStore.js +1 -1
  27. package/core/ApolloClient.js +2 -2
  28. package/core/ApolloClient.js.map +1 -1
  29. package/core/LocalState.js +1 -1
  30. package/core/ObservableQuery.d.ts +2 -1
  31. package/core/ObservableQuery.d.ts.map +1 -1
  32. package/core/ObservableQuery.js +3 -3
  33. package/core/ObservableQuery.js.map +1 -1
  34. package/core/QueryInfo.d.ts.map +1 -1
  35. package/core/QueryInfo.js.map +1 -1
  36. package/core/QueryManager.js +8 -8
  37. package/core/core.cjs +15 -15
  38. package/core/core.cjs.map +1 -1
  39. package/core/watchQueryOptions.js.map +1 -1
  40. package/invariantErrorCodes.js +52 -65
  41. package/link/core/ApolloLink.js +1 -1
  42. package/link/core/core.cjs +1 -1
  43. package/link/core/core.cjs.map +1 -1
  44. package/link/http/checkFetcher.js +1 -1
  45. package/link/http/http.cjs +2 -2
  46. package/link/http/http.cjs.map +1 -1
  47. package/link/http/serializeFetchParameter.js +1 -1
  48. package/link/persisted-queries/index.js +2 -2
  49. package/link/persisted-queries/persisted-queries.cjs +2 -2
  50. package/link/persisted-queries/persisted-queries.cjs.map +1 -1
  51. package/link/utils/utils.cjs +1 -1
  52. package/link/utils/utils.cjs.map +1 -1
  53. package/link/utils/validateOperation.js +1 -1
  54. package/package.json +8 -8
  55. package/react/context/ApolloConsumer.js +1 -1
  56. package/react/context/ApolloContext.d.ts.map +1 -1
  57. package/react/context/ApolloContext.js +11 -5
  58. package/react/context/ApolloContext.js.map +1 -1
  59. package/react/context/ApolloProvider.js +1 -1
  60. package/react/context/context.cjs +12 -6
  61. package/react/context/context.cjs.map +1 -1
  62. package/react/hoc/hoc-utils.js +1 -1
  63. package/react/hoc/hoc.cjs +10 -7
  64. package/react/hoc/hoc.cjs.map +1 -1
  65. package/react/hoc/subscription-hoc.d.ts.map +1 -1
  66. package/react/hoc/subscription-hoc.js +8 -5
  67. package/react/hoc/subscription-hoc.js.map +1 -1
  68. package/react/hoc/withApollo.js +1 -1
  69. package/react/hooks/hooks.cjs +1 -1
  70. package/react/hooks/hooks.cjs.map +1 -1
  71. package/react/hooks/useApolloClient.js +1 -1
  72. package/react/hooks/useQuery.d.ts +1 -1
  73. package/react/hooks/useQuery.d.ts.map +1 -1
  74. package/react/hooks/useQuery.js.map +1 -1
  75. package/react/parser/index.js +5 -5
  76. package/react/parser/index.js.map +1 -1
  77. package/react/parser/parser.cjs +5 -5
  78. package/react/parser/parser.cjs.map +1 -1
  79. package/testing/core/core.cjs +288 -0
  80. package/testing/core/core.cjs.map +1 -0
  81. package/{utilities/testing → testing/core}/index.d.ts +0 -1
  82. package/testing/core/index.d.ts.map +1 -0
  83. package/{utilities/testing → testing/core}/index.js +0 -1
  84. package/testing/core/index.js.map +1 -0
  85. package/{utilities/testing → testing/core}/itAsync.d.ts +0 -0
  86. package/testing/core/itAsync.d.ts.map +1 -0
  87. package/{utilities/testing → testing/core}/itAsync.js +0 -0
  88. package/testing/core/itAsync.js.map +1 -0
  89. package/{utilities/testing → testing/core}/mocking/mockClient.d.ts +0 -0
  90. package/testing/core/mocking/mockClient.d.ts.map +1 -0
  91. package/{utilities/testing → testing/core}/mocking/mockClient.js +0 -0
  92. package/testing/core/mocking/mockClient.js.map +1 -0
  93. package/{utilities/testing → testing/core}/mocking/mockFetch.d.ts +0 -0
  94. package/testing/core/mocking/mockFetch.d.ts.map +1 -0
  95. package/{utilities/testing → testing/core}/mocking/mockFetch.js +0 -0
  96. package/testing/core/mocking/mockFetch.js.map +1 -0
  97. package/{utilities/testing → testing/core}/mocking/mockLink.d.ts +0 -0
  98. package/testing/core/mocking/mockLink.d.ts.map +1 -0
  99. package/{utilities/testing → testing/core}/mocking/mockLink.js +3 -3
  100. package/testing/core/mocking/mockLink.js.map +1 -0
  101. package/{utilities/testing → testing/core}/mocking/mockQueryManager.d.ts +1 -1
  102. package/testing/core/mocking/mockQueryManager.d.ts.map +1 -0
  103. package/{utilities/testing → testing/core}/mocking/mockQueryManager.js +1 -1
  104. package/testing/core/mocking/mockQueryManager.js.map +1 -0
  105. package/{utilities/testing → testing/core}/mocking/mockSubscriptionLink.d.ts +0 -0
  106. package/testing/core/mocking/mockSubscriptionLink.d.ts.map +1 -0
  107. package/{utilities/testing → testing/core}/mocking/mockSubscriptionLink.js +1 -1
  108. package/testing/core/mocking/mockSubscriptionLink.js.map +1 -0
  109. package/{utilities/testing → testing/core}/mocking/mockWatchQuery.d.ts +1 -1
  110. package/testing/core/mocking/mockWatchQuery.d.ts.map +1 -0
  111. package/{utilities/testing → testing/core}/mocking/mockWatchQuery.js +0 -0
  112. package/testing/core/mocking/mockWatchQuery.js.map +1 -0
  113. package/{utilities/testing → testing/core}/observableToPromise.d.ts +2 -3
  114. package/testing/core/observableToPromise.d.ts.map +1 -0
  115. package/{utilities/testing → testing/core}/observableToPromise.js +0 -0
  116. package/testing/core/observableToPromise.js.map +1 -0
  117. package/testing/core/package.json +8 -0
  118. package/testing/core/subscribeAndCount.d.ts +4 -0
  119. package/testing/core/subscribeAndCount.d.ts.map +1 -0
  120. package/{utilities/testing → testing/core}/subscribeAndCount.js +1 -1
  121. package/testing/core/subscribeAndCount.js.map +1 -0
  122. package/{utilities/testing → testing/core}/withConsoleSpy.d.ts +0 -0
  123. package/testing/core/withConsoleSpy.d.ts.map +1 -0
  124. package/{utilities/testing → testing/core}/withConsoleSpy.js +0 -0
  125. package/testing/core/withConsoleSpy.js.map +1 -0
  126. package/{utilities/testing → testing/core}/wrap.d.ts +0 -0
  127. package/testing/core/wrap.d.ts.map +1 -0
  128. package/{utilities/testing → testing/core}/wrap.js +0 -0
  129. package/testing/core/wrap.js.map +1 -0
  130. package/testing/index.d.ts +2 -1
  131. package/testing/index.d.ts.map +1 -1
  132. package/testing/index.js +2 -1
  133. package/testing/index.js.map +1 -1
  134. package/{utilities/testing/mocking → testing/react}/MockedProvider.d.ts +5 -5
  135. package/testing/react/MockedProvider.d.ts.map +1 -0
  136. package/{utilities/testing/mocking → testing/react}/MockedProvider.js +4 -4
  137. package/testing/react/MockedProvider.js.map +1 -0
  138. package/testing/testing.cjs +6 -330
  139. package/testing/testing.cjs.map +1 -1
  140. package/utilities/common/canUse.d.ts +1 -0
  141. package/utilities/common/canUse.d.ts.map +1 -1
  142. package/utilities/common/canUse.js +2 -0
  143. package/utilities/common/canUse.js.map +1 -1
  144. package/utilities/common/maybeDeepFreeze.d.ts.map +1 -1
  145. package/utilities/common/maybeDeepFreeze.js +14 -3
  146. package/utilities/common/maybeDeepFreeze.js.map +1 -1
  147. package/utilities/globals/globals.cjs +1 -1
  148. package/utilities/globals/globals.cjs.map +1 -1
  149. package/utilities/globals/index.js +1 -1
  150. package/utilities/graphql/directives.js +4 -4
  151. package/utilities/graphql/fragments.js +3 -3
  152. package/utilities/graphql/getFromAST.js +8 -8
  153. package/utilities/graphql/storeUtils.js +1 -1
  154. package/utilities/observables/subclassing.d.ts.map +1 -1
  155. package/utilities/observables/subclassing.js +2 -1
  156. package/utilities/observables/subclassing.js.map +1 -1
  157. package/utilities/policies/pagination.d.ts +1 -1
  158. package/utilities/policies/pagination.d.ts.map +1 -1
  159. package/utilities/policies/pagination.js +7 -2
  160. package/utilities/policies/pagination.js.map +1 -1
  161. package/utilities/utilities.cjs +45 -26
  162. package/utilities/utilities.cjs.map +1 -1
  163. package/version.js +1 -1
  164. package/utilities/testing/index.d.ts.map +0 -1
  165. package/utilities/testing/index.js.map +0 -1
  166. package/utilities/testing/itAsync.d.ts.map +0 -1
  167. package/utilities/testing/itAsync.js.map +0 -1
  168. package/utilities/testing/mocking/MockedProvider.d.ts.map +0 -1
  169. package/utilities/testing/mocking/MockedProvider.js.map +0 -1
  170. package/utilities/testing/mocking/mockClient.d.ts.map +0 -1
  171. package/utilities/testing/mocking/mockClient.js.map +0 -1
  172. package/utilities/testing/mocking/mockFetch.d.ts.map +0 -1
  173. package/utilities/testing/mocking/mockFetch.js.map +0 -1
  174. package/utilities/testing/mocking/mockLink.d.ts.map +0 -1
  175. package/utilities/testing/mocking/mockLink.js.map +0 -1
  176. package/utilities/testing/mocking/mockQueryManager.d.ts.map +0 -1
  177. package/utilities/testing/mocking/mockQueryManager.js.map +0 -1
  178. package/utilities/testing/mocking/mockSubscriptionLink.d.ts.map +0 -1
  179. package/utilities/testing/mocking/mockSubscriptionLink.js.map +0 -1
  180. package/utilities/testing/mocking/mockWatchQuery.d.ts.map +0 -1
  181. package/utilities/testing/mocking/mockWatchQuery.js.map +0 -1
  182. package/utilities/testing/observableToPromise.d.ts.map +0 -1
  183. package/utilities/testing/observableToPromise.js.map +0 -1
  184. package/utilities/testing/subscribeAndCount.d.ts +0 -5
  185. package/utilities/testing/subscribeAndCount.d.ts.map +0 -1
  186. package/utilities/testing/subscribeAndCount.js.map +0 -1
  187. package/utilities/testing/withConsoleSpy.d.ts.map +0 -1
  188. package/utilities/testing/withConsoleSpy.js.map +0 -1
  189. package/utilities/testing/wrap.d.ts.map +0 -1
  190. package/utilities/testing/wrap.js.map +0 -1
@@ -37,7 +37,7 @@ var QueryManager = (function () {
37
37
  this.queries.forEach(function (_info, queryId) {
38
38
  _this.stopQueryNoBroadcast(queryId);
39
39
  });
40
- this.cancelPendingFetches(__DEV__ ? new InvariantError('QueryManager stopped while query was in flight') : new InvariantError(13));
40
+ this.cancelPendingFetches(__DEV__ ? new InvariantError('QueryManager stopped while query was in flight') : new InvariantError(11));
41
41
  };
42
42
  QueryManager.prototype.cancelPendingFetches = function (error) {
43
43
  this.fetchCancelFns.forEach(function (cancel) { return cancel(error); });
@@ -50,10 +50,10 @@ var QueryManager = (function () {
50
50
  return __generator(this, function (_f) {
51
51
  switch (_f.label) {
52
52
  case 0:
53
- __DEV__ ? invariant(mutation, 'mutation option is required. You must specify your GraphQL document in the mutation option.') : invariant(mutation, 14);
53
+ __DEV__ ? invariant(mutation, 'mutation option is required. You must specify your GraphQL document in the mutation option.') : invariant(mutation, 12);
54
54
  __DEV__ ? invariant(fetchPolicy === 'network-only' ||
55
55
  fetchPolicy === 'no-cache', "Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write.") : invariant(fetchPolicy === 'network-only' ||
56
- fetchPolicy === 'no-cache', 15);
56
+ fetchPolicy === 'no-cache', 13);
57
57
  mutationId = this.generateMutationId();
58
58
  mutation = this.transform(mutation).document;
59
59
  variables = this.getVariables(mutation, variables);
@@ -338,10 +338,10 @@ var QueryManager = (function () {
338
338
  var _this = this;
339
339
  if (queryId === void 0) { queryId = this.generateQueryId(); }
340
340
  __DEV__ ? invariant(options.query, 'query option is required. You must specify your GraphQL document ' +
341
- 'in the query option.') : invariant(options.query, 16);
342
- __DEV__ ? invariant(options.query.kind === 'Document', 'You must wrap the query string in a "gql" tag.') : invariant(options.query.kind === 'Document', 17);
343
- __DEV__ ? invariant(!options.returnPartialData, 'returnPartialData option only supported on watchQuery.') : invariant(!options.returnPartialData, 18);
344
- __DEV__ ? invariant(!options.pollInterval, 'pollInterval option only supported on watchQuery.') : invariant(!options.pollInterval, 19);
341
+ 'in the query option.') : invariant(options.query, 14);
342
+ __DEV__ ? invariant(options.query.kind === 'Document', 'You must wrap the query string in a "gql" tag.') : invariant(options.query.kind === 'Document', 15);
343
+ __DEV__ ? invariant(!options.returnPartialData, 'returnPartialData option only supported on watchQuery.') : invariant(!options.returnPartialData, 16);
344
+ __DEV__ ? invariant(!options.pollInterval, 'pollInterval option only supported on watchQuery.') : invariant(!options.pollInterval, 17);
345
345
  return this.fetchQuery(queryId, options).finally(function () { return _this.stopQuery(queryId); });
346
346
  };
347
347
  QueryManager.prototype.generateQueryId = function () {
@@ -363,7 +363,7 @@ var QueryManager = (function () {
363
363
  queryInfo.stop();
364
364
  };
365
365
  QueryManager.prototype.clearStore = function () {
366
- this.cancelPendingFetches(__DEV__ ? new InvariantError('Store reset while query was in flight (not completed in link chain)') : new InvariantError(20));
366
+ this.cancelPendingFetches(__DEV__ ? new InvariantError('Store reset while query was in flight (not completed in link chain)') : new InvariantError(18));
367
367
  this.queries.forEach(function (queryInfo) {
368
368
  if (queryInfo.observableQuery) {
369
369
  queryInfo.networkStatus = NetworkStatus.loading;
package/core/core.cjs CHANGED
@@ -15,7 +15,7 @@ var utils = require('../link/utils');
15
15
  var tsInvariant = require('ts-invariant');
16
16
  var graphqlTag = require('graphql-tag');
17
17
 
18
- var version = '3.5.0-beta.12';
18
+ var version = '3.5.0-beta.16';
19
19
 
20
20
  exports.NetworkStatus = void 0;
21
21
  (function (NetworkStatus) {
@@ -338,7 +338,7 @@ var ObservableQuery = (function (_super) {
338
338
  pollingInfo.interval === pollInterval) {
339
339
  return;
340
340
  }
341
- __DEV__ ? globals.invariant(pollInterval, 'Attempted to start a polling query without a polling interval.') : globals.invariant(pollInterval, 12);
341
+ __DEV__ ? globals.invariant(pollInterval, 'Attempted to start a polling query without a polling interval.') : globals.invariant(pollInterval, 10);
342
342
  var info = pollingInfo || (this.pollingInfo = {});
343
343
  info.interval = pollInterval;
344
344
  var maybeFetch = function () {
@@ -453,8 +453,8 @@ function defaultSubscriptionObserverErrorCallback(error) {
453
453
  __DEV__ && globals.invariant.error('Unhandled error', error.message, error.stack);
454
454
  }
455
455
  function logMissingFieldErrors(missing) {
456
- if (__DEV__ && utilities.isNonEmptyArray(missing)) {
457
- __DEV__ && globals.invariant.debug("Missing cache result fields: " + missing.map(function (m) { return m.path.join('.'); }).join(', '), missing);
456
+ if (__DEV__ && missing) {
457
+ __DEV__ && globals.invariant.debug("Missing cache result fields: " + JSON.stringify(missing), missing);
458
458
  }
459
459
  }
460
460
  function applyNextFetchPolicy(options) {
@@ -635,7 +635,7 @@ var LocalState = (function () {
635
635
  }
636
636
  else {
637
637
  fragment = fragmentMap[selection.name.value];
638
- __DEV__ ? globals.invariant(fragment, "No fragment named " + selection.name.value) : globals.invariant(fragment, 11);
638
+ __DEV__ ? globals.invariant(fragment, "No fragment named " + selection.name.value) : globals.invariant(fragment, 9);
639
639
  }
640
640
  if (fragment && fragment.typeCondition) {
641
641
  typeCondition = fragment.typeCondition.name.value;
@@ -1021,7 +1021,7 @@ var QueryManager = (function () {
1021
1021
  this.queries.forEach(function (_info, queryId) {
1022
1022
  _this.stopQueryNoBroadcast(queryId);
1023
1023
  });
1024
- this.cancelPendingFetches(__DEV__ ? new globals.InvariantError('QueryManager stopped while query was in flight') : new globals.InvariantError(13));
1024
+ this.cancelPendingFetches(__DEV__ ? new globals.InvariantError('QueryManager stopped while query was in flight') : new globals.InvariantError(11));
1025
1025
  };
1026
1026
  QueryManager.prototype.cancelPendingFetches = function (error) {
1027
1027
  this.fetchCancelFns.forEach(function (cancel) { return cancel(error); });
@@ -1034,10 +1034,10 @@ var QueryManager = (function () {
1034
1034
  return tslib.__generator(this, function (_f) {
1035
1035
  switch (_f.label) {
1036
1036
  case 0:
1037
- __DEV__ ? globals.invariant(mutation, 'mutation option is required. You must specify your GraphQL document in the mutation option.') : globals.invariant(mutation, 14);
1037
+ __DEV__ ? globals.invariant(mutation, 'mutation option is required. You must specify your GraphQL document in the mutation option.') : globals.invariant(mutation, 12);
1038
1038
  __DEV__ ? globals.invariant(fetchPolicy === 'network-only' ||
1039
1039
  fetchPolicy === 'no-cache', "Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write.") : globals.invariant(fetchPolicy === 'network-only' ||
1040
- fetchPolicy === 'no-cache', 15);
1040
+ fetchPolicy === 'no-cache', 13);
1041
1041
  mutationId = this.generateMutationId();
1042
1042
  mutation = this.transform(mutation).document;
1043
1043
  variables = this.getVariables(mutation, variables);
@@ -1322,10 +1322,10 @@ var QueryManager = (function () {
1322
1322
  var _this = this;
1323
1323
  if (queryId === void 0) { queryId = this.generateQueryId(); }
1324
1324
  __DEV__ ? globals.invariant(options.query, 'query option is required. You must specify your GraphQL document ' +
1325
- 'in the query option.') : globals.invariant(options.query, 16);
1326
- __DEV__ ? globals.invariant(options.query.kind === 'Document', 'You must wrap the query string in a "gql" tag.') : globals.invariant(options.query.kind === 'Document', 17);
1327
- __DEV__ ? globals.invariant(!options.returnPartialData, 'returnPartialData option only supported on watchQuery.') : globals.invariant(!options.returnPartialData, 18);
1328
- __DEV__ ? globals.invariant(!options.pollInterval, 'pollInterval option only supported on watchQuery.') : globals.invariant(!options.pollInterval, 19);
1325
+ 'in the query option.') : globals.invariant(options.query, 14);
1326
+ __DEV__ ? globals.invariant(options.query.kind === 'Document', 'You must wrap the query string in a "gql" tag.') : globals.invariant(options.query.kind === 'Document', 15);
1327
+ __DEV__ ? globals.invariant(!options.returnPartialData, 'returnPartialData option only supported on watchQuery.') : globals.invariant(!options.returnPartialData, 16);
1328
+ __DEV__ ? globals.invariant(!options.pollInterval, 'pollInterval option only supported on watchQuery.') : globals.invariant(!options.pollInterval, 17);
1329
1329
  return this.fetchQuery(queryId, options).finally(function () { return _this.stopQuery(queryId); });
1330
1330
  };
1331
1331
  QueryManager.prototype.generateQueryId = function () {
@@ -1347,7 +1347,7 @@ var QueryManager = (function () {
1347
1347
  queryInfo.stop();
1348
1348
  };
1349
1349
  QueryManager.prototype.clearStore = function () {
1350
- this.cancelPendingFetches(__DEV__ ? new globals.InvariantError('Store reset while query was in flight (not completed in link chain)') : new globals.InvariantError(20));
1350
+ this.cancelPendingFetches(__DEV__ ? new globals.InvariantError('Store reset while query was in flight (not completed in link chain)') : new globals.InvariantError(18));
1351
1351
  this.queries.forEach(function (queryInfo) {
1352
1352
  if (queryInfo.observableQuery) {
1353
1353
  queryInfo.networkStatus = exports.NetworkStatus.loading;
@@ -1840,7 +1840,7 @@ var ApolloClient = (function () {
1840
1840
  if (!cache) {
1841
1841
  throw __DEV__ ? new globals.InvariantError("To initialize Apollo Client, you must specify a 'cache' property " +
1842
1842
  "in the options object. \n" +
1843
- "For more information, please visit: https://go.apollo.dev/c/docs") : new globals.InvariantError(9);
1843
+ "For more information, please visit: https://go.apollo.dev/c/docs") : new globals.InvariantError(7);
1844
1844
  }
1845
1845
  this.link = link;
1846
1846
  this.cache = cache;
@@ -1936,7 +1936,7 @@ var ApolloClient = (function () {
1936
1936
  __DEV__ ? globals.invariant(options.fetchPolicy !== 'cache-and-network', 'The cache-and-network fetchPolicy does not work with client.query, because ' +
1937
1937
  'client.query can only return a single result. Please use client.watchQuery ' +
1938
1938
  'to receive multiple results from the cache and the network, or consider ' +
1939
- 'using a different fetchPolicy, such as cache-first or network-only.') : globals.invariant(options.fetchPolicy !== 'cache-and-network', 10);
1939
+ 'using a different fetchPolicy, such as cache-first or network-only.') : globals.invariant(options.fetchPolicy !== 'cache-and-network', 8);
1940
1940
  if (this.disableNetworkFetches && options.fetchPolicy === 'network-only') {
1941
1941
  options = tslib.__assign(tslib.__assign({}, options), { fetchPolicy: 'cache-first' });
1942
1942
  }