@apollo/client 3.8.0-beta.5 → 3.8.0-beta.7

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 (646) hide show
  1. package/apollo-client.cjs +282 -242
  2. package/apollo-client.cjs.map +1 -1
  3. package/apollo-client.min.cjs +1 -1
  4. package/cache/cache.cjs +12 -12
  5. package/cache/cache.cjs.map +1 -1
  6. package/cache/cache.cjs.native.js +12 -12
  7. package/cache/core/cache.d.ts +3 -3
  8. package/cache/core/cache.d.ts.map +1 -1
  9. package/cache/core/cache.js +1 -1
  10. package/cache/core/cache.js.map +1 -1
  11. package/cache/core/types/Cache.d.ts +3 -3
  12. package/cache/core/types/Cache.d.ts.map +1 -1
  13. package/cache/core/types/Cache.js.map +1 -1
  14. package/cache/core/types/DataProxy.d.ts +2 -2
  15. package/cache/core/types/DataProxy.d.ts.map +1 -1
  16. package/cache/core/types/DataProxy.js.map +1 -1
  17. package/cache/core/types/common.d.ts +2 -2
  18. package/cache/core/types/common.d.ts.map +1 -1
  19. package/cache/core/types/common.js.map +1 -1
  20. package/cache/index.d.ts +14 -14
  21. package/cache/index.d.ts.map +1 -1
  22. package/cache/index.js +13 -13
  23. package/cache/index.js.map +1 -1
  24. package/cache/inmemory/entityStore.d.ts +5 -5
  25. package/cache/inmemory/entityStore.d.ts.map +1 -1
  26. package/cache/inmemory/entityStore.js +3 -3
  27. package/cache/inmemory/entityStore.js.map +1 -1
  28. package/cache/inmemory/fragmentRegistry.js.map +1 -1
  29. package/cache/inmemory/helpers.d.ts +5 -5
  30. package/cache/inmemory/helpers.d.ts.map +1 -1
  31. package/cache/inmemory/helpers.js +1 -1
  32. package/cache/inmemory/helpers.js.map +1 -1
  33. package/cache/inmemory/inMemoryCache.d.ts +8 -8
  34. package/cache/inmemory/inMemoryCache.d.ts.map +1 -1
  35. package/cache/inmemory/inMemoryCache.js +13 -13
  36. package/cache/inmemory/inMemoryCache.js.map +1 -1
  37. package/cache/inmemory/key-extractor.d.ts +1 -1
  38. package/cache/inmemory/key-extractor.d.ts.map +1 -1
  39. package/cache/inmemory/key-extractor.js.map +1 -1
  40. package/cache/inmemory/object-canon.d.ts.map +1 -1
  41. package/cache/inmemory/object-canon.js +2 -3
  42. package/cache/inmemory/object-canon.js.map +1 -1
  43. package/cache/inmemory/policies.d.ts +6 -6
  44. package/cache/inmemory/policies.d.ts.map +1 -1
  45. package/cache/inmemory/policies.js +9 -9
  46. package/cache/inmemory/policies.js.map +1 -1
  47. package/cache/inmemory/reactiveVars.d.ts +1 -1
  48. package/cache/inmemory/reactiveVars.d.ts.map +1 -1
  49. package/cache/inmemory/reactiveVars.js.map +1 -1
  50. package/cache/inmemory/readFromStore.d.ts +6 -6
  51. package/cache/inmemory/readFromStore.d.ts.map +1 -1
  52. package/cache/inmemory/readFromStore.js +7 -7
  53. package/cache/inmemory/readFromStore.js.map +1 -1
  54. package/cache/inmemory/types.d.ts +6 -6
  55. package/cache/inmemory/types.d.ts.map +1 -1
  56. package/cache/inmemory/types.js.map +1 -1
  57. package/cache/inmemory/writeToStore.d.ts +6 -6
  58. package/cache/inmemory/writeToStore.d.ts.map +1 -1
  59. package/cache/inmemory/writeToStore.js +10 -10
  60. package/cache/inmemory/writeToStore.js.map +1 -1
  61. package/config/jest/setup.d.ts +1 -1
  62. package/config/jest/setup.d.ts.map +1 -1
  63. package/config/jest/setup.js +2 -2
  64. package/config/jest/setup.js.map +1 -1
  65. package/core/ApolloClient.d.ts +10 -10
  66. package/core/ApolloClient.d.ts.map +1 -1
  67. package/core/ApolloClient.js +12 -11
  68. package/core/ApolloClient.js.map +1 -1
  69. package/core/LocalState.d.ts +5 -5
  70. package/core/LocalState.d.ts.map +1 -1
  71. package/core/LocalState.js +5 -5
  72. package/core/LocalState.js.map +1 -1
  73. package/core/ObservableQuery.d.ts +11 -10
  74. package/core/ObservableQuery.d.ts.map +1 -1
  75. package/core/ObservableQuery.js +17 -13
  76. package/core/ObservableQuery.js.map +1 -1
  77. package/core/QueryInfo.d.ts +9 -9
  78. package/core/QueryInfo.d.ts.map +1 -1
  79. package/core/QueryInfo.js +4 -4
  80. package/core/QueryInfo.js.map +1 -1
  81. package/core/QueryManager.d.ts +12 -12
  82. package/core/QueryManager.d.ts.map +1 -1
  83. package/core/QueryManager.js +25 -25
  84. package/core/QueryManager.js.map +1 -1
  85. package/core/core.cjs +43 -37
  86. package/core/core.cjs.map +1 -1
  87. package/core/core.cjs.native.js +43 -37
  88. package/core/equalByQuery.d.ts +2 -2
  89. package/core/equalByQuery.d.ts.map +1 -1
  90. package/core/equalByQuery.js +9 -8
  91. package/core/equalByQuery.js.map +1 -1
  92. package/core/index.d.ts +13 -13
  93. package/core/index.d.ts.map +1 -1
  94. package/core/index.js +12 -13
  95. package/core/index.js.map +1 -1
  96. package/core/types.d.ts +10 -10
  97. package/core/types.d.ts.map +1 -1
  98. package/core/types.js.map +1 -1
  99. package/core/watchQueryOptions.d.ts +4 -4
  100. package/core/watchQueryOptions.d.ts.map +1 -1
  101. package/core/watchQueryOptions.js.map +1 -1
  102. package/dev/dev.cjs +73 -81
  103. package/dev/dev.cjs.map +1 -1
  104. package/dev/dev.cjs.native.js +73 -81
  105. package/dev/index.d.ts +3 -3
  106. package/dev/index.d.ts.map +1 -1
  107. package/dev/index.js +3 -3
  108. package/dev/index.js.map +1 -1
  109. package/dev/loadDevMessages.js +2 -2
  110. package/dev/loadDevMessages.js.map +1 -1
  111. package/dev/loadErrorMessageHandler.d.ts +1 -1
  112. package/dev/loadErrorMessageHandler.d.ts.map +1 -1
  113. package/dev/loadErrorMessageHandler.js +2 -2
  114. package/dev/loadErrorMessageHandler.js.map +1 -1
  115. package/dev/loadErrorMessages.js +2 -2
  116. package/dev/loadErrorMessages.js.map +1 -1
  117. package/errors/errors.cjs.map +1 -1
  118. package/errors/index.d.ts +4 -4
  119. package/errors/index.d.ts.map +1 -1
  120. package/errors/index.js +2 -2
  121. package/errors/index.js.map +1 -1
  122. package/index.d.ts +2 -2
  123. package/index.d.ts.map +1 -1
  124. package/index.js +2 -2
  125. package/index.js.map +1 -1
  126. package/invariantErrorCodes.js +71 -78
  127. package/link/batch/batch.cjs.map +1 -1
  128. package/link/batch/batchLink.d.ts +5 -5
  129. package/link/batch/batchLink.d.ts.map +1 -1
  130. package/link/batch/batchLink.js +3 -3
  131. package/link/batch/batchLink.js.map +1 -1
  132. package/link/batch/batching.d.ts +2 -2
  133. package/link/batch/batching.d.ts.map +1 -1
  134. package/link/batch/batching.js +1 -1
  135. package/link/batch/batching.js.map +1 -1
  136. package/link/batch/index.d.ts +1 -1
  137. package/link/batch/index.d.ts.map +1 -1
  138. package/link/batch/index.js +1 -1
  139. package/link/batch/index.js.map +1 -1
  140. package/link/batch-http/batch-http.cjs.map +1 -1
  141. package/link/batch-http/batchHttpLink.d.ts +5 -5
  142. package/link/batch-http/batchHttpLink.d.ts.map +1 -1
  143. package/link/batch-http/batchHttpLink.js +5 -5
  144. package/link/batch-http/batchHttpLink.js.map +1 -1
  145. package/link/batch-http/index.d.ts +1 -1
  146. package/link/batch-http/index.d.ts.map +1 -1
  147. package/link/batch-http/index.js +1 -1
  148. package/link/batch-http/index.js.map +1 -1
  149. package/link/context/context.cjs.map +1 -1
  150. package/link/context/index.d.ts +3 -3
  151. package/link/context/index.d.ts.map +1 -1
  152. package/link/context/index.js +2 -2
  153. package/link/context/index.js.map +1 -1
  154. package/link/core/ApolloLink.d.ts +3 -3
  155. package/link/core/ApolloLink.d.ts.map +1 -1
  156. package/link/core/ApolloLink.js +5 -5
  157. package/link/core/ApolloLink.js.map +1 -1
  158. package/link/core/concat.d.ts +1 -1
  159. package/link/core/concat.d.ts.map +1 -1
  160. package/link/core/concat.js +1 -1
  161. package/link/core/concat.js.map +1 -1
  162. package/link/core/core.cjs +2 -2
  163. package/link/core/core.cjs.map +1 -1
  164. package/link/core/core.cjs.native.js +2 -2
  165. package/link/core/empty.d.ts +1 -1
  166. package/link/core/empty.d.ts.map +1 -1
  167. package/link/core/empty.js +1 -1
  168. package/link/core/empty.js.map +1 -1
  169. package/link/core/execute.d.ts +1 -1
  170. package/link/core/execute.d.ts.map +1 -1
  171. package/link/core/execute.js +1 -1
  172. package/link/core/execute.js.map +1 -1
  173. package/link/core/from.d.ts +1 -1
  174. package/link/core/from.d.ts.map +1 -1
  175. package/link/core/from.js +1 -1
  176. package/link/core/from.js.map +1 -1
  177. package/link/core/index.d.ts +8 -8
  178. package/link/core/index.d.ts.map +1 -1
  179. package/link/core/index.js +8 -8
  180. package/link/core/index.js.map +1 -1
  181. package/link/core/split.d.ts +1 -1
  182. package/link/core/split.d.ts.map +1 -1
  183. package/link/core/split.js +1 -1
  184. package/link/core/split.js.map +1 -1
  185. package/link/core/types.d.ts +2 -2
  186. package/link/core/types.d.ts.map +1 -1
  187. package/link/core/types.js.map +1 -1
  188. package/link/error/error.cjs.map +1 -1
  189. package/link/error/index.d.ts +4 -4
  190. package/link/error/index.d.ts.map +1 -1
  191. package/link/error/index.js +2 -2
  192. package/link/error/index.js.map +1 -1
  193. package/link/http/HttpLink.d.ts +3 -3
  194. package/link/http/HttpLink.d.ts.map +1 -1
  195. package/link/http/HttpLink.js +2 -2
  196. package/link/http/HttpLink.js.map +1 -1
  197. package/link/http/checkFetcher.js +2 -2
  198. package/link/http/checkFetcher.js.map +1 -1
  199. package/link/http/createHttpLink.d.ts +2 -2
  200. package/link/http/createHttpLink.d.ts.map +1 -1
  201. package/link/http/createHttpLink.js +14 -14
  202. package/link/http/createHttpLink.js.map +1 -1
  203. package/link/http/http.cjs +4 -4
  204. package/link/http/http.cjs.map +1 -1
  205. package/link/http/http.cjs.native.js +4 -4
  206. package/link/http/index.d.ts +10 -10
  207. package/link/http/index.d.ts.map +1 -1
  208. package/link/http/index.js +10 -10
  209. package/link/http/index.js.map +1 -1
  210. package/link/http/iterators/nodeStream.js.map +1 -1
  211. package/link/http/iterators/promise.js.map +1 -1
  212. package/link/http/iterators/reader.js.map +1 -1
  213. package/link/http/parseAndCheckHttpResponse.d.ts +2 -2
  214. package/link/http/parseAndCheckHttpResponse.d.ts.map +1 -1
  215. package/link/http/parseAndCheckHttpResponse.js +2 -2
  216. package/link/http/parseAndCheckHttpResponse.js.map +1 -1
  217. package/link/http/responseIterator.js.map +1 -1
  218. package/link/http/rewriteURIForGET.d.ts +1 -1
  219. package/link/http/rewriteURIForGET.d.ts.map +1 -1
  220. package/link/http/rewriteURIForGET.js +1 -1
  221. package/link/http/rewriteURIForGET.js.map +1 -1
  222. package/link/http/selectHttpOptionsAndBody.d.ts +2 -2
  223. package/link/http/selectHttpOptionsAndBody.d.ts.map +1 -1
  224. package/link/http/selectHttpOptionsAndBody.js +1 -1
  225. package/link/http/selectHttpOptionsAndBody.js.map +1 -1
  226. package/link/http/selectURI.d.ts +1 -1
  227. package/link/http/selectURI.d.ts.map +1 -1
  228. package/link/http/selectURI.js.map +1 -1
  229. package/link/http/serializeFetchParameter.d.ts +1 -1
  230. package/link/http/serializeFetchParameter.d.ts.map +1 -1
  231. package/link/http/serializeFetchParameter.js +2 -2
  232. package/link/http/serializeFetchParameter.js.map +1 -1
  233. package/link/persisted-queries/index.d.ts +3 -3
  234. package/link/persisted-queries/index.d.ts.map +1 -1
  235. package/link/persisted-queries/index.js +6 -6
  236. package/link/persisted-queries/index.js.map +1 -1
  237. package/link/persisted-queries/persisted-queries.cjs +2 -2
  238. package/link/persisted-queries/persisted-queries.cjs.map +1 -1
  239. package/link/persisted-queries/persisted-queries.cjs.native.js +2 -2
  240. package/link/remove-typename/index.d.ts +1 -1
  241. package/link/remove-typename/index.d.ts.map +1 -1
  242. package/link/remove-typename/index.js +1 -1
  243. package/link/remove-typename/index.js.map +1 -1
  244. package/link/remove-typename/remove-typename.cjs.map +1 -1
  245. package/link/remove-typename/removeTypenameFromVariables.d.ts +1 -1
  246. package/link/remove-typename/removeTypenameFromVariables.d.ts.map +1 -1
  247. package/link/remove-typename/removeTypenameFromVariables.js +2 -2
  248. package/link/remove-typename/removeTypenameFromVariables.js.map +1 -1
  249. package/link/retry/delayFunction.d.ts +1 -1
  250. package/link/retry/delayFunction.d.ts.map +1 -1
  251. package/link/retry/delayFunction.js.map +1 -1
  252. package/link/retry/index.d.ts +1 -1
  253. package/link/retry/index.d.ts.map +1 -1
  254. package/link/retry/index.js +1 -1
  255. package/link/retry/index.js.map +1 -1
  256. package/link/retry/retry.cjs.map +1 -1
  257. package/link/retry/retryFunction.d.ts +1 -1
  258. package/link/retry/retryFunction.d.ts.map +1 -1
  259. package/link/retry/retryFunction.js.map +1 -1
  260. package/link/retry/retryLink.d.ts +5 -5
  261. package/link/retry/retryLink.d.ts.map +1 -1
  262. package/link/retry/retryLink.js +4 -4
  263. package/link/retry/retryLink.js.map +1 -1
  264. package/link/schema/index.d.ts +3 -3
  265. package/link/schema/index.d.ts.map +1 -1
  266. package/link/schema/index.js +2 -2
  267. package/link/schema/index.js.map +1 -1
  268. package/link/schema/schema.cjs.map +1 -1
  269. package/link/subscriptions/index.d.ts +3 -3
  270. package/link/subscriptions/index.d.ts.map +1 -1
  271. package/link/subscriptions/index.js +1 -1
  272. package/link/subscriptions/index.js.map +1 -1
  273. package/link/subscriptions/subscriptions.cjs.map +1 -1
  274. package/link/utils/createOperation.d.ts +1 -1
  275. package/link/utils/createOperation.d.ts.map +1 -1
  276. package/link/utils/createOperation.js.map +1 -1
  277. package/link/utils/fromError.d.ts +1 -1
  278. package/link/utils/fromError.d.ts.map +1 -1
  279. package/link/utils/fromError.js +1 -1
  280. package/link/utils/fromError.js.map +1 -1
  281. package/link/utils/fromPromise.d.ts +1 -1
  282. package/link/utils/fromPromise.d.ts.map +1 -1
  283. package/link/utils/fromPromise.js +1 -1
  284. package/link/utils/fromPromise.js.map +1 -1
  285. package/link/utils/index.d.ts +9 -9
  286. package/link/utils/index.d.ts.map +1 -1
  287. package/link/utils/index.js +9 -9
  288. package/link/utils/index.js.map +1 -1
  289. package/link/utils/toPromise.d.ts +1 -1
  290. package/link/utils/toPromise.d.ts.map +1 -1
  291. package/link/utils/toPromise.js +2 -2
  292. package/link/utils/toPromise.js.map +1 -1
  293. package/link/utils/transformOperation.d.ts +1 -1
  294. package/link/utils/transformOperation.d.ts.map +1 -1
  295. package/link/utils/transformOperation.js +1 -1
  296. package/link/utils/transformOperation.js.map +1 -1
  297. package/link/utils/utils.cjs +2 -2
  298. package/link/utils/utils.cjs.map +1 -1
  299. package/link/utils/utils.cjs.native.js +2 -2
  300. package/link/utils/validateOperation.d.ts +1 -1
  301. package/link/utils/validateOperation.d.ts.map +1 -1
  302. package/link/utils/validateOperation.js +2 -2
  303. package/link/utils/validateOperation.js.map +1 -1
  304. package/link/ws/index.d.ts +3 -3
  305. package/link/ws/index.d.ts.map +1 -1
  306. package/link/ws/index.js +1 -1
  307. package/link/ws/index.js.map +1 -1
  308. package/link/ws/ws.cjs.map +1 -1
  309. package/package.json +18 -14
  310. package/react/cache/QueryReference.d.ts +9 -6
  311. package/react/cache/QueryReference.d.ts.map +1 -1
  312. package/react/cache/QueryReference.js +108 -52
  313. package/react/cache/QueryReference.js.map +1 -1
  314. package/react/cache/SuspenseCache.d.ts +3 -3
  315. package/react/cache/SuspenseCache.d.ts.map +1 -1
  316. package/react/cache/SuspenseCache.js +2 -2
  317. package/react/cache/SuspenseCache.js.map +1 -1
  318. package/react/cache/index.d.ts +1 -1
  319. package/react/cache/index.d.ts.map +1 -1
  320. package/react/cache/index.js +1 -1
  321. package/react/cache/index.js.map +1 -1
  322. package/react/components/Mutation.d.ts +3 -3
  323. package/react/components/Mutation.d.ts.map +1 -1
  324. package/react/components/Mutation.js +1 -1
  325. package/react/components/Mutation.js.map +1 -1
  326. package/react/components/Query.d.ts +2 -2
  327. package/react/components/Query.d.ts.map +1 -1
  328. package/react/components/Query.js +1 -1
  329. package/react/components/Query.js.map +1 -1
  330. package/react/components/Subscription.d.ts +2 -2
  331. package/react/components/Subscription.d.ts.map +1 -1
  332. package/react/components/Subscription.js +1 -1
  333. package/react/components/Subscription.js.map +1 -1
  334. package/react/components/components.cjs.map +1 -1
  335. package/react/components/index.d.ts +4 -4
  336. package/react/components/index.d.ts.map +1 -1
  337. package/react/components/index.js +4 -4
  338. package/react/components/index.js.map +1 -1
  339. package/react/components/types.d.ts +2 -2
  340. package/react/components/types.d.ts.map +1 -1
  341. package/react/components/types.js.map +1 -1
  342. package/react/context/ApolloConsumer.d.ts +1 -1
  343. package/react/context/ApolloConsumer.d.ts.map +1 -1
  344. package/react/context/ApolloConsumer.js +3 -3
  345. package/react/context/ApolloConsumer.js.map +1 -1
  346. package/react/context/ApolloContext.d.ts +4 -5
  347. package/react/context/ApolloContext.d.ts.map +1 -1
  348. package/react/context/ApolloContext.js +12 -5
  349. package/react/context/ApolloContext.js.map +1 -1
  350. package/react/context/ApolloProvider.d.ts +2 -2
  351. package/react/context/ApolloProvider.d.ts.map +1 -1
  352. package/react/context/ApolloProvider.js +3 -3
  353. package/react/context/ApolloProvider.js.map +1 -1
  354. package/react/context/context.cjs +12 -5
  355. package/react/context/context.cjs.map +1 -1
  356. package/react/context/context.cjs.native.js +12 -5
  357. package/react/context/index.d.ts +4 -4
  358. package/react/context/index.d.ts.map +1 -1
  359. package/react/context/index.js +4 -4
  360. package/react/context/index.js.map +1 -1
  361. package/react/hoc/graphql.d.ts +2 -2
  362. package/react/hoc/graphql.d.ts.map +1 -1
  363. package/react/hoc/graphql.js +4 -4
  364. package/react/hoc/graphql.js.map +1 -1
  365. package/react/hoc/hoc-utils.d.ts +2 -2
  366. package/react/hoc/hoc-utils.d.ts.map +1 -1
  367. package/react/hoc/hoc-utils.js +2 -2
  368. package/react/hoc/hoc-utils.js.map +1 -1
  369. package/react/hoc/hoc.cjs +2 -2
  370. package/react/hoc/hoc.cjs.map +1 -1
  371. package/react/hoc/hoc.cjs.native.js +2 -2
  372. package/react/hoc/index.d.ts +7 -7
  373. package/react/hoc/index.d.ts.map +1 -1
  374. package/react/hoc/index.js +7 -7
  375. package/react/hoc/index.js.map +1 -1
  376. package/react/hoc/mutation-hoc.d.ts +3 -3
  377. package/react/hoc/mutation-hoc.d.ts.map +1 -1
  378. package/react/hoc/mutation-hoc.js +3 -3
  379. package/react/hoc/mutation-hoc.js.map +1 -1
  380. package/react/hoc/query-hoc.d.ts +1 -1
  381. package/react/hoc/query-hoc.d.ts.map +1 -1
  382. package/react/hoc/query-hoc.js +3 -3
  383. package/react/hoc/query-hoc.js.map +1 -1
  384. package/react/hoc/subscription-hoc.d.ts +1 -1
  385. package/react/hoc/subscription-hoc.d.ts.map +1 -1
  386. package/react/hoc/subscription-hoc.js +3 -3
  387. package/react/hoc/subscription-hoc.js.map +1 -1
  388. package/react/hoc/types.d.ts +4 -4
  389. package/react/hoc/types.d.ts.map +1 -1
  390. package/react/hoc/types.js.map +1 -1
  391. package/react/hoc/withApollo.d.ts +1 -1
  392. package/react/hoc/withApollo.d.ts.map +1 -1
  393. package/react/hoc/withApollo.js +3 -3
  394. package/react/hoc/withApollo.js.map +1 -1
  395. package/react/hooks/hooks.cjs +179 -140
  396. package/react/hooks/hooks.cjs.map +1 -1
  397. package/react/hooks/hooks.cjs.native.js +179 -140
  398. package/react/hooks/index.d.ts +11 -11
  399. package/react/hooks/index.d.ts.map +1 -1
  400. package/react/hooks/index.js +11 -11
  401. package/react/hooks/index.js.map +1 -1
  402. package/react/hooks/internal/__use.js +2 -2
  403. package/react/hooks/internal/__use.js.map +1 -1
  404. package/react/hooks/internal/index.d.ts +3 -4
  405. package/react/hooks/internal/index.d.ts.map +1 -1
  406. package/react/hooks/internal/index.js +3 -4
  407. package/react/hooks/internal/index.js.map +1 -1
  408. package/react/hooks/internal/useDeepMemo.js +2 -2
  409. package/react/hooks/internal/useDeepMemo.js.map +1 -1
  410. package/react/hooks/internal/useIsomorphicLayoutEffect.d.ts +2 -2
  411. package/react/hooks/internal/useIsomorphicLayoutEffect.d.ts.map +1 -1
  412. package/react/hooks/internal/useIsomorphicLayoutEffect.js +4 -4
  413. package/react/hooks/internal/useIsomorphicLayoutEffect.js.map +1 -1
  414. package/react/hooks/useApolloClient.d.ts +1 -1
  415. package/react/hooks/useApolloClient.d.ts.map +1 -1
  416. package/react/hooks/useApolloClient.js +5 -5
  417. package/react/hooks/useApolloClient.js.map +1 -1
  418. package/react/hooks/useBackgroundQuery.d.ts +5 -5
  419. package/react/hooks/useBackgroundQuery.d.ts.map +1 -1
  420. package/react/hooks/useBackgroundQuery.js +16 -17
  421. package/react/hooks/useBackgroundQuery.js.map +1 -1
  422. package/react/hooks/useFragment.d.ts +4 -4
  423. package/react/hooks/useFragment.d.ts.map +1 -1
  424. package/react/hooks/useFragment.js +2 -2
  425. package/react/hooks/useFragment.js.map +1 -1
  426. package/react/hooks/useLazyQuery.d.ts +2 -2
  427. package/react/hooks/useLazyQuery.d.ts.map +1 -1
  428. package/react/hooks/useLazyQuery.js +9 -9
  429. package/react/hooks/useLazyQuery.js.map +1 -1
  430. package/react/hooks/useMutation.d.ts +2 -2
  431. package/react/hooks/useMutation.d.ts.map +1 -1
  432. package/react/hooks/useMutation.js +10 -10
  433. package/react/hooks/useMutation.js.map +1 -1
  434. package/react/hooks/useQuery.d.ts +4 -4
  435. package/react/hooks/useQuery.d.ts.map +1 -1
  436. package/react/hooks/useQuery.js +17 -17
  437. package/react/hooks/useQuery.js.map +1 -1
  438. package/react/hooks/useReactiveVar.d.ts +1 -1
  439. package/react/hooks/useReactiveVar.d.ts.map +1 -1
  440. package/react/hooks/useReactiveVar.js +3 -3
  441. package/react/hooks/useReactiveVar.js.map +1 -1
  442. package/react/hooks/useReadQuery.d.ts +3 -3
  443. package/react/hooks/useReadQuery.d.ts.map +1 -1
  444. package/react/hooks/useReadQuery.js +6 -6
  445. package/react/hooks/useReadQuery.js.map +1 -1
  446. package/react/hooks/useSubscription.d.ts +2 -2
  447. package/react/hooks/useSubscription.d.ts.map +1 -1
  448. package/react/hooks/useSubscription.js +14 -14
  449. package/react/hooks/useSubscription.js.map +1 -1
  450. package/react/hooks/useSuspenseCache.d.ts +1 -1
  451. package/react/hooks/useSuspenseCache.d.ts.map +1 -1
  452. package/react/hooks/useSuspenseCache.js +5 -5
  453. package/react/hooks/useSuspenseCache.js.map +1 -1
  454. package/react/hooks/useSuspenseQuery.d.ts +4 -6
  455. package/react/hooks/useSuspenseQuery.d.ts.map +1 -1
  456. package/react/hooks/useSuspenseQuery.js +30 -34
  457. package/react/hooks/useSuspenseQuery.js.map +1 -1
  458. package/react/hooks/useSyncExternalStore.js +4 -4
  459. package/react/hooks/useSyncExternalStore.js.map +1 -1
  460. package/react/index.d.ts +6 -6
  461. package/react/index.d.ts.map +1 -1
  462. package/react/index.js +6 -6
  463. package/react/index.js.map +1 -1
  464. package/react/parser/index.js +6 -6
  465. package/react/parser/index.js.map +1 -1
  466. package/react/parser/parser.cjs +5 -5
  467. package/react/parser/parser.cjs.map +1 -1
  468. package/react/parser/parser.cjs.native.js +5 -5
  469. package/react/react.cjs +106 -50
  470. package/react/react.cjs.map +1 -1
  471. package/react/react.cjs.native.js +106 -50
  472. package/react/ssr/RenderPromises.d.ts +2 -2
  473. package/react/ssr/RenderPromises.d.ts.map +1 -1
  474. package/react/ssr/RenderPromises.js.map +1 -1
  475. package/react/ssr/getDataFromTree.js +2 -2
  476. package/react/ssr/getDataFromTree.js.map +1 -1
  477. package/react/ssr/index.d.ts +3 -3
  478. package/react/ssr/index.d.ts.map +1 -1
  479. package/react/ssr/index.js +3 -3
  480. package/react/ssr/index.js.map +1 -1
  481. package/react/ssr/renderToStringWithData.js +1 -1
  482. package/react/ssr/renderToStringWithData.js.map +1 -1
  483. package/react/ssr/ssr.cjs.map +1 -1
  484. package/react/types/types.d.ts +7 -7
  485. package/react/types/types.d.ts.map +1 -1
  486. package/react/types/types.js.map +1 -1
  487. package/testing/core/core.cjs +1 -1
  488. package/testing/core/core.cjs.map +1 -1
  489. package/testing/core/core.cjs.native.js +1 -1
  490. package/testing/core/index.d.ts +7 -7
  491. package/testing/core/index.d.ts.map +1 -1
  492. package/testing/core/index.js +7 -7
  493. package/testing/core/index.js.map +1 -1
  494. package/testing/core/mocking/mockClient.d.ts +2 -2
  495. package/testing/core/mocking/mockClient.d.ts.map +1 -1
  496. package/testing/core/mocking/mockClient.js +3 -3
  497. package/testing/core/mocking/mockClient.js.map +1 -1
  498. package/testing/core/mocking/mockLink.d.ts +3 -3
  499. package/testing/core/mocking/mockLink.d.ts.map +1 -1
  500. package/testing/core/mocking/mockLink.js +4 -4
  501. package/testing/core/mocking/mockLink.js.map +1 -1
  502. package/testing/core/mocking/mockQueryManager.d.ts +3 -3
  503. package/testing/core/mocking/mockQueryManager.d.ts.map +1 -1
  504. package/testing/core/mocking/mockQueryManager.js +3 -3
  505. package/testing/core/mocking/mockQueryManager.js.map +1 -1
  506. package/testing/core/mocking/mockSubscriptionLink.d.ts +3 -3
  507. package/testing/core/mocking/mockSubscriptionLink.d.ts.map +1 -1
  508. package/testing/core/mocking/mockSubscriptionLink.js +2 -2
  509. package/testing/core/mocking/mockSubscriptionLink.js.map +1 -1
  510. package/testing/core/mocking/mockWatchQuery.d.ts +2 -2
  511. package/testing/core/mocking/mockWatchQuery.d.ts.map +1 -1
  512. package/testing/core/mocking/mockWatchQuery.js +1 -1
  513. package/testing/core/mocking/mockWatchQuery.js.map +1 -1
  514. package/testing/core/observableToPromise.d.ts +2 -2
  515. package/testing/core/observableToPromise.d.ts.map +1 -1
  516. package/testing/core/observableToPromise.js.map +1 -1
  517. package/testing/core/subscribeAndCount.d.ts +1 -1
  518. package/testing/core/subscribeAndCount.d.ts.map +1 -1
  519. package/testing/core/subscribeAndCount.js +1 -1
  520. package/testing/core/subscribeAndCount.js.map +1 -1
  521. package/testing/index.d.ts +3 -3
  522. package/testing/index.d.ts.map +1 -1
  523. package/testing/index.js +3 -3
  524. package/testing/index.js.map +1 -1
  525. package/testing/matchers/index.js +2 -2
  526. package/testing/matchers/index.js.map +1 -1
  527. package/testing/matchers/toHaveSuspenseCacheEntryUsing.d.ts +1 -1
  528. package/testing/matchers/toHaveSuspenseCacheEntryUsing.d.ts.map +1 -1
  529. package/testing/matchers/toHaveSuspenseCacheEntryUsing.js +2 -2
  530. package/testing/matchers/toHaveSuspenseCacheEntryUsing.js.map +1 -1
  531. package/testing/matchers/toMatchDocument.d.ts +1 -1
  532. package/testing/matchers/toMatchDocument.d.ts.map +1 -1
  533. package/testing/matchers/toMatchDocument.js +1 -1
  534. package/testing/matchers/toMatchDocument.js.map +1 -1
  535. package/testing/react/MockedProvider.d.ts +7 -7
  536. package/testing/react/MockedProvider.d.ts.map +1 -1
  537. package/testing/react/MockedProvider.js +5 -5
  538. package/testing/react/MockedProvider.js.map +1 -1
  539. package/testing/testing.cjs.map +1 -1
  540. package/utilities/common/canUse.js.map +1 -1
  541. package/utilities/common/compact.d.ts +1 -1
  542. package/utilities/common/compact.d.ts.map +1 -1
  543. package/utilities/common/compact.js.map +1 -1
  544. package/utilities/common/errorHandling.d.ts +1 -1
  545. package/utilities/common/errorHandling.d.ts.map +1 -1
  546. package/utilities/common/errorHandling.js.map +1 -1
  547. package/utilities/common/incrementalResult.d.ts +1 -1
  548. package/utilities/common/incrementalResult.d.ts.map +1 -1
  549. package/utilities/common/incrementalResult.js.map +1 -1
  550. package/utilities/common/maybeDeepFreeze.d.ts.map +1 -1
  551. package/utilities/common/maybeDeepFreeze.js +3 -4
  552. package/utilities/common/maybeDeepFreeze.js.map +1 -1
  553. package/utilities/common/mergeDeep.d.ts +1 -1
  554. package/utilities/common/mergeDeep.d.ts.map +1 -1
  555. package/utilities/common/mergeDeep.js.map +1 -1
  556. package/utilities/common/mergeOptions.d.ts +1 -1
  557. package/utilities/common/mergeOptions.d.ts.map +1 -1
  558. package/utilities/common/mergeOptions.js.map +1 -1
  559. package/utilities/common/omitDeep.d.ts +1 -1
  560. package/utilities/common/omitDeep.d.ts.map +1 -1
  561. package/utilities/common/omitDeep.js +1 -1
  562. package/utilities/common/omitDeep.js.map +1 -1
  563. package/utilities/common/responseIterator.js.map +1 -1
  564. package/utilities/common/stringifyForDisplay.js.map +1 -1
  565. package/utilities/common/stripTypename.d.ts +1 -1
  566. package/utilities/common/stripTypename.d.ts.map +1 -1
  567. package/utilities/common/stripTypename.js +1 -1
  568. package/utilities/common/stripTypename.js.map +1 -1
  569. package/utilities/globals/global.d.ts.map +1 -1
  570. package/utilities/globals/global.js.map +1 -1
  571. package/utilities/globals/globals.cjs +4 -16
  572. package/utilities/globals/globals.cjs.map +1 -1
  573. package/utilities/globals/globals.cjs.native.js +4 -16
  574. package/utilities/globals/index.d.ts +5 -6
  575. package/utilities/globals/index.d.ts.map +1 -1
  576. package/utilities/globals/index.js +2 -5
  577. package/utilities/globals/index.js.map +1 -1
  578. package/utilities/globals/invariantWrappers.d.ts +1 -1
  579. package/utilities/globals/invariantWrappers.d.ts.map +1 -1
  580. package/utilities/globals/invariantWrappers.js +3 -3
  581. package/utilities/globals/invariantWrappers.js.map +1 -1
  582. package/utilities/graphql/DocumentTransform.js +4 -4
  583. package/utilities/graphql/DocumentTransform.js.map +1 -1
  584. package/utilities/graphql/directives.js +5 -5
  585. package/utilities/graphql/directives.js.map +1 -1
  586. package/utilities/graphql/fragments.js +4 -4
  587. package/utilities/graphql/fragments.js.map +1 -1
  588. package/utilities/graphql/getFromAST.js +10 -10
  589. package/utilities/graphql/getFromAST.js.map +1 -1
  590. package/utilities/graphql/operations.d.ts +1 -1
  591. package/utilities/graphql/operations.d.ts.map +1 -1
  592. package/utilities/graphql/operations.js +1 -1
  593. package/utilities/graphql/operations.js.map +1 -1
  594. package/utilities/graphql/print.js +1 -1
  595. package/utilities/graphql/print.js.map +1 -1
  596. package/utilities/graphql/storeUtils.d.ts +1 -1
  597. package/utilities/graphql/storeUtils.d.ts.map +1 -1
  598. package/utilities/graphql/storeUtils.js +4 -4
  599. package/utilities/graphql/storeUtils.js.map +1 -1
  600. package/utilities/graphql/transform.js +7 -7
  601. package/utilities/graphql/transform.js.map +1 -1
  602. package/utilities/index.d.ts +34 -34
  603. package/utilities/index.d.ts.map +1 -1
  604. package/utilities/index.js +32 -32
  605. package/utilities/index.js.map +1 -1
  606. package/utilities/observables/Concast.d.ts +2 -2
  607. package/utilities/observables/Concast.d.ts.map +1 -1
  608. package/utilities/observables/Concast.js.map +1 -1
  609. package/utilities/observables/asyncMap.d.ts +1 -1
  610. package/utilities/observables/asyncMap.d.ts.map +1 -1
  611. package/utilities/observables/asyncMap.js.map +1 -1
  612. package/utilities/observables/iteration.d.ts +1 -1
  613. package/utilities/observables/iteration.d.ts.map +1 -1
  614. package/utilities/observables/iteration.js.map +1 -1
  615. package/utilities/observables/subclassing.d.ts +1 -1
  616. package/utilities/observables/subclassing.d.ts.map +1 -1
  617. package/utilities/observables/subclassing.js.map +1 -1
  618. package/utilities/policies/pagination.d.ts +1 -1
  619. package/utilities/policies/pagination.d.ts.map +1 -1
  620. package/utilities/policies/pagination.js +1 -1
  621. package/utilities/policies/pagination.js.map +1 -1
  622. package/utilities/promises/decoration.d.ts.map +1 -1
  623. package/utilities/promises/decoration.js +1 -0
  624. package/utilities/promises/decoration.js.map +1 -1
  625. package/utilities/types/DeepOmit.d.ts +1 -1
  626. package/utilities/types/DeepOmit.d.ts.map +1 -1
  627. package/utilities/types/DeepOmit.js.map +1 -1
  628. package/utilities/types/DeepPartial.d.ts +1 -1
  629. package/utilities/types/DeepPartial.d.ts.map +1 -1
  630. package/utilities/types/DeepPartial.js.map +1 -1
  631. package/utilities/utilities.cjs +22 -21
  632. package/utilities/utilities.cjs.map +1 -1
  633. package/utilities/utilities.cjs.native.js +22 -21
  634. package/version.js +1 -1
  635. package/react/hooks/internal/useStrictModeSafeCleanupEffect.d.ts +0 -2
  636. package/react/hooks/internal/useStrictModeSafeCleanupEffect.d.ts.map +0 -1
  637. package/react/hooks/internal/useStrictModeSafeCleanupEffect.js +0 -11
  638. package/react/hooks/internal/useStrictModeSafeCleanupEffect.js.map +0 -1
  639. package/utilities/globals/DEV.d.ts +0 -3
  640. package/utilities/globals/DEV.d.ts.map +0 -1
  641. package/utilities/globals/DEV.js +0 -4
  642. package/utilities/globals/DEV.js.map +0 -1
  643. package/utilities/globals/fix-graphql.d.ts +0 -2
  644. package/utilities/globals/fix-graphql.d.ts.map +0 -1
  645. package/utilities/globals/fix-graphql.js +0 -6
  646. package/utilities/globals/fix-graphql.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ApolloLink.js","sourceRoot":"","sources":["../../../src/link/core/ApolloLink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGvE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAQ7C,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,kBAAkB,GACnB,MAAM,UAAU,CAAC;AAElB,SAAS,WAAW,CAAC,EAAa,EAAE,OAAiB;IACnD,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,EAAE,CAA4B,CAAC;AAC9E,CAAC;AAED,SAAS,MAAM,CAAC,OAAoC;IAClD,OAAO,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;AAC3E,CAAC;AAED,SAAS,aAAa,CAAC,IAAgB;IACrC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,CAAC;AAClC,CAAC;AAED;IAgFE,oBAAY,OAAwB;QAClC,IAAI,OAAO;YAAE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACtC,CAAC;IAjFa,gBAAK,GAAnB;QACE,OAAO,IAAI,UAAU,CAAC,cAAM,OAAA,UAAU,CAAC,EAAE,EAAE,EAAf,CAAe,CAAC,CAAC;IAC/C,CAAC;IAEa,eAAI,GAAlB,UAAmB,KAAsC;QACvD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,UAAU,CAAC,KAAK,EAAE,CAAC;QAClD,OAAO,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b,UAAc,IAAiC;QAC7C,OAAO,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACvC,CAAC;IAEM,4BAAO,GAAd,UACE,SAAoB,EACpB,OAAkB;QAElB,MAAM,iBAAiB,CAAC,4BAA4B,CAAC,CAAC;IACxD,CAAC;IAES,4BAAO,GAAjB,UACE,KAAU,EACV,QAAgC;QAEhC,IAAI,QAAQ,IAAI,QAAQ,CAAC,KAAK,EAAE;YAC9B,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAOtB,OAAO,KAAK,CAAC;SACd;QAED,MAAM,KAAK,CAAC;IACd,CAAC;IAEM,+BAAU,GAAjB,UAAkB,EAAyB;QACzC,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC;IACd,CAAC;IACH,iBAAC;AAAD,CAAC,AA/HD,IA+HC","sourcesContent":["import { newInvariantError, invariant } from '../../utilities/globals';\n\nimport type { Observer } from '../../utilities';\nimport { Observable } from '../../utilities';\nimport type {\n NextLink,\n Operation,\n RequestHandler,\n FetchResult,\n GraphQLRequest\n} from './types';\nimport {\n validateOperation,\n createOperation,\n transformOperation,\n} from '../utils';\n\nfunction passthrough(op: Operation, forward: NextLink) {\n return (forward ? forward(op) : Observable.of()) as Observable<FetchResult>;\n}\n\nfunction toLink(handler: RequestHandler | ApolloLink) {\n return typeof handler === 'function' ? new ApolloLink(handler) : handler;\n}\n\nfunction isTerminating(link: ApolloLink): boolean {\n return link.request.length <= 1;\n}\n\nexport class ApolloLink {\n public static empty(): ApolloLink {\n return new ApolloLink(() => Observable.of());\n }\n\n public static from(links: (ApolloLink | RequestHandler)[]): ApolloLink {\n if (links.length === 0) return ApolloLink.empty();\n return links.map(toLink).reduce((x, y) => x.concat(y)) as ApolloLink;\n }\n\n public static split(\n test: (op: Operation) => boolean,\n left: ApolloLink | RequestHandler,\n right?: ApolloLink | RequestHandler,\n ): ApolloLink {\n const leftLink = toLink(left);\n const rightLink = toLink(right || new ApolloLink(passthrough));\n\n if (isTerminating(leftLink) && isTerminating(rightLink)) {\n return new ApolloLink(operation => {\n return test(operation)\n ? leftLink.request(operation) || Observable.of()\n : rightLink.request(operation) || Observable.of();\n });\n } else {\n return new ApolloLink((operation, forward) => {\n return test(operation)\n ? leftLink.request(operation, forward) || Observable.of()\n : rightLink.request(operation, forward) || Observable.of();\n });\n }\n }\n\n public static execute(\n link: ApolloLink,\n operation: GraphQLRequest,\n ): Observable<FetchResult> {\n return (\n link.request(\n createOperation(\n operation.context,\n transformOperation(validateOperation(operation)),\n ),\n ) || Observable.of()\n );\n }\n\n public static concat(\n first: ApolloLink | RequestHandler,\n second: ApolloLink | RequestHandler,\n ) {\n const firstLink = toLink(first);\n if (isTerminating(firstLink)) {\n invariant.warn(\n `You are calling concat on a terminating link, which will have no effect %o`,\n firstLink,\n );\n return firstLink;\n }\n const nextLink = toLink(second);\n\n if (isTerminating(nextLink)) {\n return new ApolloLink(\n operation =>\n firstLink.request(\n operation,\n op => nextLink.request(op) || Observable.of(),\n ) || Observable.of(),\n );\n } else {\n return new ApolloLink((operation, forward) => {\n return (\n firstLink.request(operation, op => {\n return nextLink.request(op, forward) || Observable.of();\n }) || Observable.of()\n );\n });\n }\n }\n\n constructor(request?: RequestHandler) {\n if (request) this.request = request;\n }\n\n public split(\n test: (op: Operation) => boolean,\n left: ApolloLink | RequestHandler,\n right?: ApolloLink | RequestHandler,\n ): ApolloLink {\n return this.concat(\n ApolloLink.split(test, left, right || new ApolloLink(passthrough))\n );\n }\n\n public concat(next: ApolloLink | RequestHandler): ApolloLink {\n return ApolloLink.concat(this, next);\n }\n\n public request(\n operation: Operation,\n forward?: NextLink,\n ): Observable<FetchResult> | null {\n throw newInvariantError('request is not implemented');\n }\n\n protected onError(\n error: any,\n observer?: Observer<FetchResult>,\n ): false | void {\n if (observer && observer.error) {\n observer.error(error);\n // Returning false indicates that observer.error does not need to be\n // called again, since it was already called (on the previous line).\n // Calling observer.error again would not cause any real problems,\n // since only the first call matters, but custom onError functions\n // might have other reasons for wanting to prevent the default\n // behavior by returning false.\n return false;\n }\n // Throw errors will be passed to observer.error.\n throw error;\n }\n\n public setOnError(fn: ApolloLink[\"onError\"]): this {\n this.onError = fn;\n return this;\n }\n}\n"]}
1
+ {"version":3,"file":"ApolloLink.js","sourceRoot":"","sources":["../../../src/link/core/ApolloLink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGhF,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAQtD,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAE3B,SAAS,WAAW,CAAC,EAAa,EAAE,OAAiB;IACnD,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,EAAE,CAA4B,CAAC;AAC9E,CAAC;AAED,SAAS,MAAM,CAAC,OAAoC;IAClD,OAAO,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;AAC3E,CAAC;AAED,SAAS,aAAa,CAAC,IAAgB;IACrC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,CAAC;AAClC,CAAC;AAED;IAgFE,oBAAY,OAAwB;QAClC,IAAI,OAAO;YAAE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACtC,CAAC;IAjFa,gBAAK,GAAnB;QACE,OAAO,IAAI,UAAU,CAAC,cAAM,OAAA,UAAU,CAAC,EAAE,EAAE,EAAf,CAAe,CAAC,CAAC;IAC/C,CAAC;IAEa,eAAI,GAAlB,UAAmB,KAAsC;QACvD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,UAAU,CAAC,KAAK,EAAE,CAA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EM,2BAAM,GAAb,UAAc,IAAiC;QAC7C,OAAO,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACvC,CAAC;IAEM,4BAAO,GAAd,UACE,SAAoB,EACpB,OAAkB;QAElB,MAAM,iBAAiB,CAAC,4BAA4B,CAAC,CAAC;IACxD,CAAC;IAES,4BAAO,GAAjB,UACE,KAAU,EACV,QAAgC;QAEhC,IAAI,QAAQ,IAAI,QAAQ,CAAC,KAAK,EAAE;YAC9B,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAOtB,OAAO,KAAK,CAAC;SACd;QAED,MAAM,KAAK,CAAC;IACd,CAAC;IAEM,+BAAU,GAAjB,UAAkB,EAAyB;QACzC,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC;IACd,CAAC;IACH,iBAAC;AAAD,CAAC,AA/HD,IA+HC","sourcesContent":["import { newInvariantError, invariant } from '../../utilities/globals/index.js';\n\nimport type { Observer } from '../../utilities/index.js';\nimport { Observable } from '../../utilities/index.js';\nimport type {\n NextLink,\n Operation,\n RequestHandler,\n FetchResult,\n GraphQLRequest\n} from './types.js';\nimport {\n validateOperation,\n createOperation,\n transformOperation,\n} from '../utils/index.js';\n\nfunction passthrough(op: Operation, forward: NextLink) {\n return (forward ? forward(op) : Observable.of()) as Observable<FetchResult>;\n}\n\nfunction toLink(handler: RequestHandler | ApolloLink) {\n return typeof handler === 'function' ? new ApolloLink(handler) : handler;\n}\n\nfunction isTerminating(link: ApolloLink): boolean {\n return link.request.length <= 1;\n}\n\nexport class ApolloLink {\n public static empty(): ApolloLink {\n return new ApolloLink(() => Observable.of());\n }\n\n public static from(links: (ApolloLink | RequestHandler)[]): ApolloLink {\n if (links.length === 0) return ApolloLink.empty();\n return links.map(toLink).reduce((x, y) => x.concat(y)) as ApolloLink;\n }\n\n public static split(\n test: (op: Operation) => boolean,\n left: ApolloLink | RequestHandler,\n right?: ApolloLink | RequestHandler,\n ): ApolloLink {\n const leftLink = toLink(left);\n const rightLink = toLink(right || new ApolloLink(passthrough));\n\n if (isTerminating(leftLink) && isTerminating(rightLink)) {\n return new ApolloLink(operation => {\n return test(operation)\n ? leftLink.request(operation) || Observable.of()\n : rightLink.request(operation) || Observable.of();\n });\n } else {\n return new ApolloLink((operation, forward) => {\n return test(operation)\n ? leftLink.request(operation, forward) || Observable.of()\n : rightLink.request(operation, forward) || Observable.of();\n });\n }\n }\n\n public static execute(\n link: ApolloLink,\n operation: GraphQLRequest,\n ): Observable<FetchResult> {\n return (\n link.request(\n createOperation(\n operation.context,\n transformOperation(validateOperation(operation)),\n ),\n ) || Observable.of()\n );\n }\n\n public static concat(\n first: ApolloLink | RequestHandler,\n second: ApolloLink | RequestHandler,\n ) {\n const firstLink = toLink(first);\n if (isTerminating(firstLink)) {\n invariant.warn(\n `You are calling concat on a terminating link, which will have no effect %o`,\n firstLink,\n );\n return firstLink;\n }\n const nextLink = toLink(second);\n\n if (isTerminating(nextLink)) {\n return new ApolloLink(\n operation =>\n firstLink.request(\n operation,\n op => nextLink.request(op) || Observable.of(),\n ) || Observable.of(),\n );\n } else {\n return new ApolloLink((operation, forward) => {\n return (\n firstLink.request(operation, op => {\n return nextLink.request(op, forward) || Observable.of();\n }) || Observable.of()\n );\n });\n }\n }\n\n constructor(request?: RequestHandler) {\n if (request) this.request = request;\n }\n\n public split(\n test: (op: Operation) => boolean,\n left: ApolloLink | RequestHandler,\n right?: ApolloLink | RequestHandler,\n ): ApolloLink {\n return this.concat(\n ApolloLink.split(test, left, right || new ApolloLink(passthrough))\n );\n }\n\n public concat(next: ApolloLink | RequestHandler): ApolloLink {\n return ApolloLink.concat(this, next);\n }\n\n public request(\n operation: Operation,\n forward?: NextLink,\n ): Observable<FetchResult> | null {\n throw newInvariantError('request is not implemented');\n }\n\n protected onError(\n error: any,\n observer?: Observer<FetchResult>,\n ): false | void {\n if (observer && observer.error) {\n observer.error(error);\n // Returning false indicates that observer.error does not need to be\n // called again, since it was already called (on the previous line).\n // Calling observer.error again would not cause any real problems,\n // since only the first call matters, but custom onError functions\n // might have other reasons for wanting to prevent the default\n // behavior by returning false.\n return false;\n }\n // Throw errors will be passed to observer.error.\n throw error;\n }\n\n public setOnError(fn: ApolloLink[\"onError\"]): this {\n this.onError = fn;\n return this;\n }\n}\n"]}
@@ -1,3 +1,3 @@
1
- import { ApolloLink } from './ApolloLink';
1
+ import { ApolloLink } from './ApolloLink.js';
2
2
  export declare const concat: typeof ApolloLink.concat;
3
3
  //# sourceMappingURL=concat.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../src/link/core/concat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,eAAO,MAAM,MAAM,0BAAoB,CAAC"}
1
+ {"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../src/link/core/concat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,eAAO,MAAM,MAAM,0BAAoB,CAAC"}
@@ -1,3 +1,3 @@
1
- import { ApolloLink } from "./ApolloLink.js";
1
+ import { ApolloLink } from './ApolloLink.js';
2
2
  export var concat = ApolloLink.concat;
3
3
  //# sourceMappingURL=concat.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"concat.js","sourceRoot":"","sources":["../../../src/link/core/concat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,IAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC","sourcesContent":["import { ApolloLink } from './ApolloLink';\n\nexport const concat = ApolloLink.concat;\n"]}
1
+ {"version":3,"file":"concat.js","sourceRoot":"","sources":["../../../src/link/core/concat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,CAAC,IAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC","sourcesContent":["import { ApolloLink } from './ApolloLink.js';\n\nexport const concat = ApolloLink.concat;\n"]}
@@ -52,7 +52,7 @@ var ApolloLink = (function () {
52
52
  ApolloLink.concat = function (first, second) {
53
53
  var firstLink = toLink(first);
54
54
  if (isTerminating(firstLink)) {
55
- globals.__DEV__ && globals.invariant.warn(34, firstLink);
55
+ globalThis.__DEV__ !== false && globals.invariant.warn(33, firstLink);
56
56
  return firstLink;
57
57
  }
58
58
  var nextLink = toLink(second);
@@ -76,7 +76,7 @@ var ApolloLink = (function () {
76
76
  return ApolloLink.concat(this, next);
77
77
  };
78
78
  ApolloLink.prototype.request = function (operation, forward) {
79
- throw globals.newInvariantError(35);
79
+ throw globals.newInvariantError(34);
80
80
  };
81
81
  ApolloLink.prototype.onError = function (error, observer) {
82
82
  if (observer && observer.error) {
@@ -1 +1 @@
1
- {"version":3,"file":"core.cjs","sources":["ApolloLink.js","empty.js","from.js","split.js","concat.js","execute.js"],"sourcesContent":["import { newInvariantError, invariant, __DEV__ } from '../../utilities/globals';\nimport { Observable } from '../../utilities';\nimport { validateOperation, createOperation, transformOperation, } from '../utils';\nfunction passthrough(op, forward) {\n return (forward ? forward(op) : Observable.of());\n}\nfunction toLink(handler) {\n return typeof handler === 'function' ? new ApolloLink(handler) : handler;\n}\nfunction isTerminating(link) {\n return link.request.length <= 1;\n}\nvar ApolloLink = (function () {\n function ApolloLink(request) {\n if (request)\n this.request = request;\n }\n ApolloLink.empty = function () {\n return new ApolloLink(function () { return Observable.of(); });\n };\n ApolloLink.from = function (links) {\n if (links.length === 0)\n return ApolloLink.empty();\n return links.map(toLink).reduce(function (x, y) { return x.concat(y); });\n };\n ApolloLink.split = function (test, left, right) {\n var leftLink = toLink(left);\n var rightLink = toLink(right || new ApolloLink(passthrough));\n if (isTerminating(leftLink) && isTerminating(rightLink)) {\n return new ApolloLink(function (operation) {\n return test(operation)\n ? leftLink.request(operation) || Observable.of()\n : rightLink.request(operation) || Observable.of();\n });\n }\n else {\n return new ApolloLink(function (operation, forward) {\n return test(operation)\n ? leftLink.request(operation, forward) || Observable.of()\n : rightLink.request(operation, forward) || Observable.of();\n });\n }\n };\n ApolloLink.execute = function (link, operation) {\n return (link.request(createOperation(operation.context, transformOperation(validateOperation(operation)))) || Observable.of());\n };\n ApolloLink.concat = function (first, second) {\n var firstLink = toLink(first);\n if (isTerminating(firstLink)) {\n __DEV__ && invariant.warn(34, firstLink);\n return firstLink;\n }\n var nextLink = toLink(second);\n if (isTerminating(nextLink)) {\n return new ApolloLink(function (operation) {\n return firstLink.request(operation, function (op) { return nextLink.request(op) || Observable.of(); }) || Observable.of();\n });\n }\n else {\n return new ApolloLink(function (operation, forward) {\n return (firstLink.request(operation, function (op) {\n return nextLink.request(op, forward) || Observable.of();\n }) || Observable.of());\n });\n }\n };\n ApolloLink.prototype.split = function (test, left, right) {\n return this.concat(ApolloLink.split(test, left, right || new ApolloLink(passthrough)));\n };\n ApolloLink.prototype.concat = function (next) {\n return ApolloLink.concat(this, next);\n };\n ApolloLink.prototype.request = function (operation, forward) {\n throw newInvariantError(35);\n };\n ApolloLink.prototype.onError = function (error, observer) {\n if (observer && observer.error) {\n observer.error(error);\n return false;\n }\n throw error;\n };\n ApolloLink.prototype.setOnError = function (fn) {\n this.onError = fn;\n return this;\n };\n return ApolloLink;\n}());\nexport { ApolloLink };\n//# sourceMappingURL=ApolloLink.js.map","import { ApolloLink } from './ApolloLink';\nexport var empty = ApolloLink.empty;\n//# sourceMappingURL=empty.js.map","import { ApolloLink } from './ApolloLink';\nexport var from = ApolloLink.from;\n//# sourceMappingURL=from.js.map","import { ApolloLink } from './ApolloLink';\nexport var split = ApolloLink.split;\n//# sourceMappingURL=split.js.map","import { ApolloLink } from './ApolloLink';\nexport var concat = ApolloLink.concat;\n//# sourceMappingURL=concat.js.map","import { ApolloLink } from './ApolloLink';\nexport var execute = ApolloLink.execute;\n//# sourceMappingURL=execute.js.map"],"names":["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AAC,WAAW,CAAC,CAAC,CAAC,CAAC;AAC/F,KAAK,CAAC;AACN,IAAI,UAAU,CAAC,SAAS,CAAC,MAAM,GAAG,UAAU,IAAI,EAAE;AAClD,QAAQ,OAAO,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC7C,KAAK,CAAC;AACN,IAAI,UAAU,CAAC,SAAS,CAAC,OAAO,GAAG,UAAU,SAAS,EAAE,OAAO,EAAE;AACjE,QAAQ,MAAMM,yBAAiB,CAAC,EAAE,CAAC,CAAC;AACpC,KAAK,CAAC;AACN,IAAI,UAAU,CAAC,SAAS,CAAC,OAAO,GAAG,UAAU,KAAK,EAAE,QAAQ,EAAE;AAC9D,QAAQ,IAAI,QAAQ,IAAI,QAAQ,CAAC,KAAK,EAAE;AACxC,YAAY,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAClC,YAAY,OAAO,KAAK,CAAC;AACzB,SAAS;AACT,QAAQ,MAAM,KAAK,CAAC;AACpB,KAAK,CAAC;AACN,IAAI,UAAU,CAAC,SAAS,CAAC,UAAU,GAAG,UAAU,EAAE,EAAE;AACpD,QAAQ,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;AAC1B,QAAQ,OAAO,IAAI,CAAC;AACpB,KAAK,CAAC;AACN,IAAI,OAAO,UAAU,CAAC;AACtB,CAAC,EAAE;;ACtFO,IAAC,KAAK,GAAG,UAAU,CAAC;;ACApB,IAAC,IAAI,GAAG,UAAU,CAAC;;ACAnB,IAAC,KAAK,GAAG,UAAU,CAAC;;ACApB,IAAC,MAAM,GAAG,UAAU,CAAC;;ACArB,IAAC,OAAO,GAAG,UAAU,CAAC;;;;;;;;;"}
1
+ {"version":3,"file":"core.cjs","sources":["ApolloLink.js","empty.js","from.js","split.js","concat.js","execute.js"],"sourcesContent":["import { newInvariantError, invariant } from '../../utilities/globals/index.js';\nimport { Observable } from '../../utilities/index.js';\nimport { validateOperation, createOperation, transformOperation, } from '../utils/index.js';\nfunction passthrough(op, forward) {\n return (forward ? forward(op) : Observable.of());\n}\nfunction toLink(handler) {\n return typeof handler === 'function' ? new ApolloLink(handler) : handler;\n}\nfunction isTerminating(link) {\n return link.request.length <= 1;\n}\nvar ApolloLink = (function () {\n function ApolloLink(request) {\n if (request)\n this.request = request;\n }\n ApolloLink.empty = function () {\n return new ApolloLink(function () { return Observable.of(); });\n };\n ApolloLink.from = function (links) {\n if (links.length === 0)\n return ApolloLink.empty();\n return links.map(toLink).reduce(function (x, y) { return x.concat(y); });\n };\n ApolloLink.split = function (test, left, right) {\n var leftLink = toLink(left);\n var rightLink = toLink(right || new ApolloLink(passthrough));\n if (isTerminating(leftLink) && isTerminating(rightLink)) {\n return new ApolloLink(function (operation) {\n return test(operation)\n ? leftLink.request(operation) || Observable.of()\n : rightLink.request(operation) || Observable.of();\n });\n }\n else {\n return new ApolloLink(function (operation, forward) {\n return test(operation)\n ? leftLink.request(operation, forward) || Observable.of()\n : rightLink.request(operation, forward) || Observable.of();\n });\n }\n };\n ApolloLink.execute = function (link, operation) {\n return (link.request(createOperation(operation.context, transformOperation(validateOperation(operation)))) || Observable.of());\n };\n ApolloLink.concat = function (first, second) {\n var firstLink = toLink(first);\n if (isTerminating(firstLink)) {\n globalThis.__DEV__ !== false && invariant.warn(33, firstLink);\n return firstLink;\n }\n var nextLink = toLink(second);\n if (isTerminating(nextLink)) {\n return new ApolloLink(function (operation) {\n return firstLink.request(operation, function (op) { return nextLink.request(op) || Observable.of(); }) || Observable.of();\n });\n }\n else {\n return new ApolloLink(function (operation, forward) {\n return (firstLink.request(operation, function (op) {\n return nextLink.request(op, forward) || Observable.of();\n }) || Observable.of());\n });\n }\n };\n ApolloLink.prototype.split = function (test, left, right) {\n return this.concat(ApolloLink.split(test, left, right || new ApolloLink(passthrough)));\n };\n ApolloLink.prototype.concat = function (next) {\n return ApolloLink.concat(this, next);\n };\n ApolloLink.prototype.request = function (operation, forward) {\n throw newInvariantError(34);\n };\n ApolloLink.prototype.onError = function (error, observer) {\n if (observer && observer.error) {\n observer.error(error);\n return false;\n }\n throw error;\n };\n ApolloLink.prototype.setOnError = function (fn) {\n this.onError = fn;\n return this;\n };\n return ApolloLink;\n}());\nexport { ApolloLink };\n//# sourceMappingURL=ApolloLink.js.map","import { ApolloLink } from './ApolloLink.js';\nexport var empty = ApolloLink.empty;\n//# sourceMappingURL=empty.js.map","import { ApolloLink } from './ApolloLink.js';\nexport var from = ApolloLink.from;\n//# sourceMappingURL=from.js.map","import { ApolloLink } from './ApolloLink.js';\nexport var split = ApolloLink.split;\n//# sourceMappingURL=split.js.map","import { ApolloLink } from './ApolloLink.js';\nexport var concat = ApolloLink.concat;\n//# sourceMappingURL=concat.js.map","import { ApolloLink } from './ApolloLink.js';\nexport var execute = ApolloLink.execute;\n//# sourceMappingURL=execute.js.map"],"names":["Observable","createOperation","transformOperation","validateOperation","invariant","newInvariantError"],"mappings":";;;;;;;;AAGA,SAAS,WAAW,CAAC,EAAE,EAAE,OAAO,EAAE;AAClC,IAAI,QAAQ,OAAO,GAAG,OAAO,CAAC,EAAE,CAAC,GAAGA,oBAAU,CAAC,EAAE,EAAE,EAAE;AACrD,CAAC;AACD,SAAS,MAAM,CAAC,OAAO,EAAE;AACzB,IAAI,OAAO,OAAO,OAAO,KAAK,UAAU,GAAG,IAAI,UAAU,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;AAC7E,CAAC;AACD,SAAS,aAAa,CAAC,IAAI,EAAE;AAC7B,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,CAAC;AACpC,CAAC;AACE,IAAC,UAAU,IAAI,YAAY;AAC9B,IAAI,SAAS,UAAU,CAAC,OAAO,EAAE;AACjC,QAAQ,IAAI,OAAO;AACnB,YAAY,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACnC,KAAK;AACL,IAAI,UAAU,CAAC,KAAK,GAAG,YAAY;AACnC,QAAQ,OAAO,IAAI,UAAU,CAAC,YAAY,E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U,EAAE,EAAE;AACpD,QAAQ,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;AAC1B,QAAQ,OAAO,IAAI,CAAC;AACpB,KAAK,CAAC;AACN,IAAI,OAAO,UAAU,CAAC;AACtB,CAAC,EAAE;;ACtFO,IAAC,KAAK,GAAG,UAAU,CAAC;;ACApB,IAAC,IAAI,GAAG,UAAU,CAAC;;ACAnB,IAAC,KAAK,GAAG,UAAU,CAAC;;ACApB,IAAC,MAAM,GAAG,UAAU,CAAC;;ACArB,IAAC,OAAO,GAAG,UAAU,CAAC;;;;;;;;;"}
@@ -52,7 +52,7 @@ var ApolloLink = (function () {
52
52
  ApolloLink.concat = function (first, second) {
53
53
  var firstLink = toLink(first);
54
54
  if (isTerminating(firstLink)) {
55
- globals.__DEV__ && globals.invariant.warn(34, firstLink);
55
+ globalThis.__DEV__ !== false && globals.invariant.warn(33, firstLink);
56
56
  return firstLink;
57
57
  }
58
58
  var nextLink = toLink(second);
@@ -76,7 +76,7 @@ var ApolloLink = (function () {
76
76
  return ApolloLink.concat(this, next);
77
77
  };
78
78
  ApolloLink.prototype.request = function (operation, forward) {
79
- throw globals.newInvariantError(35);
79
+ throw globals.newInvariantError(34);
80
80
  };
81
81
  ApolloLink.prototype.onError = function (error, observer) {
82
82
  if (observer && observer.error) {
@@ -1,3 +1,3 @@
1
- import { ApolloLink } from './ApolloLink';
1
+ import { ApolloLink } from './ApolloLink.js';
2
2
  export declare const empty: typeof ApolloLink.empty;
3
3
  //# sourceMappingURL=empty.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["../../../src/link/core/empty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,eAAO,MAAM,KAAK,yBAAmB,CAAC"}
1
+ {"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["../../../src/link/core/empty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,eAAO,MAAM,KAAK,yBAAmB,CAAC"}
@@ -1,3 +1,3 @@
1
- import { ApolloLink } from "./ApolloLink.js";
1
+ import { ApolloLink } from './ApolloLink.js';
2
2
  export var empty = ApolloLink.empty;
3
3
  //# sourceMappingURL=empty.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"empty.js","sourceRoot":"","sources":["../../../src/link/core/empty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,IAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC","sourcesContent":["import { ApolloLink } from './ApolloLink';\n\nexport const empty = ApolloLink.empty;\n"]}
1
+ {"version":3,"file":"empty.js","sourceRoot":"","sources":["../../../src/link/core/empty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,CAAC,IAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC","sourcesContent":["import { ApolloLink } from './ApolloLink.js';\n\nexport const empty = ApolloLink.empty;\n"]}
@@ -1,3 +1,3 @@
1
- import { ApolloLink } from './ApolloLink';
1
+ import { ApolloLink } from './ApolloLink.js';
2
2
  export declare const execute: typeof ApolloLink.execute;
3
3
  //# sourceMappingURL=execute.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../src/link/core/execute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,eAAO,MAAM,OAAO,2BAAqB,CAAC"}
1
+ {"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../src/link/core/execute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,eAAO,MAAM,OAAO,2BAAqB,CAAC"}
@@ -1,3 +1,3 @@
1
- import { ApolloLink } from "./ApolloLink.js";
1
+ import { ApolloLink } from './ApolloLink.js';
2
2
  export var execute = ApolloLink.execute;
3
3
  //# sourceMappingURL=execute.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../src/link/core/execute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,IAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC","sourcesContent":["import { ApolloLink } from './ApolloLink';\n\nexport const execute = ApolloLink.execute;\n"]}
1
+ {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../src/link/core/execute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,CAAC,IAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC","sourcesContent":["import { ApolloLink } from './ApolloLink.js';\n\nexport const execute = ApolloLink.execute;\n"]}
@@ -1,3 +1,3 @@
1
- import { ApolloLink } from './ApolloLink';
1
+ import { ApolloLink } from './ApolloLink.js';
2
2
  export declare const from: typeof ApolloLink.from;
3
3
  //# sourceMappingURL=from.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"from.d.ts","sourceRoot":"","sources":["../../../src/link/core/from.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,eAAO,MAAM,IAAI,wBAAkB,CAAC"}
1
+ {"version":3,"file":"from.d.ts","sourceRoot":"","sources":["../../../src/link/core/from.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,eAAO,MAAM,IAAI,wBAAkB,CAAC"}
package/link/core/from.js CHANGED
@@ -1,3 +1,3 @@
1
- import { ApolloLink } from "./ApolloLink.js";
1
+ import { ApolloLink } from './ApolloLink.js';
2
2
  export var from = ApolloLink.from;
3
3
  //# sourceMappingURL=from.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"from.js","sourceRoot":"","sources":["../../../src/link/core/from.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,IAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC","sourcesContent":["import { ApolloLink } from './ApolloLink';\n\nexport const from = ApolloLink.from;\n"]}
1
+ {"version":3,"file":"from.js","sourceRoot":"","sources":["../../../src/link/core/from.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,CAAC,IAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC","sourcesContent":["import { ApolloLink } from './ApolloLink.js';\n\nexport const from = ApolloLink.from;\n"]}
@@ -1,9 +1,9 @@
1
- import '../../utilities/globals';
2
- export { empty } from './empty';
3
- export { from } from './from';
4
- export { split } from './split';
5
- export { concat } from './concat';
6
- export { execute } from './execute';
7
- export { ApolloLink } from './ApolloLink';
8
- export * from './types';
1
+ import '../../utilities/globals/index.js';
2
+ export { empty } from './empty.js';
3
+ export { from } from './from.js';
4
+ export { split } from './split.js';
5
+ export { concat } from './concat.js';
6
+ export { execute } from './execute.js';
7
+ export { ApolloLink } from './ApolloLink.js';
8
+ export * from './types.js';
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/link/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AAEjC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/link/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAE1C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,cAAc,YAAY,CAAC"}
@@ -1,9 +1,9 @@
1
- import "../../utilities/globals/index.js";
2
- export { empty } from "./empty.js";
3
- export { from } from "./from.js";
4
- export { split } from "./split.js";
5
- export { concat } from "./concat.js";
6
- export { execute } from "./execute.js";
7
- export { ApolloLink } from "./ApolloLink.js";
8
- export * from "./types.js";
1
+ import '../../utilities/globals/index.js';
2
+ export { empty } from './empty.js';
3
+ export { from } from './from.js';
4
+ export { split } from './split.js';
5
+ export { concat } from './concat.js';
6
+ export { execute } from './execute.js';
7
+ export { ApolloLink } from './ApolloLink.js';
8
+ export * from './types.js';
9
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/link/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AAEjC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,cAAc,SAAS,CAAC","sourcesContent":["import '../../utilities/globals';\n\nexport { empty } from './empty';\nexport { from } from './from';\nexport { split } from './split';\nexport { concat } from './concat';\nexport { execute } from './execute';\nexport { ApolloLink } from './ApolloLink';\n\nexport * from './types';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/link/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAE1C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,cAAc,YAAY,CAAC","sourcesContent":["import '../../utilities/globals/index.js';\n\nexport { empty } from './empty.js';\nexport { from } from './from.js';\nexport { split } from './split.js';\nexport { concat } from './concat.js';\nexport { execute } from './execute.js';\nexport { ApolloLink } from './ApolloLink.js';\n\nexport * from './types.js';\n"]}
@@ -1,3 +1,3 @@
1
- import { ApolloLink } from './ApolloLink';
1
+ import { ApolloLink } from './ApolloLink.js';
2
2
  export declare const split: typeof ApolloLink.split;
3
3
  //# sourceMappingURL=split.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"split.d.ts","sourceRoot":"","sources":["../../../src/link/core/split.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,eAAO,MAAM,KAAK,yBAAmB,CAAC"}
1
+ {"version":3,"file":"split.d.ts","sourceRoot":"","sources":["../../../src/link/core/split.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,eAAO,MAAM,KAAK,yBAAmB,CAAC"}
@@ -1,3 +1,3 @@
1
- import { ApolloLink } from "./ApolloLink.js";
1
+ import { ApolloLink } from './ApolloLink.js';
2
2
  export var split = ApolloLink.split;
3
3
  //# sourceMappingURL=split.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"split.js","sourceRoot":"","sources":["../../../src/link/core/split.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,IAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC","sourcesContent":["import { ApolloLink } from './ApolloLink';\n\nexport const split = ApolloLink.split;\n"]}
1
+ {"version":3,"file":"split.js","sourceRoot":"","sources":["../../../src/link/core/split.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,CAAC,IAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC","sourcesContent":["import { ApolloLink } from './ApolloLink.js';\n\nexport const split = ApolloLink.split;\n"]}
@@ -1,8 +1,8 @@
1
1
  import type { ExecutionResult, GraphQLError } from "graphql";
2
2
  import { DocumentNode } from "graphql";
3
- import type { DefaultContext } from "../../core";
3
+ import type { DefaultContext } from "../../core/index.js";
4
4
  export { DocumentNode };
5
- import type { Observable } from "../../utilities";
5
+ import type { Observable } from "../../utilities/index.js";
6
6
  export type Path = ReadonlyArray<string | number>;
7
7
  interface ExecutionPatchResultBase {
8
8
  hasNext?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/link/core/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AA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C,SAAS,EAAE,SAAS,KAAK,UAAU,CAAC,WAAW,CAAC,CAAC;AAEzE,MAAM,MAAM,cAAc,GAAG,CAC3B,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,QAAQ,KACd,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/link/core/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ExecutionResult, GraphQLError } from \"graphql\";\nimport { DocumentNode } from \"graphql\";\nimport type { DefaultContext } from \"../../core\";\nexport { DocumentNode };\n\nimport type { Observable } from \"../../utilities\";\n\nexport type Path = ReadonlyArray<string | number>;\n\ninterface ExecutionPatchResultBase {\n hasNext?: boolean;\n}\n\nexport interface ExecutionPatchInitialResult<\n TData = Record<string, any>,\n TExtensions = Record<string, any>\n> extends ExecutionPatchResultBase {\n // if data is present, incremental is not\n data: TData | null | undefined;\n incremental?: never;\n errors?: ReadonlyArray<GraphQLError>;\n extensions?: TExtensions;\n}\n\nexport interface IncrementalPayload<TData, TExtensions> {\n // data and path must both be present\n // https://github.com/graphql/graphql-spec/pull/742/files#diff-98d0cd153b72b63c417ad4238e8cc0d3385691ccbde7f7674bc0d2a718b896ecR288-R293\n data: TData | null;\n label?: string;\n path: Path;\n errors?: ReadonlyArray<GraphQLError>;\n extensions?: TExtensions;\n}\n\nexport interface ExecutionPatchIncrementalResult<\n TData = Record<string, any>,\n TExtensions = Record<string, any>\n> extends ExecutionPatchResultBase {\n // the reverse is also true: if incremental is present,\n // data (and errors and extensions) are not\n incremental?: IncrementalPayload<TData, TExtensions>[];\n data?: never;\n // Errors only exist for chunks, not at the top level\n // https://github.com/robrichard/defer-stream-wg/discussions/50#discussioncomment-3466739\n errors?: never;\n extensions?: never;\n}\n\nexport interface ApolloPayloadResult<\n TData = Record<string, any>,\n TExtensions = Record<string, any>\n> {\n payload: SingleExecutionResult | ExecutionPatchResult | null;\n // Transport layer errors (as distinct from GraphQL or NetworkErrors),\n // these are fatal errors that will include done: true.\n errors?: ReadonlyArray<Error | string>;\n}\n\nexport type ExecutionPatchResult<\n TData = Record<string, any>,\n TExtensions = Record<string, any>\n> =\n | ExecutionPatchInitialResult<TData, TExtensions>\n | ExecutionPatchIncrementalResult<TData, TExtensions>;\n\nexport interface GraphQLRequest<TVariables = Record<string, any>> {\n query: DocumentNode;\n variables?: TVariables;\n operationName?: string;\n context?: DefaultContext;\n extensions?: Record<string, any>;\n}\n\nexport interface Operation {\n query: DocumentNode;\n variables: Record<string, any>;\n operationName: string;\n extensions: Record<string, any>;\n setContext: (context: DefaultContext) => DefaultContext;\n getContext: () => DefaultContext;\n}\n\nexport interface SingleExecutionResult<\n TData = Record<string, any>,\n TContext = DefaultContext,\n TExtensions = Record<string, any>\n> extends ExecutionResult<TData, TExtensions> {\n data?: TData | null;\n context?: TContext;\n}\n\nexport type FetchResult<\n TData = Record<string, any>,\n TContext = Record<string, any>,\n TExtensions = Record<string, any>\n> =\n | SingleExecutionResult<TData, TContext, TExtensions>\n | ExecutionPatchResult<TData, TExtensions>;\n\nexport type NextLink = (operation: Operation) => Observable<FetchResult>;\n\nexport type RequestHandler = (\n operation: Operation,\n forward: NextLink\n) => Observable<FetchResult> | null;\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/link/core/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ExecutionResult, GraphQLError } from \"graphql\";\nimport { DocumentNode } from \"graphql\";\nimport type { DefaultContext } from \"../../core/index.js\";\nexport { DocumentNode };\n\nimport type { Observable } from \"../../utilities/index.js\";\n\nexport type Path = ReadonlyArray<string | number>;\n\ninterface ExecutionPatchResultBase {\n hasNext?: boolean;\n}\n\nexport interface ExecutionPatchInitialResult<\n TData = Record<string, any>,\n TExtensions = Record<string, any>\n> extends ExecutionPatchResultBase {\n // if data is present, incremental is not\n data: TData | null | undefined;\n incremental?: never;\n errors?: ReadonlyArray<GraphQLError>;\n extensions?: TExtensions;\n}\n\nexport interface IncrementalPayload<TData, TExtensions> {\n // data and path must both be present\n // https://github.com/graphql/graphql-spec/pull/742/files#diff-98d0cd153b72b63c417ad4238e8cc0d3385691ccbde7f7674bc0d2a718b896ecR288-R293\n data: TData | null;\n label?: string;\n path: Path;\n errors?: ReadonlyArray<GraphQLError>;\n extensions?: TExtensions;\n}\n\nexport interface ExecutionPatchIncrementalResult<\n TData = Record<string, any>,\n TExtensions = Record<string, any>\n> extends ExecutionPatchResultBase {\n // the reverse is also true: if incremental is present,\n // data (and errors and extensions) are not\n incremental?: IncrementalPayload<TData, TExtensions>[];\n data?: never;\n // Errors only exist for chunks, not at the top level\n // https://github.com/robrichard/defer-stream-wg/discussions/50#discussioncomment-3466739\n errors?: never;\n extensions?: never;\n}\n\nexport interface ApolloPayloadResult<\n TData = Record<string, any>,\n TExtensions = Record<string, any>\n> {\n payload: SingleExecutionResult | ExecutionPatchResult | null;\n // Transport layer errors (as distinct from GraphQL or NetworkErrors),\n // these are fatal errors that will include done: true.\n errors?: ReadonlyArray<Error | string>;\n}\n\nexport type ExecutionPatchResult<\n TData = Record<string, any>,\n TExtensions = Record<string, any>\n> =\n | ExecutionPatchInitialResult<TData, TExtensions>\n | ExecutionPatchIncrementalResult<TData, TExtensions>;\n\nexport interface GraphQLRequest<TVariables = Record<string, any>> {\n query: DocumentNode;\n variables?: TVariables;\n operationName?: string;\n context?: DefaultContext;\n extensions?: Record<string, any>;\n}\n\nexport interface Operation {\n query: DocumentNode;\n variables: Record<string, any>;\n operationName: string;\n extensions: Record<string, any>;\n setContext: (context: DefaultContext) => DefaultContext;\n getContext: () => DefaultContext;\n}\n\nexport interface SingleExecutionResult<\n TData = Record<string, any>,\n TContext = DefaultContext,\n TExtensions = Record<string, any>\n> extends ExecutionResult<TData, TExtensions> {\n data?: TData | null;\n context?: TContext;\n}\n\nexport type FetchResult<\n TData = Record<string, any>,\n TContext = Record<string, any>,\n TExtensions = Record<string, any>\n> =\n | SingleExecutionResult<TData, TContext, TExtensions>\n | ExecutionPatchResult<TData, TExtensions>;\n\nexport type NextLink = (operation: Operation) => Observable<FetchResult>;\n\nexport type RequestHandler = (\n operation: Operation,\n forward: NextLink\n) => Observable<FetchResult> | null;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"error.cjs","sources":["index.js"],"sourcesContent":["import { __extends } from \"tslib\";\nimport { Observable } from '../../utilities';\nimport { ApolloLink } from '../core';\nexport function onError(errorHandler) {\n return new ApolloLink(function (operation, forward) {\n return new Observable(function (observer) {\n var sub;\n var retriedSub;\n var retriedResult;\n try {\n sub = forward(operation).subscribe({\n next: function (result) {\n if (result.errors) {\n retriedResult = errorHandler({\n graphQLErrors: result.errors,\n response: result,\n operation: operation,\n forward: forward,\n });\n if (retriedResult) {\n retriedSub = retriedResult.subscribe({\n next: observer.next.bind(observer),\n error: observer.error.bind(observer),\n complete: observer.complete.bind(observer),\n });\n return;\n }\n }\n observer.next(result);\n },\n error: function (networkError) {\n retriedResult = errorHandler({\n operation: operation,\n networkError: networkError,\n graphQLErrors: networkError &&\n networkError.result &&\n networkError.result.errors,\n forward: forward,\n });\n if (retriedResult) {\n retriedSub = retriedResult.subscribe({\n next: observer.next.bind(observer),\n error: observer.error.bind(observer),\n complete: observer.complete.bind(observer),\n });\n return;\n }\n observer.error(networkError);\n },\n complete: function () {\n if (!retriedResult) {\n observer.complete.bind(observer)();\n }\n },\n });\n }\n catch (e) {\n errorHandler({ networkError: e, operation: operation, forward: forward });\n observer.error(e);\n }\n return function () {\n if (sub)\n sub.unsubscribe();\n if (retriedSub)\n sub.unsubscribe();\n };\n });\n });\n}\nvar ErrorLink = (function (_super) {\n __extends(ErrorLink, _super);\n function ErrorLink(errorHandler) {\n var _this = _super.call(this) || this;\n _this.link = onError(errorHandler);\n return _this;\n }\n ErrorLink.prototype.request = function (operation, forward) {\n return this.link.request(operation, forward);\n };\n return ErrorLink;\n}(ApolloLink));\nexport { ErrorLink };\n//# sourceMappingURL=index.js.map"],"names":["Apollo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IAAI,UAAU;AAC9B,oBAAoB,GAAG,CAAC,WAAW,EAAE,CAAC;AACtC,aAAa,CAAC;AACd,SAAS,CAAC,CAAC;AACX,KAAK,CAAC,CAAC;AACP,CAAC;AACE,IAAC,SAAS,IAAI,UAAU,MAAM,EAAE;AACnC,IAAIC,eAAS,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AACjC,IAAI,SAAS,SAAS,CAAC,YAAY,EAAE;AACrC,QAAQ,IAAI,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC;AAC9C,QAAQ,KAAK,CAAC,IAAI,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAC3C,QAAQ,OAAO,KAAK,CAAC;AACrB,KAAK;AACL,IAAI,SAAS,CAAC,SAAS,CAAC,OAAO,GAAG,UAAU,SAAS,EAAE,OAAO,EAAE;AAChE,QAAQ,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AACrD,KAAK,CAAC;AACN,IAAI,OAAO,SAAS,CAAC;AACrB,CAAC,CAACF,eAAU,CAAC;;;;;"}
1
+ {"version":3,"file":"error.cjs","sources":["index.js"],"sourcesContent":["import { __extends } from \"tslib\";\nimport { Observable } from '../../utilities/index.js';\nimport { ApolloLink } from '../core/index.js';\nexport function onError(errorHandler) {\n return new ApolloLink(function (operation, forward) {\n return new Observable(function (observer) {\n var sub;\n var retriedSub;\n var retriedResult;\n try {\n sub = forward(operation).subscribe({\n next: function (result) {\n if (result.errors) {\n retriedResult = errorHandler({\n graphQLErrors: result.errors,\n response: result,\n operation: operation,\n forward: forward,\n });\n if (retriedResult) {\n retriedSub = retriedResult.subscribe({\n next: observer.next.bind(observer),\n error: observer.error.bind(observer),\n complete: observer.complete.bind(observer),\n });\n return;\n }\n }\n observer.next(result);\n },\n error: function (networkError) {\n retriedResult = errorHandler({\n operation: operation,\n networkError: networkError,\n graphQLErrors: networkError &&\n networkError.result &&\n networkError.result.errors,\n forward: forward,\n });\n if (retriedResult) {\n retriedSub = retriedResult.subscribe({\n next: observer.next.bind(observer),\n error: observer.error.bind(observer),\n complete: observer.complete.bind(observer),\n });\n return;\n }\n observer.error(networkError);\n },\n complete: function () {\n if (!retriedResult) {\n observer.complete.bind(observer)();\n }\n },\n });\n }\n catch (e) {\n errorHandler({ networkError: e, operation: operation, forward: forward });\n observer.error(e);\n }\n return function () {\n if (sub)\n sub.unsubscribe();\n if (retriedSub)\n sub.unsubscribe();\n };\n });\n });\n}\nvar ErrorLink = (function (_super) {\n __extends(ErrorLink, _super);\n function ErrorLink(errorHandler) {\n var _this = _super.call(this) || this;\n _this.link = onError(errorHandler);\n return _this;\n }\n ErrorLink.prototype.request = function (operation, forward) {\n return this.link.request(operation, forward);\n };\n return ErrorLink;\n}(ApolloLink));\nexport { ErrorLink };\n//# sourceMappingURL=index.js.map"],"names":["ApolloLink","Observable","__extends"],"mappings":";;;;;;;;AAGO,SAAS,OAAO,CAAC,YAAY,EAAE;AACtC,IAAI,OAAO,IAAIA,eAAU,CAAC,UAAU,SAAS,EAAE,OAAO,EAAE;AACxD,QAAQ,OAAO,IAAIC,oBAAU,CAAC,UAAU,QAAQ,EAAE;AAClD,YAAY,IAAI,GAAG,CAAC;AACpB,YAAY,IAAI,UAAU,CAAC;AAC3B,YAAY,IAAI,aAAa,CAAC;AAC9B,YAAY,IAAI;AAChB,gBAAgB,GAAG,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC;AACnD,oBAAoB,IAAI,EAAE,UAAU,MAAM,EAAE;AAC5C,wBAAwB,IAAI,MAAM,CAAC,MAAM,EAAE;AAC3C,4BAA4B,aAAa,GAAG,YAAY,CAAC;AACzD,gCAAgC,aAAa,EAAE,MAAM,CAAC,MAAM;AAC5D,gCAAgC,QAAQ,EAAE,MAAM;AAChD,gCAAgC,SAAS,EAAE,SAAS;AACpD,gCAAgC,OAAO,EAAE,OAAO;AAChD,6BAA6B,CAA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O,SAAS,CAAC;AACrB,CAAC,CAACF,eAAU,CAAC;;;;;"}
@@ -1,8 +1,8 @@
1
1
  import type { ExecutionResult } from 'graphql';
2
- import type { NetworkError, GraphQLErrors } from '../../errors';
3
- import { Observable } from '../../utilities';
4
- import type { Operation, FetchResult, NextLink } from '../core';
5
- import { ApolloLink } from '../core';
2
+ import type { NetworkError, GraphQLErrors } from '../../errors/index.js';
3
+ import { Observable } from '../../utilities/index.js';
4
+ import type { Operation, FetchResult, NextLink } from '../core/index.js';
5
+ import { ApolloLink } from '../core/index.js';
6
6
  export interface ErrorResponse {
7
7
  graphQLErrors?: GraphQLErrors;
8
8
  networkError?: NetworkError;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/link/error/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,WAAW,aAAa;IAC5B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,QAAQ,CAAC;CACnB;AAED,yBAAiB,SAAS,CAAC;IAIzB,UAAiB,YAAY;QAC3B,CAAC,KAAK,EAAE,aAAa,GAAG,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;KACxD;CACF;AAGD,MAAM,QAAQ,YAAY,GAAG,SAAS,CAAC,YAAY,CAAC;AAEpD,wBAAgB,OAAO,CAAC,YAAY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AO,EAAE,QAAQ,GAChB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI;CAGlC"}
@@ -1,6 +1,6 @@
1
1
  import { __extends } from "tslib";
2
- import { Observable } from "../../utilities/index.js";
3
- import { ApolloLink } from "../core/index.js";
2
+ import { Observable } from '../../utilities/index.js';
3
+ import { ApolloLink } from '../core/index.js';
4
4
  export function onError(errorHandler) {
5
5
  return new ApolloLink(function (operation, forward) {
6
6
  return new Observable(function (observer) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/link/error/index.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAsBrC,MAAM,UAAU,OAAO,CAAC,YAA0B;IAChD,OAAO,IAAI,UAAU,CAAC,UAAC,SAAS,EAAE,OAAO;QACvC,OAAO,IAAI,UAAU,CAAC,UAAA,QAAQ;YAC5B,IAAI,GAAQ,CAAC;YACb,IAAI,UAAe,CAAC;YACpB,IAAI,aAAkB,CAAC;YAEvB,IAAI;gBACF,GAAG,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC;oBACjC,IAAI,EAAE,UAAA,MAAM;wBACV,IAAI,MAAM,CAAC,MAAM,EAAE;4BACjB,aAAa,GAAG,YAAY,CAAC;gCAC3B,aAAa,EAAE,MAAM,CAAC,MAAM;gCAC5B,QAAQ,EAAE,MAAM;gCAChB,SAAS,WAAA;gCACT,OAAO,SAAA;6BACR,CAAC,CAAC;4BAEH,IAAI,aAAa,EAAE;gCACjB,UAAU,GAAG,aAAa,CAAC,SAAS,CAAC;oCACnC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;oCAClC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;oCACpC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,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AC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAED;IAA+B,6BAAU;IAEvC,mBAAY,YAAoC;QAAhD,YACE,iBAAO,SAER;QADC,KAAI,CAAC,IAAI,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;;IACpC,CAAC;IAEM,2BAAO,GAAd,UACE,SAAoB,EACpB,OAAiB;QAEjB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC/C,CAAC;IACH,gBAAC;AAAD,CAAC,AAbD,CAA+B,UAAU,GAaxC","sourcesContent":["import type { ExecutionResult } from 'graphql';\n\nimport type { NetworkError, GraphQLErrors } from '../../errors';\nimport { Observable } from '../../utilities';\nimport type { Operation, FetchResult, NextLink } from '../core';\nimport { ApolloLink } from '../core';\n\nexport interface ErrorResponse {\n graphQLErrors?: GraphQLErrors;\n networkError?: NetworkError;\n response?: ExecutionResult;\n operation: Operation;\n forward: NextLink;\n}\n\nexport namespace ErrorLink {\n /**\n * Callback to be triggered when an error occurs within the link stack.\n */\n export interface ErrorHandler {\n (error: ErrorResponse): Observable<FetchResult> | void;\n }\n}\n\n// For backwards compatibility.\nexport import ErrorHandler = ErrorLink.ErrorHandler;\n\nexport function onError(errorHandler: ErrorHandler): ApolloLink {\n return new ApolloLink((operation, forward) => {\n return new Observable(observer => {\n let sub: any;\n let retriedSub: any;\n let retriedResult: any;\n\n try {\n sub = forward(operation).subscribe({\n next: result => {\n if (result.errors) {\n retriedResult = errorHandler({\n graphQLErrors: result.errors,\n response: result,\n operation,\n forward,\n });\n\n if (retriedResult) {\n retriedSub = retriedResult.subscribe({\n next: observer.next.bind(observer),\n error: observer.error.bind(observer),\n complete: observer.complete.bind(observer),\n });\n return;\n }\n }\n observer.next(result);\n },\n error: networkError => {\n retriedResult = errorHandler({\n operation,\n networkError,\n //Network errors can return GraphQL errors on for example a 403\n graphQLErrors:\n networkError &&\n networkError.result &&\n networkError.result.errors,\n forward,\n });\n if (retriedResult) {\n retriedSub = retriedResult.subscribe({\n next: observer.next.bind(observer),\n error: observer.error.bind(observer),\n complete: observer.complete.bind(observer),\n });\n return;\n }\n observer.error(networkError);\n },\n complete: () => {\n // disable the previous sub from calling complete on observable\n // if retry is in flight.\n if (!retriedResult) {\n observer.complete.bind(observer)();\n }\n },\n });\n } catch (e) {\n errorHandler({ networkError: e, operation, forward });\n observer.error(e);\n }\n\n return () => {\n if (sub) sub.unsubscribe();\n if (retriedSub) sub.unsubscribe();\n };\n });\n });\n}\n\nexport class ErrorLink extends ApolloLink {\n private link: ApolloLink;\n constructor(errorHandler: ErrorLink.ErrorHandler) {\n super();\n this.link = onError(errorHandler);\n }\n\n public request(\n operation: Operation,\n forward: NextLink,\n ): Observable<FetchResult> | null {\n return this.link.request(operation, forward);\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/link/error/index.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAsB9C,MAAM,UAAU,OAAO,CAAC,YAA0B;IAChD,OAAO,IAAI,UAAU,CAAC,UAAC,SAAS,EAAE,OAAO;QACvC,OAAO,IAAI,UAAU,CAAC,UAAA,QAAQ;YAC5B,IAAI,GAAQ,CAAC;YACb,IAAI,UAAe,CAAC;YACpB,IAAI,aAAkB,CAAC;YAEvB,IAAI;gBACF,GAAG,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC;oBACjC,IAAI,EAAE,UAAA,MAAM;wBACV,IAAI,MAAM,CAAC,MAAM,EAAE;4BACjB,aAAa,GAAG,YAAY,CAAC;gCAC3B,aAAa,EAAE,MAAM,CAAC,MAAM;gCAC5B,QAAQ,EAAE,MAAM;gCAChB,SAAS,WAAA;gCACT,OAAO,SAAA;6BACR,CAAC,CAAC;4BAEH,IAAI,aAAa,EAAE;gCACjB,UAAU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AAC,CAAC;gBACtD,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;aACnB;YAED,OAAO;gBACL,IAAI,GAAG;oBAAE,GAAG,CAAC,WAAW,EAAE,CAAC;gBAC3B,IAAI,UAAU;oBAAE,GAAG,CAAC,WAAW,EAAE,CAAC;YACpC,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAED;IAA+B,6BAAU;IAEvC,mBAAY,YAAoC;QAAhD,YACE,iBAAO,SAER;QADC,KAAI,CAAC,IAAI,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;;IACpC,CAAC;IAEM,2BAAO,GAAd,UACE,SAAoB,EACpB,OAAiB;QAEjB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC/C,CAAC;IACH,gBAAC;AAAD,CAAC,AAbD,CAA+B,UAAU,GAaxC","sourcesContent":["import type { ExecutionResult } from 'graphql';\n\nimport type { NetworkError, GraphQLErrors } from '../../errors/index.js';\nimport { Observable } from '../../utilities/index.js';\nimport type { Operation, FetchResult, NextLink } from '../core/index.js';\nimport { ApolloLink } from '../core/index.js';\n\nexport interface ErrorResponse {\n graphQLErrors?: GraphQLErrors;\n networkError?: NetworkError;\n response?: ExecutionResult;\n operation: Operation;\n forward: NextLink;\n}\n\nexport namespace ErrorLink {\n /**\n * Callback to be triggered when an error occurs within the link stack.\n */\n export interface ErrorHandler {\n (error: ErrorResponse): Observable<FetchResult> | void;\n }\n}\n\n// For backwards compatibility.\nexport import ErrorHandler = ErrorLink.ErrorHandler;\n\nexport function onError(errorHandler: ErrorHandler): ApolloLink {\n return new ApolloLink((operation, forward) => {\n return new Observable(observer => {\n let sub: any;\n let retriedSub: any;\n let retriedResult: any;\n\n try {\n sub = forward(operation).subscribe({\n next: result => {\n if (result.errors) {\n retriedResult = errorHandler({\n graphQLErrors: result.errors,\n response: result,\n operation,\n forward,\n });\n\n if (retriedResult) {\n retriedSub = retriedResult.subscribe({\n next: observer.next.bind(observer),\n error: observer.error.bind(observer),\n complete: observer.complete.bind(observer),\n });\n return;\n }\n }\n observer.next(result);\n },\n error: networkError => {\n retriedResult = errorHandler({\n operation,\n networkError,\n //Network errors can return GraphQL errors on for example a 403\n graphQLErrors:\n networkError &&\n networkError.result &&\n networkError.result.errors,\n forward,\n });\n if (retriedResult) {\n retriedSub = retriedResult.subscribe({\n next: observer.next.bind(observer),\n error: observer.error.bind(observer),\n complete: observer.complete.bind(observer),\n });\n return;\n }\n observer.error(networkError);\n },\n complete: () => {\n // disable the previous sub from calling complete on observable\n // if retry is in flight.\n if (!retriedResult) {\n observer.complete.bind(observer)();\n }\n },\n });\n } catch (e) {\n errorHandler({ networkError: e, operation, forward });\n observer.error(e);\n }\n\n return () => {\n if (sub) sub.unsubscribe();\n if (retriedSub) sub.unsubscribe();\n };\n });\n });\n}\n\nexport class ErrorLink extends ApolloLink {\n private link: ApolloLink;\n constructor(errorHandler: ErrorLink.ErrorHandler) {\n super();\n this.link = onError(errorHandler);\n }\n\n public request(\n operation: Operation,\n forward: NextLink,\n ): Observable<FetchResult> | null {\n return this.link.request(operation, forward);\n }\n}\n"]}
@@ -1,6 +1,6 @@
1
- import type { RequestHandler } from '../core';
2
- import { ApolloLink } from '../core';
3
- import type { HttpOptions } from './selectHttpOptionsAndBody';
1
+ import type { RequestHandler } from '../core/index.js';
2
+ import { ApolloLink } from '../core/index.js';
3
+ import type { HttpOptions } from './selectHttpOptionsAndBody.js';
4
4
  export declare class HttpLink extends ApolloLink {
5
5
  options: HttpOptions;
6
6
  requester: RequestHandler;
@@ -1 +1 @@
1
- {"version":3,"file":"HttpLink.d.ts","sourceRoot":"","sources":["../../../src/link/http/HttpLink.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAG9D,qBAAa,QAAS,SAAQ,UAAU;IAEnB,OAAO,EAAE,WAAW;IADhC,SAAS,EAAE,cAAc,CAAC;gBACd,OAAO,GAAE,WAAgB;CAG7C"}
1
+ {"version":3,"file":"HttpLink.d.ts","sourceRoot":"","sources":["../../../src/link/http/HttpLink.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAGjE,qBAAa,QAAS,SAAQ,UAAU;IAEnB,OAAO,EAAE,WAAW;IADhC,SAAS,EAAE,cAAc,CAAC;gBACd,OAAO,GAAE,WAAgB;CAG7C"}
@@ -1,6 +1,6 @@
1
1
  import { __extends } from "tslib";
2
- import { ApolloLink } from "../core/index.js";
3
- import { createHttpLink } from "./createHttpLink.js";
2
+ import { ApolloLink } from '../core/index.js';
3
+ import { createHttpLink } from './createHttpLink.js';
4
4
  var HttpLink = (function (_super) {
5
5
  __extends(HttpLink, _super);
6
6
  function HttpLink(options) {
@@ -1 +1 @@
1
- {"version":3,"file":"HttpLink.js","sourceRoot":"","sources":["../../../src/link/http/HttpLink.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;IAA8B,4BAAU;IAEtC,kBAAmB,OAAyB;QAAzB,wBAAA,EAAA,YAAyB;QAA5C,YACE,kBAAM,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,SACvC;QAFkB,aAAO,GAAP,OAAO,CAAkB;;IAE5C,CAAC;IACH,eAAC;AAAD,CAAC,AALD,CAA8B,UAAU,GAKvC","sourcesContent":["import type { RequestHandler } from '../core';\nimport { ApolloLink } from '../core';\nimport type { HttpOptions } from './selectHttpOptionsAndBody';\nimport { createHttpLink } from './createHttpLink';\n\nexport class HttpLink extends ApolloLink {\n public requester: RequestHandler;\n constructor(public options: HttpOptions = {}) {\n super(createHttpLink(options).request);\n }\n}\n"]}
1
+ {"version":3,"file":"HttpLink.js","sourceRoot":"","sources":["../../../src/link/http/HttpLink.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;IAA8B,4BAAU;IAEtC,kBAAmB,OAAyB;QAAzB,wBAAA,EAAA,YAAyB;QAA5C,YACE,kBAAM,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,SACvC;QAFkB,aAAO,GAAP,OAAO,CAAkB;;IAE5C,CAAC;IACH,eAAC;AAAD,CAAC,AALD,CAA8B,UAAU,GAKvC","sourcesContent":["import type { RequestHandler } from '../core/index.js';\nimport { ApolloLink } from '../core/index.js';\nimport type { HttpOptions } from './selectHttpOptionsAndBody.js';\nimport { createHttpLink } from './createHttpLink.js';\n\nexport class HttpLink extends ApolloLink {\n public requester: RequestHandler;\n constructor(public options: HttpOptions = {}) {\n super(createHttpLink(options).request);\n }\n}\n"]}
@@ -1,7 +1,7 @@
1
- import { newInvariantError } from "../../utilities/globals/index.js";
1
+ import { newInvariantError } from '../../utilities/globals/index.js';
2
2
  export var checkFetcher = function (fetcher) {
3
3
  if (!fetcher && typeof fetch === 'undefined') {
4
- throw newInvariantError(36);
4
+ throw newInvariantError(35);
5
5
  }
6
6
  };
7
7
  //# sourceMappingURL=checkFetcher.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkFetcher.js","sourceRoot":"","sources":["../../../src/link/http/checkFetcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,CAAC,IAAM,YAAY,GAAG,UAAC,OAAuD;IAClF,IAAI,CAAC,OAAO,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE;QAC5C,MAAM,iBAAiB,CAAC,obAWvB,CAAC,CAAC;KACJ;AACH,CAAC,CAAC","sourcesContent":["import { newInvariantError } from '../../utilities/globals';\n\nexport const checkFetcher = (fetcher: WindowOrWorkerGlobalScope['fetch'] | undefined) => {\n if (!fetcher && typeof fetch === 'undefined') {\n throw newInvariantError(`\n\"fetch\" has not been found globally and no fetcher has been \\\nconfigured. To fix this, install a fetch package (like \\\nhttps://www.npmjs.com/package/cross-fetch), instantiate the \\\nfetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n `);\n }\n};\n"]}
1
+ {"version":3,"file":"checkFetcher.js","sourceRoot":"","sources":["../../../src/link/http/checkFetcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,MAAM,CAAC,IAAM,YAAY,GAAG,UAAC,OAAuD;IAClF,IAAI,CAAC,OAAO,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE;QAC5C,MAAM,iBAAiB,CAAC,obAWvB,CAAC,CAAC;KACJ;AACH,CAAC,CAAC","sourcesContent":["import { newInvariantError } from '../../utilities/globals/index.js';\n\nexport const checkFetcher = (fetcher: WindowOrWorkerGlobalScope['fetch'] | undefined) => {\n if (!fetcher && typeof fetch === 'undefined') {\n throw newInvariantError(`\n\"fetch\" has not been found globally and no fetcher has been \\\nconfigured. To fix this, install a fetch package (like \\\nhttps://www.npmjs.com/package/cross-fetch), instantiate the \\\nfetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n `);\n }\n};\n"]}
@@ -1,4 +1,4 @@
1
- import { ApolloLink } from '../core';
2
- import type { HttpOptions } from './selectHttpOptionsAndBody';
1
+ import { ApolloLink } from '../core/index.js';
2
+ import type { HttpOptions } from './selectHttpOptionsAndBody.js';
3
3
  export declare const createHttpLink: (linkOptions?: HttpOptions) => ApolloLink;
4
4
  //# sourceMappingURL=createHttpLink.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createHttpLink.d.ts","sourceRoot":"","sources":["../../../src/link/http/createHttpLink.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAUrC,OAAO,KAAK,EACV,WAAW,EACZ,MAAM,4BAA4B,CAAC;AAiBpC,eAAO,MAAM,cAAc,iBAAiB,WAAW,eA2KtD,CAAC"}
1
+ {"version":3,"file":"createHttpLink.d.ts","sourceRoot":"","sources":["../../../src/link/http/createHttpLink.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAU9C,OAAO,KAAK,EACV,WAAW,EACZ,MAAM,+BAA+B,CAAC;AAiBvC,eAAO,MAAM,cAAc,iBAAiB,WAAW,eA2KtD,CAAC"}
@@ -1,21 +1,21 @@
1
1
  import { __assign, __rest } from "tslib";
2
- import { __DEV__, invariant } from "../../utilities/globals/index.js";
3
- import { ApolloLink } from "../core/index.js";
4
- import { Observable, hasDirectives } from "../../utilities/index.js";
5
- import { serializeFetchParameter } from "./serializeFetchParameter.js";
6
- import { selectURI } from "./selectURI.js";
7
- import { handleError, readMultipartBody, readJsonBody } from "./parseAndCheckHttpResponse.js";
8
- import { checkFetcher } from "./checkFetcher.js";
9
- import { selectHttpOptionsAndBodyInternal, defaultPrinter, fallbackHttpConfig } from "./selectHttpOptionsAndBody.js";
10
- import { createSignalIfSupported } from "./createSignalIfSupported.js";
11
- import { rewriteURIForGET } from "./rewriteURIForGET.js";
12
- import { fromError, filterOperationVariables } from "../utils/index.js";
13
- import { maybe, getMainDefinition, removeClientSetsFromDocument } from "../../utilities/index.js";
2
+ import { invariant } from '../../utilities/globals/index.js';
3
+ import { ApolloLink } from '../core/index.js';
4
+ import { Observable, hasDirectives } from '../../utilities/index.js';
5
+ import { serializeFetchParameter } from './serializeFetchParameter.js';
6
+ import { selectURI } from './selectURI.js';
7
+ import { handleError, readMultipartBody, readJsonBody } from './parseAndCheckHttpResponse.js';
8
+ import { checkFetcher } from './checkFetcher.js';
9
+ import { selectHttpOptionsAndBodyInternal, defaultPrinter, fallbackHttpConfig } from './selectHttpOptionsAndBody.js';
10
+ import { createSignalIfSupported } from './createSignalIfSupported.js';
11
+ import { rewriteURIForGET } from './rewriteURIForGET.js';
12
+ import { fromError, filterOperationVariables } from '../utils/index.js';
13
+ import { maybe, getMainDefinition, removeClientSetsFromDocument } from '../../utilities/index.js';
14
14
  var backupFetch = maybe(function () { return fetch; });
15
15
  export var createHttpLink = function (linkOptions) {
16
16
  if (linkOptions === void 0) { linkOptions = {}; }
17
17
  var _a = linkOptions.uri, uri = _a === void 0 ? '/graphql' : _a, preferredFetch = linkOptions.fetch, _b = linkOptions.print, print = _b === void 0 ? defaultPrinter : _b, includeExtensions = linkOptions.includeExtensions, preserveHeaderCase = linkOptions.preserveHeaderCase, useGETForQueries = linkOptions.useGETForQueries, _c = linkOptions.includeUnusedVariables, includeUnusedVariables = _c === void 0 ? false : _c, requestOptions = __rest(linkOptions, ["uri", "fetch", "print", "includeExtensions", "preserveHeaderCase", "useGETForQueries", "includeUnusedVariables"]);
18
- if (__DEV__) {
18
+ if (globalThis.__DEV__ !== false) {
19
19
  checkFetcher(preferredFetch || backupFetch);
20
20
  }
21
21
  var linkConfig = {
@@ -78,7 +78,7 @@ export var createHttpLink = function (linkOptions) {
78
78
  options.headers = options.headers || {};
79
79
  var acceptHeader = "multipart/mixed;";
80
80
  if (isSubscription && hasDefer) {
81
- __DEV__ && invariant.warn(37);
81
+ globalThis.__DEV__ !== false && invariant.warn(36);
82
82
  }
83
83
  if (isSubscription) {
84
84
  acceptHeader += 'boundary=graphql;subscriptionSpec=1.0,application/json';