@apollo/client 4.2.6 → 4.2.8
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/CHANGELOG.md +12 -0
- package/__cjs/core/ApolloClient.cjs +21 -22
- package/__cjs/core/ApolloClient.cjs.map +1 -1
- package/__cjs/core/QueryInfo.cjs +0 -2
- package/__cjs/core/QueryInfo.cjs.map +1 -1
- package/__cjs/core/QueryInfo.d.cts +0 -1
- package/__cjs/core/QueryManager.cjs +1 -11
- package/__cjs/core/QueryManager.cjs.map +1 -1
- package/__cjs/core/QueryManager.d.cts +0 -2
- package/__cjs/version.cjs +1 -1
- package/core/ApolloClient.js +21 -22
- package/core/ApolloClient.js.map +1 -1
- package/core/QueryInfo.d.ts +0 -1
- package/core/QueryInfo.js +0 -2
- package/core/QueryInfo.js.map +1 -1
- package/core/QueryManager.d.ts +0 -2
- package/core/QueryManager.js +1 -11
- package/core/QueryManager.js.map +1 -1
- package/package.json +1 -1
- package/version.js +1 -1
|
@@ -124,8 +124,6 @@ export declare class QueryManager {
|
|
|
124
124
|
getVariables<TVariables extends OperationVariables>(document: DocumentNode, variables?: TVariables): TVariables;
|
|
125
125
|
watchQuery<TData, TVariables extends OperationVariables = OperationVariables>(options: ApolloClient.WatchQueryOptions<TData, TVariables>): ObservableQuery<TData, TVariables>;
|
|
126
126
|
query<TData, TVariables extends OperationVariables = OperationVariables>(options: ApolloClient.QueryOptions<TData, TVariables>): Promise<ApolloClient.QueryResult<MaybeMasked<TData>>>;
|
|
127
|
-
private requestIdCounter;
|
|
128
|
-
generateRequestId(): number;
|
|
129
127
|
clearStore(options?: Cache.ResetOptions): Promise<void>;
|
|
130
128
|
getObservableQueries(include?: InternalRefetchQueriesInclude): Set<ObservableQuery<any, OperationVariables>>;
|
|
131
129
|
refetchObservableQueries(includeStandby?: boolean): Promise<ApolloClient.QueryResult<any>[]>;
|
package/__cjs/version.cjs
CHANGED
package/core/ApolloClient.js
CHANGED
|
@@ -141,29 +141,28 @@ export class ApolloClient {
|
|
|
141
141
|
*/
|
|
142
142
|
if (!hasSuggestedDevtools && __DEV__) {
|
|
143
143
|
hasSuggestedDevtools = true;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
const win = window;
|
|
145
|
+
const ua = win.navigator.userAgent;
|
|
146
|
+
let url;
|
|
147
|
+
if (typeof ua === "string") {
|
|
148
|
+
if (ua.indexOf("Chrome/") > -1) {
|
|
149
|
+
url =
|
|
150
|
+
"https://chrome.google.com/webstore/detail/" +
|
|
151
|
+
"apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm";
|
|
152
|
+
}
|
|
153
|
+
else if (ua.indexOf("Firefox/") > -1) {
|
|
154
|
+
url =
|
|
155
|
+
"https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/";
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
if (win.document &&
|
|
159
|
+
win.top === win.self &&
|
|
160
|
+
/^(https?|file):$/.test(win.location.protocol) &&
|
|
161
|
+
url) {
|
|
147
162
|
setTimeout(() => {
|
|
148
|
-
if (!
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
let url;
|
|
152
|
-
if (typeof ua === "string") {
|
|
153
|
-
if (ua.indexOf("Chrome/") > -1) {
|
|
154
|
-
url =
|
|
155
|
-
"https://chrome.google.com/webstore/detail/" +
|
|
156
|
-
"apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm";
|
|
157
|
-
}
|
|
158
|
-
else if (ua.indexOf("Firefox/") > -1) {
|
|
159
|
-
url =
|
|
160
|
-
"https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/";
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
if (url) {
|
|
164
|
-
__DEV__ && invariant.log("Download the Apollo DevTools for a better development " +
|
|
165
|
-
"experience: %s", url);
|
|
166
|
-
}
|
|
163
|
+
if (!win.__APOLLO_DEVTOOLS_GLOBAL_HOOK__) {
|
|
164
|
+
__DEV__ && invariant.log("Download the Apollo DevTools for a better development " +
|
|
165
|
+
"experience: %s", url);
|
|
167
166
|
}
|
|
168
167
|
}, 10000);
|
|
169
168
|
}
|