@apollo/client 3.9.0-alpha.2 → 3.9.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apollo-client.cjs +136 -81
- package/apollo-client.cjs.map +1 -1
- package/apollo-client.min.cjs +1 -1
- package/cache/cache.cjs +47 -11
- package/cache/cache.cjs.map +1 -1
- package/cache/cache.cjs.native.js +47 -11
- package/cache/core/types/common.d.ts +2 -2
- package/cache/core/types/common.d.ts.map +1 -1
- package/cache/core/types/common.js.map +1 -1
- package/cache/inmemory/entityStore.d.ts.map +1 -1
- package/cache/inmemory/entityStore.js +35 -0
- package/cache/inmemory/entityStore.js.map +1 -1
- package/cache/inmemory/inMemoryCache.d.ts.map +1 -1
- package/cache/inmemory/inMemoryCache.js +2 -1
- package/cache/inmemory/inMemoryCache.js.map +1 -1
- package/cache/inmemory/key-extractor.js +1 -1
- package/cache/inmemory/policies.js +4 -4
- package/cache/inmemory/readFromStore.js +2 -2
- package/cache/inmemory/writeToStore.js +4 -4
- package/core/ApolloClient.d.ts +2 -0
- package/core/ApolloClient.d.ts.map +1 -1
- package/core/ApolloClient.js +12 -4
- package/core/ApolloClient.js.map +1 -1
- package/core/LocalState.js +2 -2
- package/core/ObservableQuery.js +5 -5
- package/core/QueryManager.d.ts +4 -2
- package/core/QueryManager.d.ts.map +1 -1
- package/core/QueryManager.js +13 -12
- package/core/QueryManager.js.map +1 -1
- package/core/core.cjs +32 -23
- package/core/core.cjs.map +1 -1
- package/core/core.cjs.native.js +32 -23
- package/dev/dev.cjs +98 -83
- package/dev/dev.cjs.map +1 -1
- package/dev/dev.cjs.native.js +98 -83
- package/dev/loadErrorMessageHandler.js +1 -1
- package/dev/loadErrorMessageHandler.js.map +1 -1
- package/invariantErrorCodes.js +96 -81
- package/link/core/ApolloLink.js +2 -2
- package/link/core/core.cjs +2 -2
- package/link/core/core.cjs.map +1 -1
- package/link/core/core.cjs.native.js +2 -2
- package/link/http/checkFetcher.js +1 -1
- package/link/http/createHttpLink.js +1 -1
- package/link/http/http.cjs +3 -3
- package/link/http/http.cjs.map +1 -1
- package/link/http/http.cjs.native.js +3 -3
- package/link/http/serializeFetchParameter.js +1 -1
- package/link/persisted-queries/index.js +2 -2
- package/link/persisted-queries/persisted-queries.cjs +2 -2
- package/link/persisted-queries/persisted-queries.cjs.map +1 -1
- package/link/persisted-queries/persisted-queries.cjs.native.js +2 -2
- package/link/utils/toPromise.js +1 -1
- package/link/utils/utils.cjs +2 -2
- package/link/utils/utils.cjs.map +1 -1
- package/link/utils/utils.cjs.native.js +2 -2
- package/link/utils/validateOperation.js +1 -1
- package/package.json +27 -25
- package/react/cache/QueryReference.d.ts.map +1 -1
- package/react/cache/QueryReference.js +7 -2
- package/react/cache/QueryReference.js.map +1 -1
- package/react/components/Mutation.d.ts +2 -2
- package/react/components/Mutation.d.ts.map +1 -1
- package/react/components/Mutation.js.map +1 -1
- package/react/components/Query.d.ts +2 -2
- package/react/components/Query.d.ts.map +1 -1
- package/react/components/Query.js.map +1 -1
- package/react/components/Subscription.d.ts +2 -2
- package/react/components/Subscription.d.ts.map +1 -1
- package/react/components/Subscription.js.map +1 -1
- package/react/components/types.d.ts +4 -4
- package/react/components/types.d.ts.map +1 -1
- package/react/components/types.js.map +1 -1
- package/react/context/ApolloConsumer.d.ts +3 -3
- package/react/context/ApolloConsumer.d.ts.map +1 -1
- package/react/context/ApolloConsumer.js +2 -2
- package/react/context/ApolloConsumer.js.map +1 -1
- package/react/context/ApolloContext.d.ts +2 -2
- package/react/context/ApolloContext.d.ts.map +1 -1
- package/react/context/ApolloContext.js +2 -2
- package/react/context/ApolloContext.js.map +1 -1
- package/react/context/ApolloProvider.d.ts +3 -3
- package/react/context/ApolloProvider.d.ts.map +1 -1
- package/react/context/ApolloProvider.js +2 -2
- package/react/context/ApolloProvider.js.map +1 -1
- package/react/context/context.cjs +4 -4
- package/react/context/context.cjs.map +1 -1
- package/react/context/context.cjs.native.js +4 -4
- package/react/hoc/graphql.d.ts +2 -2
- package/react/hoc/graphql.d.ts.map +1 -1
- package/react/hoc/graphql.js.map +1 -1
- package/react/hoc/hoc-utils.d.ts +2 -1
- package/react/hoc/hoc-utils.d.ts.map +1 -1
- package/react/hoc/hoc-utils.js +2 -2
- package/react/hoc/hoc-utils.js.map +1 -1
- package/react/hoc/hoc.cjs +3 -3
- package/react/hoc/hoc.cjs.map +1 -1
- package/react/hoc/hoc.cjs.native.js +3 -3
- package/react/hoc/mutation-hoc.d.ts +2 -2
- package/react/hoc/mutation-hoc.d.ts.map +1 -1
- package/react/hoc/mutation-hoc.js +1 -1
- package/react/hoc/mutation-hoc.js.map +1 -1
- package/react/hoc/query-hoc.d.ts +2 -2
- package/react/hoc/query-hoc.d.ts.map +1 -1
- package/react/hoc/query-hoc.js +1 -1
- package/react/hoc/query-hoc.js.map +1 -1
- package/react/hoc/subscription-hoc.d.ts +2 -2
- package/react/hoc/subscription-hoc.d.ts.map +1 -1
- package/react/hoc/subscription-hoc.js +1 -1
- package/react/hoc/subscription-hoc.js.map +1 -1
- package/react/hoc/withApollo.d.ts +2 -2
- package/react/hoc/withApollo.d.ts.map +1 -1
- package/react/hoc/withApollo.js +2 -2
- package/react/hoc/withApollo.js.map +1 -1
- package/react/hooks/hooks.cjs +16 -11
- package/react/hooks/hooks.cjs.map +1 -1
- package/react/hooks/hooks.cjs.native.js +16 -11
- package/react/hooks/index.d.ts +1 -0
- package/react/hooks/index.d.ts.map +1 -1
- package/react/hooks/index.js.map +1 -1
- package/react/hooks/internal/__use.js +1 -1
- package/react/hooks/internal/__use.js.map +1 -1
- package/react/hooks/internal/useDeepMemo.js +1 -1
- package/react/hooks/internal/useDeepMemo.js.map +1 -1
- package/react/hooks/internal/useIsomorphicLayoutEffect.d.ts +2 -1
- package/react/hooks/internal/useIsomorphicLayoutEffect.d.ts.map +1 -1
- package/react/hooks/internal/useIsomorphicLayoutEffect.js +1 -1
- package/react/hooks/internal/useIsomorphicLayoutEffect.js.map +1 -1
- package/react/hooks/useApolloClient.js +2 -2
- package/react/hooks/useApolloClient.js.map +1 -1
- package/react/hooks/useBackgroundQuery.js +1 -1
- package/react/hooks/useBackgroundQuery.js.map +1 -1
- package/react/hooks/useFragment.js +1 -1
- package/react/hooks/useFragment.js.map +1 -1
- package/react/hooks/useLazyQuery.js +1 -1
- package/react/hooks/useLazyQuery.js.map +1 -1
- package/react/hooks/useMutation.js +1 -1
- package/react/hooks/useMutation.js.map +1 -1
- package/react/hooks/useQuery.js +2 -2
- package/react/hooks/useQuery.js.map +1 -1
- package/react/hooks/useReactiveVar.js +1 -1
- package/react/hooks/useReactiveVar.js.map +1 -1
- package/react/hooks/useReadQuery.d.ts +7 -4
- package/react/hooks/useReadQuery.d.ts.map +1 -1
- package/react/hooks/useReadQuery.js +2 -2
- package/react/hooks/useReadQuery.js.map +1 -1
- package/react/hooks/useSubscription.js +3 -3
- package/react/hooks/useSubscription.js.map +1 -1
- package/react/hooks/useSuspenseQuery.js +3 -3
- package/react/hooks/useSuspenseQuery.js.map +1 -1
- package/react/hooks/useSyncExternalStore.js +2 -2
- package/react/hooks/useSyncExternalStore.js.map +1 -1
- package/react/parser/index.js +5 -5
- package/react/parser/parser.cjs +5 -5
- package/react/parser/parser.cjs.map +1 -1
- package/react/parser/parser.cjs.native.js +5 -5
- package/react/ssr/RenderPromises.d.ts +3 -3
- package/react/ssr/RenderPromises.d.ts.map +1 -1
- package/react/ssr/RenderPromises.js.map +1 -1
- package/react/ssr/getDataFromTree.d.ts +4 -4
- package/react/ssr/getDataFromTree.d.ts.map +1 -1
- package/react/ssr/getDataFromTree.js +1 -1
- package/react/ssr/getDataFromTree.js.map +1 -1
- package/react/ssr/renderToStringWithData.d.ts +2 -2
- package/react/ssr/renderToStringWithData.d.ts.map +1 -1
- package/react/ssr/renderToStringWithData.js.map +1 -1
- package/react/ssr/ssr.cjs +1 -1
- package/react/ssr/ssr.cjs.map +1 -1
- package/react/ssr/ssr.cjs.native.js +1 -1
- package/react/types/types.d.ts +2 -2
- package/react/types/types.d.ts.map +1 -1
- package/react/types/types.js.map +1 -1
- package/testing/core/core.cjs +2 -2
- package/testing/core/core.cjs.map +1 -1
- package/testing/core/core.cjs.native.js +2 -2
- package/testing/core/mocking/mockLink.js +2 -2
- package/testing/react/MockedProvider.d.ts +1 -0
- package/testing/react/MockedProvider.d.ts.map +1 -1
- package/testing/react/MockedProvider.js +2 -1
- package/testing/react/MockedProvider.js.map +1 -1
- package/testing/testing.cjs +2 -1
- package/testing/testing.cjs.map +1 -1
- package/testing/testing.cjs.native.js +2 -1
- package/utilities/globals/globals.cjs +1 -1
- package/utilities/globals/globals.cjs.map +1 -1
- package/utilities/globals/globals.cjs.native.js +1 -1
- package/utilities/graphql/DocumentTransform.js +1 -1
- package/utilities/graphql/directives.js +4 -4
- package/utilities/graphql/fragments.js +3 -3
- package/utilities/graphql/getFromAST.js +8 -8
- package/utilities/graphql/print.d.ts +4 -2
- package/utilities/graphql/print.d.ts.map +1 -1
- package/utilities/graphql/print.js +8 -3
- package/utilities/graphql/print.js.map +1 -1
- package/utilities/graphql/storeUtils.d.ts +5 -0
- package/utilities/graphql/storeUtils.d.ts.map +1 -1
- package/utilities/graphql/storeUtils.js +1 -1
- package/utilities/graphql/storeUtils.js.map +1 -1
- package/utilities/graphql/transform.js +2 -2
- package/utilities/index.d.ts +1 -1
- package/utilities/index.d.ts.map +1 -1
- package/utilities/index.js.map +1 -1
- package/utilities/subscriptions/relay/index.d.ts +6 -0
- package/utilities/subscriptions/relay/index.d.ts.map +1 -0
- package/utilities/subscriptions/relay/index.js +43 -0
- package/utilities/subscriptions/relay/index.js.map +1 -0
- package/utilities/subscriptions/relay/package.json +8 -0
- package/utilities/subscriptions/relay/relay.cjs +368 -0
- package/utilities/subscriptions/relay/relay.cjs.map +1 -0
- package/utilities/subscriptions/relay/relay.cjs.native.js +368 -0
- package/utilities/subscriptions/shared.d.ts +9 -0
- package/utilities/subscriptions/shared.d.ts.map +1 -0
- package/utilities/subscriptions/shared.js +7 -0
- package/utilities/subscriptions/shared.js.map +1 -0
- package/utilities/subscriptions/urql/index.d.ts +7 -0
- package/utilities/subscriptions/urql/index.d.ts.map +1 -0
- package/utilities/subscriptions/urql/index.js +40 -0
- package/utilities/subscriptions/urql/index.js.map +1 -0
- package/utilities/subscriptions/urql/package.json +8 -0
- package/utilities/subscriptions/urql/urql.cjs +364 -0
- package/utilities/subscriptions/urql/urql.cjs.map +1 -0
- package/utilities/subscriptions/urql/urql.cjs.native.js +364 -0
- package/utilities/utilities.cjs +27 -22
- package/utilities/utilities.cjs.map +1 -1
- package/utilities/utilities.cjs.native.js +27 -22
- package/version.js +1 -1
package/invariantErrorCodes.js
CHANGED
|
@@ -8,45 +8,45 @@ export const errorCodes = // This file is used by the error message display webs
|
|
|
8
8
|
message: "store.merge expects a string ID"
|
|
9
9
|
},
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
4: {
|
|
12
12
|
file: "@apollo/client/cache/inmemory/key-extractor.js",
|
|
13
13
|
condition: "extracted !== void 0",
|
|
14
14
|
message: "Missing field '%s' while extracting keyFields from %s"
|
|
15
15
|
},
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
5: {
|
|
18
18
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
19
19
|
condition: "!old || old === which",
|
|
20
20
|
message: "Cannot change root %s __typename more than once"
|
|
21
21
|
},
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
8: {
|
|
24
24
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
25
25
|
message: "Cannot automatically merge arrays"
|
|
26
26
|
},
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
9: {
|
|
29
29
|
file: "@apollo/client/cache/inmemory/readFromStore.js",
|
|
30
30
|
message: "No fragment named %s"
|
|
31
31
|
},
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
10: {
|
|
34
34
|
file: "@apollo/client/cache/inmemory/readFromStore.js",
|
|
35
35
|
condition: "!isReference(value)",
|
|
36
36
|
message: "Missing selection set for object of type %s returned for query field %s"
|
|
37
37
|
},
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
11: {
|
|
40
40
|
file: "@apollo/client/cache/inmemory/writeToStore.js",
|
|
41
41
|
message: "Could not identify object %s"
|
|
42
42
|
},
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
13: {
|
|
45
45
|
file: "@apollo/client/cache/inmemory/writeToStore.js",
|
|
46
46
|
message: "No fragment named %s"
|
|
47
47
|
},
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
15: {
|
|
50
50
|
file: "@apollo/client/core/ApolloClient.js",
|
|
51
51
|
|
|
52
52
|
message: "To initialize Apollo Client, you must specify a 'cache' property " +
|
|
@@ -54,7 +54,7 @@ export const errorCodes = // This file is used by the error message display webs
|
|
|
54
54
|
"For more information, please visit: https://go.apollo.dev/c/docs"
|
|
55
55
|
},
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
16: {
|
|
58
58
|
file: "@apollo/client/core/ApolloClient.js",
|
|
59
59
|
condition: "options.fetchPolicy !== \"cache-and-network\"",
|
|
60
60
|
|
|
@@ -64,42 +64,42 @@ export const errorCodes = // This file is used by the error message display webs
|
|
|
64
64
|
"using a different fetchPolicy, such as cache-first or network-only."
|
|
65
65
|
},
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
18: {
|
|
68
68
|
file: "@apollo/client/core/LocalState.js",
|
|
69
69
|
condition: "fragment",
|
|
70
70
|
message: "No fragment named %s"
|
|
71
71
|
},
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
19: {
|
|
74
74
|
file: "@apollo/client/core/LocalState.js",
|
|
75
75
|
condition: "fragment",
|
|
76
76
|
message: "No fragment named %s"
|
|
77
77
|
},
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
22: {
|
|
80
80
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
81
81
|
condition: "pollInterval",
|
|
82
82
|
message: "Attempted to start a polling query without a polling interval."
|
|
83
83
|
},
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
25: {
|
|
86
86
|
file: "@apollo/client/core/QueryManager.js",
|
|
87
87
|
message: "QueryManager stopped while query was in flight"
|
|
88
88
|
},
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
26: {
|
|
91
91
|
file: "@apollo/client/core/QueryManager.js",
|
|
92
92
|
condition: "mutation",
|
|
93
93
|
message: "mutation option is required. You must specify your GraphQL document in the mutation option."
|
|
94
94
|
},
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
27: {
|
|
97
97
|
file: "@apollo/client/core/QueryManager.js",
|
|
98
98
|
condition: "fetchPolicy === \"network-only\" || fetchPolicy === \"no-cache\"",
|
|
99
99
|
message: "Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."
|
|
100
100
|
},
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
28: {
|
|
103
103
|
file: "@apollo/client/core/QueryManager.js",
|
|
104
104
|
condition: "options.query",
|
|
105
105
|
|
|
@@ -107,45 +107,45 @@ export const errorCodes = // This file is used by the error message display webs
|
|
|
107
107
|
"in the query option."
|
|
108
108
|
},
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
29: {
|
|
111
111
|
file: "@apollo/client/core/QueryManager.js",
|
|
112
112
|
condition: "options.query.kind === \"Document\"",
|
|
113
113
|
message: 'You must wrap the query string in a "gql" tag.'
|
|
114
114
|
},
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
30: {
|
|
117
117
|
file: "@apollo/client/core/QueryManager.js",
|
|
118
118
|
condition: "!options.returnPartialData",
|
|
119
119
|
message: "returnPartialData option only supported on watchQuery."
|
|
120
120
|
},
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
31: {
|
|
123
123
|
file: "@apollo/client/core/QueryManager.js",
|
|
124
124
|
condition: "!options.pollInterval",
|
|
125
125
|
message: "pollInterval option only supported on watchQuery."
|
|
126
126
|
},
|
|
127
127
|
|
|
128
|
-
|
|
128
|
+
32: {
|
|
129
129
|
file: "@apollo/client/core/QueryManager.js",
|
|
130
130
|
message: "Store reset while query was in flight (not completed in link chain)"
|
|
131
131
|
},
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
36: {
|
|
134
134
|
file: "@apollo/client/link/core/ApolloLink.js",
|
|
135
135
|
message: "request is not implemented"
|
|
136
136
|
},
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
37: {
|
|
139
139
|
file: "@apollo/client/link/http/checkFetcher.js",
|
|
140
140
|
message: "\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, 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 "
|
|
141
141
|
},
|
|
142
142
|
|
|
143
|
-
|
|
143
|
+
39: {
|
|
144
144
|
file: "@apollo/client/link/http/serializeFetchParameter.js",
|
|
145
145
|
message: "Network request failed. %s is not serializable: %s"
|
|
146
146
|
},
|
|
147
147
|
|
|
148
|
-
|
|
148
|
+
40: {
|
|
149
149
|
file: "@apollo/client/link/persisted-queries/index.js",
|
|
150
150
|
condition: "options &&\n (typeof options.sha256 === \"function\" ||\n typeof options.generateHash === \"function\")",
|
|
151
151
|
|
|
@@ -154,18 +154,18 @@ export const errorCodes = // This file is used by the error message display webs
|
|
|
154
154
|
"parameter."
|
|
155
155
|
},
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
41: {
|
|
158
158
|
file: "@apollo/client/link/persisted-queries/index.js",
|
|
159
159
|
condition: "forward",
|
|
160
160
|
message: "PersistedQueryLink cannot be the last link in the chain."
|
|
161
161
|
},
|
|
162
162
|
|
|
163
|
-
|
|
163
|
+
43: {
|
|
164
164
|
file: "@apollo/client/link/utils/validateOperation.js",
|
|
165
165
|
message: "illegal argument: %s"
|
|
166
166
|
},
|
|
167
167
|
|
|
168
|
-
|
|
168
|
+
44: {
|
|
169
169
|
file: "@apollo/client/react/context/ApolloConsumer.js",
|
|
170
170
|
condition: "context && context.client",
|
|
171
171
|
|
|
@@ -173,7 +173,7 @@ export const errorCodes = // This file is used by the error message display webs
|
|
|
173
173
|
"Wrap the root component in an <ApolloProvider>."
|
|
174
174
|
},
|
|
175
175
|
|
|
176
|
-
|
|
176
|
+
45: {
|
|
177
177
|
file: "@apollo/client/react/context/ApolloContext.js",
|
|
178
178
|
condition: "\"createContext\" in React",
|
|
179
179
|
|
|
@@ -183,7 +183,7 @@ export const errorCodes = // This file is used by the error message display webs
|
|
|
183
183
|
"For more information, see https://nextjs.org/docs/getting-started/react-essentials#client-components"
|
|
184
184
|
},
|
|
185
185
|
|
|
186
|
-
|
|
186
|
+
46: {
|
|
187
187
|
file: "@apollo/client/react/context/ApolloProvider.js",
|
|
188
188
|
condition: "context.client",
|
|
189
189
|
|
|
@@ -191,7 +191,7 @@ export const errorCodes = // This file is used by the error message display webs
|
|
|
191
191
|
'sure you pass in your client via the "client" prop.'
|
|
192
192
|
},
|
|
193
193
|
|
|
194
|
-
|
|
194
|
+
47: {
|
|
195
195
|
file: "@apollo/client/react/hoc/hoc-utils.js",
|
|
196
196
|
condition: "this.withRef",
|
|
197
197
|
|
|
@@ -199,7 +199,7 @@ export const errorCodes = // This file is used by the error message display webs
|
|
|
199
199
|
"{ withRef: true } in the options"
|
|
200
200
|
},
|
|
201
201
|
|
|
202
|
-
|
|
202
|
+
48: {
|
|
203
203
|
file: "@apollo/client/react/hoc/withApollo.js",
|
|
204
204
|
condition: "operationOptions.withRef",
|
|
205
205
|
|
|
@@ -207,7 +207,7 @@ export const errorCodes = // This file is used by the error message display webs
|
|
|
207
207
|
"{ withRef: true } in the options"
|
|
208
208
|
},
|
|
209
209
|
|
|
210
|
-
|
|
210
|
+
49: {
|
|
211
211
|
file: "@apollo/client/react/hooks/useApolloClient.js",
|
|
212
212
|
condition: "!!client",
|
|
213
213
|
|
|
@@ -216,7 +216,7 @@ export const errorCodes = // This file is used by the error message display webs
|
|
|
216
216
|
"instance in via options."
|
|
217
217
|
},
|
|
218
218
|
|
|
219
|
-
|
|
219
|
+
51: {
|
|
220
220
|
file: "@apollo/client/react/hooks/useReadQuery.js",
|
|
221
221
|
condition: "internalQueryRef.promiseCache",
|
|
222
222
|
|
|
@@ -225,13 +225,13 @@ export const errorCodes = // This file is used by the error message display webs
|
|
|
225
225
|
"Please ensure you are passing the `queryRef` returned from `useBackgroundQuery`."
|
|
226
226
|
},
|
|
227
227
|
|
|
228
|
-
|
|
228
|
+
56: {
|
|
229
229
|
file: "@apollo/client/react/hooks/useSuspenseQuery.js",
|
|
230
230
|
condition: "supportedFetchPolicies.includes(fetchPolicy)",
|
|
231
231
|
message: "The fetch policy `%s` is not supported with suspense."
|
|
232
232
|
},
|
|
233
233
|
|
|
234
|
-
|
|
234
|
+
59: {
|
|
235
235
|
file: "@apollo/client/react/parser/index.js",
|
|
236
236
|
condition: "!!document && !!document.kind",
|
|
237
237
|
|
|
@@ -240,7 +240,7 @@ export const errorCodes = // This file is used by the error message display webs
|
|
|
240
240
|
"to convert your operation into a document"
|
|
241
241
|
},
|
|
242
242
|
|
|
243
|
-
|
|
243
|
+
60: {
|
|
244
244
|
file: "@apollo/client/react/parser/index.js",
|
|
245
245
|
condition: "!fragments.length ||\n queries.length ||\n mutations.length ||\n subscriptions.length",
|
|
246
246
|
|
|
@@ -248,7 +248,7 @@ export const errorCodes = // This file is used by the error message display webs
|
|
|
248
248
|
"You must include a query, subscription or mutation as well"
|
|
249
249
|
},
|
|
250
250
|
|
|
251
|
-
|
|
251
|
+
61: {
|
|
252
252
|
file: "@apollo/client/react/parser/index.js",
|
|
253
253
|
condition: "queries.length + mutations.length + subscriptions.length <= 1",
|
|
254
254
|
|
|
@@ -258,7 +258,7 @@ export const errorCodes = // This file is used by the error message display webs
|
|
|
258
258
|
"You can use 'compose' to join multiple operation types to a component"
|
|
259
259
|
},
|
|
260
260
|
|
|
261
|
-
|
|
261
|
+
62: {
|
|
262
262
|
file: "@apollo/client/react/parser/index.js",
|
|
263
263
|
condition: "definitions.length === 1",
|
|
264
264
|
|
|
@@ -267,120 +267,120 @@ export const errorCodes = // This file is used by the error message display webs
|
|
|
267
267
|
"You can use 'compose' to join multiple operation types to a component"
|
|
268
268
|
},
|
|
269
269
|
|
|
270
|
-
|
|
270
|
+
63: {
|
|
271
271
|
file: "@apollo/client/react/parser/index.js",
|
|
272
272
|
condition: "operation.type === type",
|
|
273
273
|
message: "Running a %s requires a graphql " + "%s, but a %s was used instead."
|
|
274
274
|
},
|
|
275
275
|
|
|
276
|
-
|
|
276
|
+
64: {
|
|
277
277
|
file: "@apollo/client/testing/core/mocking/mockLink.js",
|
|
278
278
|
condition: "queryWithoutConnection",
|
|
279
279
|
message: "query is required"
|
|
280
280
|
},
|
|
281
281
|
|
|
282
|
-
|
|
282
|
+
65: {
|
|
283
283
|
file: "@apollo/client/testing/core/mocking/mockLink.js",
|
|
284
284
|
condition: "mockedResponse.maxUsageCount > 0",
|
|
285
285
|
message: "Mock response maxUsageCount must be greater than 0, %s given"
|
|
286
286
|
},
|
|
287
287
|
|
|
288
|
-
|
|
288
|
+
66: {
|
|
289
289
|
file: "@apollo/client/utilities/graphql/DocumentTransform.js",
|
|
290
290
|
condition: "Array.isArray(cacheKeys)",
|
|
291
291
|
message: "`getCacheKey` must return an array or undefined"
|
|
292
292
|
},
|
|
293
293
|
|
|
294
|
-
|
|
294
|
+
67: {
|
|
295
295
|
file: "@apollo/client/utilities/graphql/directives.js",
|
|
296
296
|
condition: "evaledValue !== void 0",
|
|
297
297
|
message: "Invalid variable referenced in @%s directive."
|
|
298
298
|
},
|
|
299
299
|
|
|
300
|
-
|
|
300
|
+
68: {
|
|
301
301
|
file: "@apollo/client/utilities/graphql/directives.js",
|
|
302
302
|
condition: "directiveArguments && directiveArguments.length === 1",
|
|
303
303
|
message: "Incorrect number of arguments for the @%s directive."
|
|
304
304
|
},
|
|
305
305
|
|
|
306
|
-
|
|
306
|
+
69: {
|
|
307
307
|
file: "@apollo/client/utilities/graphql/directives.js",
|
|
308
308
|
condition: "ifArgument.name && ifArgument.name.value === \"if\"",
|
|
309
309
|
message: "Invalid argument for the @%s directive."
|
|
310
310
|
},
|
|
311
311
|
|
|
312
|
-
|
|
312
|
+
70: {
|
|
313
313
|
file: "@apollo/client/utilities/graphql/directives.js",
|
|
314
314
|
condition: "ifValue &&\n (ifValue.kind === \"Variable\" || ifValue.kind === \"BooleanValue\")",
|
|
315
315
|
message: "Argument for the @%s directive must be a variable or a boolean value."
|
|
316
316
|
},
|
|
317
317
|
|
|
318
|
-
|
|
318
|
+
71: {
|
|
319
319
|
file: "@apollo/client/utilities/graphql/fragments.js",
|
|
320
320
|
|
|
321
321
|
message: "Found a %s operation%s. " +
|
|
322
322
|
"No operations are allowed when using a fragment as a query. Only fragments are allowed."
|
|
323
323
|
},
|
|
324
324
|
|
|
325
|
-
|
|
325
|
+
72: {
|
|
326
326
|
file: "@apollo/client/utilities/graphql/fragments.js",
|
|
327
327
|
condition: "fragments.length === 1",
|
|
328
328
|
message: "Found %s fragments. `fragmentName` must be provided when there is not exactly 1 fragment."
|
|
329
329
|
},
|
|
330
330
|
|
|
331
|
-
|
|
331
|
+
73: {
|
|
332
332
|
file: "@apollo/client/utilities/graphql/fragments.js",
|
|
333
333
|
condition: "fragment",
|
|
334
334
|
message: "No fragment named %s"
|
|
335
335
|
},
|
|
336
336
|
|
|
337
|
-
|
|
337
|
+
74: {
|
|
338
338
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
339
339
|
condition: "doc && doc.kind === \"Document\"",
|
|
340
340
|
message: "Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a \"gql\" tag? http://docs.apollostack.com/apollo-client/core.html#gql"
|
|
341
341
|
},
|
|
342
342
|
|
|
343
|
-
|
|
343
|
+
75: {
|
|
344
344
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
345
345
|
message: "Schema type definitions not allowed in queries. Found: \"%s\""
|
|
346
346
|
},
|
|
347
347
|
|
|
348
|
-
|
|
348
|
+
76: {
|
|
349
349
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
350
350
|
condition: "operations.length <= 1",
|
|
351
351
|
message: "Ambiguous GraphQL document: contains %s operations"
|
|
352
352
|
},
|
|
353
353
|
|
|
354
|
-
|
|
354
|
+
77: {
|
|
355
355
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
356
356
|
condition: "queryDef && queryDef.operation === \"query\"",
|
|
357
357
|
message: "Must contain a query definition."
|
|
358
358
|
},
|
|
359
359
|
|
|
360
|
-
|
|
360
|
+
78: {
|
|
361
361
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
362
362
|
condition: "doc.kind === \"Document\"",
|
|
363
363
|
message: "Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a \"gql\" tag? http://docs.apollostack.com/apollo-client/core.html#gql"
|
|
364
364
|
},
|
|
365
365
|
|
|
366
|
-
|
|
366
|
+
79: {
|
|
367
367
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
368
368
|
condition: "doc.definitions.length <= 1",
|
|
369
369
|
message: "Fragment must have exactly one definition."
|
|
370
370
|
},
|
|
371
371
|
|
|
372
|
-
|
|
372
|
+
80: {
|
|
373
373
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
374
374
|
condition: "fragmentDef.kind === \"FragmentDefinition\"",
|
|
375
375
|
message: "Must be a fragment definition."
|
|
376
376
|
},
|
|
377
377
|
|
|
378
|
-
|
|
378
|
+
81: {
|
|
379
379
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
380
380
|
message: "Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."
|
|
381
381
|
},
|
|
382
382
|
|
|
383
|
-
|
|
383
|
+
82: {
|
|
384
384
|
file: "@apollo/client/utilities/graphql/storeUtils.js",
|
|
385
385
|
|
|
386
386
|
message: "The inline argument \"%s\" of kind \"%s\"" +
|
|
@@ -390,12 +390,12 @@ export const errorCodes = // This file is used by the error message display webs
|
|
|
390
390
|
};
|
|
391
391
|
|
|
392
392
|
export const devDebug = {
|
|
393
|
-
|
|
393
|
+
17: {
|
|
394
394
|
file: "@apollo/client/core/ApolloClient.js",
|
|
395
395
|
message: "In client.refetchQueries, Promise.all promise rejected with error %o"
|
|
396
396
|
},
|
|
397
397
|
|
|
398
|
-
|
|
398
|
+
24: {
|
|
399
399
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
400
400
|
message: "Missing cache result fields: %o"
|
|
401
401
|
}
|
|
@@ -404,82 +404,97 @@ export const devDebug = {
|
|
|
404
404
|
export const devLog = {};
|
|
405
405
|
|
|
406
406
|
export const devWarn = {
|
|
407
|
-
|
|
407
|
+
2: {
|
|
408
|
+
file: "@apollo/client/cache/inmemory/entityStore.js",
|
|
409
|
+
|
|
410
|
+
message: "cache.modify: You are trying to write a Reference that is not part of the store: %o\n" +
|
|
411
|
+
"Please make sure to set the `mergeIntoStore` parameter to `true` when creating a Reference that is not part of the store yet:\n" +
|
|
412
|
+
"`toReference(object, true)`"
|
|
413
|
+
},
|
|
414
|
+
|
|
415
|
+
3: {
|
|
416
|
+
file: "@apollo/client/cache/inmemory/entityStore.js",
|
|
417
|
+
|
|
418
|
+
message: "cache.modify: Writing an array with a mix of both References and Objects will not result in the Objects being normalized correctly.\n" +
|
|
419
|
+
"Please convert the object instance %o to a Reference before writing it to the cache by calling `toReference(object, true)`."
|
|
420
|
+
},
|
|
421
|
+
|
|
422
|
+
6: {
|
|
408
423
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
409
424
|
message: "Inferring subtype %s of supertype %s"
|
|
410
425
|
},
|
|
411
426
|
|
|
412
|
-
|
|
427
|
+
7: {
|
|
413
428
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
414
429
|
message: "Undefined 'from' passed to readField with arguments %s"
|
|
415
430
|
},
|
|
416
431
|
|
|
417
|
-
|
|
432
|
+
14: {
|
|
418
433
|
file: "@apollo/client/cache/inmemory/writeToStore.js",
|
|
419
434
|
message: "Cache data may be lost when replacing the %s field of a %s object.\n\nThis could cause additional (usually avoidable) network requests to fetch data that were otherwise cached.\n\nTo address this problem (which is not a bug in Apollo Client), %sdefine a custom merge function for the %s field, so InMemoryCache can safely merge these objects:\n\n existing: %s\n incoming: %s\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"
|
|
420
435
|
},
|
|
421
436
|
|
|
422
|
-
|
|
437
|
+
20: {
|
|
423
438
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
424
439
|
message: "Called refetch(%o) for query %o, which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"
|
|
425
440
|
},
|
|
426
441
|
|
|
427
|
-
|
|
442
|
+
33: {
|
|
428
443
|
file: "@apollo/client/core/QueryManager.js",
|
|
429
444
|
message: "Unknown query named \"%s\" requested in refetchQueries options.include array"
|
|
430
445
|
},
|
|
431
446
|
|
|
432
|
-
|
|
447
|
+
34: {
|
|
433
448
|
file: "@apollo/client/core/QueryManager.js",
|
|
434
449
|
message: "Unknown query %s requested in refetchQueries options.include array"
|
|
435
450
|
},
|
|
436
451
|
|
|
437
|
-
|
|
452
|
+
35: {
|
|
438
453
|
file: "@apollo/client/link/core/ApolloLink.js",
|
|
439
454
|
message: "You are calling concat on a terminating link, which will have no effect %o"
|
|
440
455
|
},
|
|
441
456
|
|
|
442
|
-
|
|
457
|
+
38: {
|
|
443
458
|
file: "@apollo/client/link/http/createHttpLink.js",
|
|
444
459
|
message: "Multipart-subscriptions do not support @defer"
|
|
445
460
|
},
|
|
446
461
|
|
|
447
|
-
|
|
462
|
+
42: {
|
|
448
463
|
file: "@apollo/client/link/utils/toPromise.js",
|
|
449
464
|
message: "Promise Wrapper does not support multiple results from Observable"
|
|
450
465
|
},
|
|
451
466
|
|
|
452
|
-
|
|
467
|
+
50: {
|
|
453
468
|
file: "@apollo/client/react/hooks/useQuery.js",
|
|
454
469
|
message: "Calling default no-op implementation of InternalState#forceUpdate"
|
|
455
470
|
},
|
|
456
471
|
|
|
457
|
-
|
|
472
|
+
52: {
|
|
458
473
|
file: "@apollo/client/react/hooks/useSubscription.js",
|
|
459
474
|
message: "'useSubscription' supports only the 'onSubscriptionData' or 'onData' option, but not both. Only the 'onData' option will be used."
|
|
460
475
|
},
|
|
461
476
|
|
|
462
|
-
|
|
477
|
+
53: {
|
|
463
478
|
file: "@apollo/client/react/hooks/useSubscription.js",
|
|
464
479
|
message: "'onSubscriptionData' is deprecated and will be removed in a future major version. Please use the 'onData' option instead."
|
|
465
480
|
},
|
|
466
481
|
|
|
467
|
-
|
|
482
|
+
54: {
|
|
468
483
|
file: "@apollo/client/react/hooks/useSubscription.js",
|
|
469
484
|
message: "'useSubscription' supports only the 'onSubscriptionComplete' or 'onComplete' option, but not both. Only the 'onComplete' option will be used."
|
|
470
485
|
},
|
|
471
486
|
|
|
472
|
-
|
|
487
|
+
55: {
|
|
473
488
|
file: "@apollo/client/react/hooks/useSubscription.js",
|
|
474
489
|
message: "'onSubscriptionComplete' is deprecated and will be removed in a future major version. Please use the 'onComplete' option instead."
|
|
475
490
|
},
|
|
476
491
|
|
|
477
|
-
|
|
492
|
+
57: {
|
|
478
493
|
file: "@apollo/client/react/hooks/useSuspenseQuery.js",
|
|
479
494
|
message: "Using `returnPartialData` with a `no-cache` fetch policy has no effect. To read partial data from the cache, consider using an alternate fetch policy."
|
|
480
495
|
},
|
|
481
496
|
|
|
482
|
-
|
|
497
|
+
84: {
|
|
483
498
|
file: "@apollo/client/utilities/graphql/transform.js",
|
|
484
499
|
|
|
485
500
|
message: "Removing an @connection directive even though it does not have a key. " +
|
|
@@ -488,27 +503,27 @@ export const devWarn = {
|
|
|
488
503
|
};
|
|
489
504
|
|
|
490
505
|
export const devError = {
|
|
491
|
-
|
|
506
|
+
12: {
|
|
492
507
|
file: "@apollo/client/cache/inmemory/writeToStore.js",
|
|
493
508
|
message: "Missing field '%s' while writing result %o"
|
|
494
509
|
},
|
|
495
510
|
|
|
496
|
-
|
|
511
|
+
21: {
|
|
497
512
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
498
513
|
message: "Unhandled GraphQL subscription error"
|
|
499
514
|
},
|
|
500
515
|
|
|
501
|
-
|
|
516
|
+
23: {
|
|
502
517
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
503
518
|
message: "Unhandled error"
|
|
504
519
|
},
|
|
505
520
|
|
|
506
|
-
|
|
521
|
+
58: {
|
|
507
522
|
file: "@apollo/client/react/hooks/useSyncExternalStore.js",
|
|
508
523
|
message: "The result of getSnapshot should be cached to avoid an infinite loop"
|
|
509
524
|
},
|
|
510
525
|
|
|
511
|
-
|
|
526
|
+
83: {
|
|
512
527
|
file: "@apollo/client/utilities/graphql/transform.js",
|
|
513
528
|
message: "Could not find operation or fragment"
|
|
514
529
|
}
|
package/link/core/ApolloLink.js
CHANGED
|
@@ -47,7 +47,7 @@ var ApolloLink = (function () {
|
|
|
47
47
|
ApolloLink.concat = function (first, second) {
|
|
48
48
|
var firstLink = toLink(first);
|
|
49
49
|
if (isTerminating(firstLink)) {
|
|
50
|
-
globalThis.__DEV__ !== false && invariant.warn(
|
|
50
|
+
globalThis.__DEV__ !== false && invariant.warn(35, firstLink);
|
|
51
51
|
return firstLink;
|
|
52
52
|
}
|
|
53
53
|
var nextLink = toLink(second);
|
|
@@ -71,7 +71,7 @@ var ApolloLink = (function () {
|
|
|
71
71
|
return ApolloLink.concat(this, next);
|
|
72
72
|
};
|
|
73
73
|
ApolloLink.prototype.request = function (operation, forward) {
|
|
74
|
-
throw newInvariantError(
|
|
74
|
+
throw newInvariantError(36);
|
|
75
75
|
};
|
|
76
76
|
ApolloLink.prototype.onError = function (error, observer) {
|
|
77
77
|
if (observer && observer.error) {
|
package/link/core/core.cjs
CHANGED
|
@@ -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
|
-
globalThis.__DEV__ !== false && globals.invariant.warn(
|
|
55
|
+
globalThis.__DEV__ !== false && globals.invariant.warn(35, 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(
|
|
79
|
+
throw globals.newInvariantError(36);
|
|
80
80
|
};
|
|
81
81
|
ApolloLink.prototype.onError = function (error, observer) {
|
|
82
82
|
if (observer && observer.error) {
|
package/link/core/core.cjs.map
CHANGED
|
@@ -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 } 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(
|
|
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(35, 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(36);\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,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