@apollo/client 3.4.8 → 3.4.9
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.js +58 -54
- package/apollo-client.cjs.js.map +1 -1
- package/apollo-core.cjs.js +49 -45
- package/apollo-core.cjs.js.map +1 -1
- package/apollo-core.cjs.min.js +1 -1
- package/cache/cache.cjs.js +10 -10
- package/cache/cache.cjs.js.map +1 -1
- package/cache/index.d.ts.map +1 -1
- package/cache/index.js +2 -3
- package/cache/index.js.map +1 -1
- package/cache/inmemory/entityStore.js +1 -1
- package/cache/inmemory/policies.js +3 -3
- package/cache/inmemory/readFromStore.js +3 -3
- package/cache/inmemory/writeToStore.js +1 -1
- package/core/ApolloClient.js +2 -2
- package/core/LocalState.js +1 -1
- package/core/ObservableQuery.js +1 -1
- package/core/QueryManager.d.ts.map +1 -1
- package/core/QueryManager.js +9 -9
- package/core/QueryManager.js.map +1 -1
- package/core/core.cjs.js +15 -14
- package/core/core.cjs.js.map +1 -1
- package/core/index.d.ts.map +1 -1
- package/core/index.js +2 -1
- package/core/index.js.map +1 -1
- package/errors/errors.cjs.js +1 -2
- package/errors/errors.cjs.js.map +1 -1
- package/errors/index.d.ts.map +1 -1
- package/errors/index.js +2 -3
- package/errors/index.js.map +1 -1
- package/invariantErrorCodes.js +56 -81
- package/link/core/ApolloLink.js +1 -1
- package/link/core/core.cjs.js +3 -3
- package/link/core/core.cjs.js.map +1 -1
- package/link/core/index.d.ts.map +1 -1
- package/link/core/index.js +2 -3
- package/link/core/index.js.map +1 -1
- package/link/http/checkFetcher.js +1 -1
- package/link/http/http.cjs.js +5 -3
- package/link/http/http.cjs.js.map +1 -1
- package/link/http/index.d.ts.map +1 -1
- package/link/http/index.js +2 -0
- package/link/http/index.js.map +1 -1
- package/link/http/serializeFetchParameter.js +1 -1
- package/link/persisted-queries/index.d.ts.map +1 -1
- package/link/persisted-queries/index.js +4 -2
- package/link/persisted-queries/index.js.map +1 -1
- package/link/persisted-queries/persisted-queries.cjs.js +4 -3
- package/link/persisted-queries/persisted-queries.cjs.js.map +1 -1
- package/link/utils/index.d.ts.map +1 -1
- package/link/utils/index.js +2 -0
- package/link/utils/index.js.map +1 -1
- package/link/utils/utils.cjs.js +3 -1
- package/link/utils/utils.cjs.js.map +1 -1
- package/link/utils/validateOperation.js +1 -1
- package/package.json +5 -5
- package/react/context/ApolloConsumer.js +1 -1
- package/react/context/ApolloProvider.js +1 -1
- package/react/context/context.cjs.js +5 -3
- package/react/context/context.cjs.js.map +1 -1
- package/react/context/index.d.ts.map +1 -1
- package/react/context/index.js +2 -0
- package/react/context/index.js.map +1 -1
- package/react/data/OperationData.js +2 -2
- package/react/data/data.cjs.js +5 -2
- package/react/data/data.cjs.js.map +1 -1
- package/react/data/index.d.ts.map +1 -1
- package/react/data/index.js +2 -0
- package/react/data/index.js.map +1 -1
- package/react/hoc/hoc-utils.js +1 -1
- package/react/hoc/hoc.cjs.js +5 -2
- package/react/hoc/hoc.cjs.js.map +1 -1
- package/react/hoc/index.d.ts.map +1 -1
- package/react/hoc/index.js +2 -0
- package/react/hoc/index.js.map +1 -1
- package/react/hoc/withApollo.js +1 -1
- package/react/hooks/hooks.cjs.js +4 -1
- package/react/hooks/hooks.cjs.js.map +1 -1
- package/react/hooks/index.d.ts.map +1 -1
- package/react/hooks/index.js +2 -0
- package/react/hooks/index.js.map +1 -1
- package/react/hooks/useApolloClient.js +1 -1
- package/react/index.d.ts.map +1 -1
- package/react/index.js +2 -3
- package/react/index.js.map +1 -1
- package/react/parser/index.d.ts.map +1 -1
- package/react/parser/index.js +6 -4
- package/react/parser/index.js.map +1 -1
- package/react/parser/parser.cjs.js +6 -4
- package/react/parser/parser.cjs.js.map +1 -1
- package/react/react.cjs.js +1 -2
- package/react/react.cjs.js.map +1 -1
- package/testing/index.js +2 -3
- package/testing/index.js.map +1 -1
- package/testing/testing.cjs.js +3 -3
- package/testing/testing.cjs.js.map +1 -1
- package/utilities/globals/index.d.ts +1 -0
- package/utilities/globals/index.d.ts.map +1 -1
- package/utilities/globals/index.js +4 -0
- package/utilities/globals/index.js.map +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/storeUtils.js +1 -1
- package/utilities/index.d.ts +2 -2
- package/utilities/index.d.ts.map +1 -1
- package/utilities/index.js +3 -4
- package/utilities/index.js.map +1 -1
- package/utilities/observables/Concast.js +1 -1
- package/utilities/observables/Concast.js.map +1 -1
- package/utilities/testing/mocking/mockLink.js +1 -1
- package/utilities/utilities.cjs.js +22 -18
- package/utilities/utilities.cjs.js.map +1 -1
- package/version.js +1 -1
package/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,YAAY,GACb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,WAAW,EACX,qBAAqB,EACrB,WAAW,EACX,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,cAAc,SAAS,CAAC;AACxB,OAAO,EACL,QAAQ,EACR,eAAe,GAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAIvD,OAAO,EAGL,KAAK,EACL,WAAW,EACX,WAAW,EACX,SAAS,EACT,aAAa,EACb,mBAAmB,EACnB,iBAAiB,EACjB,uBAAuB,EACvB,WAAW,EACX,OAAO,EACP,YAAY,EACZ,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAElB,cAAc,yBAAyB,CAAC;AAIxC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,OAAO,EACL,SAAS,EACT,SAAS,EACT,WAAW,EACX,WAAW,EACX,gBAAgB,GACjB,MAAM,eAAe,CAAC;AAIvB,OAAO,EACL,UAAU,EACV,QAAQ,EACR,sBAAsB,EACtB,SAAS,EACT,WAAW,EACX,aAAa,EACb,WAAW,GACZ,MAAM,cAAc,CAAC;AAQtB,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,YAAY,IAAI,eAAe,EAAE,CAAA;AAe1C,OAAO,EACL,GAAG,EACH,WAAW,EACX,uBAAuB,EACvB,mCAAmC,EACnC,oCAAoC,GACrC,MAAM,aAAa,CAAC"}
|
package/core/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { DEV } from "../utilities/index.js";
|
|
1
|
+
import { DEV, checkDEV } from "../utilities/index.js";
|
|
2
|
+
checkDEV();
|
|
2
3
|
export { ApolloClient, mergeOptions, } from "./ApolloClient.js";
|
|
3
4
|
export { ObservableQuery, applyNextFetchPolicy, } from "./ObservableQuery.js";
|
|
4
5
|
export { NetworkStatus } from "./networkStatus.js";
|
package/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,QAAQ,EAAE,CAAC;AAEX,OAAO,EACL,YAAY,EAGZ,YAAY,GACb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,eAAe,EAGf,oBAAoB,GACrB,MAAM,mBAAmB,CAAC;AAY3B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,cAAc,SAAS,CAAC;AAKxB,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAIvD,OAAO,EAGL,KAAK,EACL,WAAW,EAGX,aAAa,EAEb,iBAAiB,EACjB,uBAAuB,EAEvB,OAAO,GAQR,MAAM,UAAU,CAAC;AAElB,cAAc,yBAAyB,CAAC;AAIxC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,OAAO,EACL,SAAS,EACT,SAAS,EACT,WAAW,EAEX,gBAAgB,GACjB,MAAM,eAAe,CAAC;AAIvB,OAAO,EACL,UAAU,EAIV,WAAW,EACX,aAAa,GAEd,MAAM,cAAc,CAAC;AAQtB,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,YAAY,IAAI,eAAe,EAAE,CAAA;AAC1C,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;AAcrC,OAAO,EACL,GAAG,EACH,WAAW,EACX,uBAAuB,EACvB,mCAAmC,EACnC,oCAAoC,GACrC,MAAM,aAAa,CAAC","sourcesContent":["/* Core */\n\nimport { DEV, checkDEV } from \"../utilities\";\ncheckDEV();\n\nexport {\n ApolloClient,\n ApolloClientOptions,\n DefaultOptions,\n mergeOptions,\n} from './ApolloClient';\nexport {\n ObservableQuery,\n FetchMoreOptions,\n UpdateQueryOptions,\n applyNextFetchPolicy,\n} from './ObservableQuery';\nexport {\n QueryOptions,\n WatchQueryOptions,\n MutationOptions,\n SubscriptionOptions,\n FetchPolicy,\n WatchQueryFetchPolicy,\n ErrorPolicy,\n FetchMoreQueryOptions,\n SubscribeToMoreOptions,\n} from './watchQueryOptions';\nexport { NetworkStatus } from './networkStatus';\nexport * from './types';\nexport {\n Resolver,\n FragmentMatcher,\n} from './LocalState';\nexport { isApolloError, ApolloError } from '../errors';\n\n/* Cache */\n\nexport {\n // All the exports (types and values) from ../cache, minus cacheSlot,\n // which we want to keep semi-private.\n Cache,\n ApolloCache,\n Transaction,\n DataProxy,\n InMemoryCache,\n InMemoryCacheConfig,\n MissingFieldError,\n defaultDataIdFromObject,\n ReactiveVar,\n makeVar,\n TypePolicies,\n TypePolicy,\n FieldPolicy,\n FieldReadFunction,\n FieldMergeFunction,\n FieldFunctionOptions,\n PossibleTypesMap,\n} from '../cache';\n\nexport * from '../cache/inmemory/types';\n\n/* Link */\n\nexport * from '../link/core';\nexport * from '../link/http';\nexport {\n fromError,\n toPromise,\n fromPromise,\n ServerError,\n throwServerError,\n} from '../link/utils';\n\n/* Utilities */\n\nexport {\n Observable,\n Observer,\n ObservableSubscription,\n Reference,\n isReference,\n makeReference,\n StoreObject,\n} from '../utilities';\n\n/* Supporting */\n\n// The verbosity of invariant.{log,warn,error} can be controlled globally\n// (for anyone using the same ts-invariant package) by passing \"log\",\n// \"warn\", \"error\", or \"silent\" to setVerbosity (\"log\" is the default).\n// Note that all invariant.* logging is hidden in production.\nimport { setVerbosity } from \"ts-invariant\";\nexport { setVerbosity as setLogVerbosity }\nsetVerbosity(DEV ? \"log\" : \"silent\");\n\n// Note that importing `gql` by itself, then destructuring\n// additional properties separately before exporting, is intentional.\n// Due to the way the `graphql-tag` library is setup, certain bundlers\n// can't find the properties added to the exported `gql` function without\n// additional guidance (e.g. Rollup - see\n// https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module).\n// Instead of having people that are using bundlers with `@apollo/client` add\n// extra bundler config to help `graphql-tag` exports be found (which would be\n// awkward since they aren't importing `graphql-tag` themselves), this\n// workaround of pulling the extra properties off the `gql` function,\n// then re-exporting them separately, helps keeps bundlers happy without any\n// additional config changes.\nexport {\n gql,\n resetCaches,\n disableFragmentWarnings,\n enableExperimentalFragmentVariables,\n disableExperimentalFragmentVariables,\n} from 'graphql-tag';\n"]}
|
package/errors/errors.cjs.js
CHANGED
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
|
-
var tsInvariant = require('ts-invariant');
|
|
7
6
|
var utilities = require('../utilities');
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
utilities.checkDEV();
|
|
10
9
|
function isApolloError(err) {
|
|
11
10
|
return err.hasOwnProperty('graphQLErrors');
|
|
12
11
|
}
|
package/errors/errors.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.cjs.js","sources":["index.js"],"sourcesContent":["import { __extends } from \"tslib\";\nimport {
|
|
1
|
+
{"version":3,"file":"errors.cjs.js","sources":["index.js"],"sourcesContent":["import { __extends } from \"tslib\";\nimport { checkDEV } from \"../utilities\";\ncheckDEV();\nimport { isNonEmptyArray } from '../utilities';\nexport function isApolloError(err) {\n return err.hasOwnProperty('graphQLErrors');\n}\nvar generateErrorMessage = function (err) {\n var message = '';\n if (isNonEmptyArray(err.graphQLErrors) || isNonEmptyArray(err.clientErrors)) {\n var errors = (err.graphQLErrors || [])\n .concat(err.clientErrors || []);\n errors.forEach(function (error) {\n var errorMessage = error\n ? error.message\n : 'Error message not found.';\n message += errorMessage + \"\\n\";\n });\n }\n if (err.networkError) {\n message += err.networkError.message + \"\\n\";\n }\n message = message.replace(/\\n$/, '');\n return message;\n};\nvar ApolloError = (function (_super) {\n __extends(ApolloError, _super);\n function ApolloError(_a) {\n var graphQLErrors = _a.graphQLErrors, clientErrors = _a.clientErrors, networkError = _a.networkError, errorMessage = _a.errorMessage, extraInfo = _a.extraInfo;\n var _this = _super.call(this, errorMessage) || this;\n _this.graphQLErrors = graphQLErrors || [];\n _this.clientErrors = clientErrors || [];\n _this.networkError = networkError || null;\n _this.message = errorMessage || generateErrorMessage(_this);\n _this.extraInfo = extraInfo;\n _this.__proto__ = ApolloError.prototype;\n return _this;\n }\n return ApolloError;\n}(Error));\nexport { ApolloError };\n//# sourceMappingURL=index.js.map"],"names":["checkDEV","isNonEmptyArray","__extends"],"mappings":";;;;;;;AAEAA,kBAAQ,EAAE,CAAC;AAEJ,SAAS,aAAa,CAAC,GAAG,EAAE;AACnC,IAAI,OAAO,GAAG,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;AAC/C,CAAC;AACD,IAAI,oBAAoB,GAAG,UAAU,GAAG,EAAE;AAC1C,IAAI,IAAI,OAAO,GAAG,EAAE,CAAC;AACrB,IAAI,IAAIC,yBAAe,CAAC,GAAG,CAAC,aAAa,CAAC,IAAIA,yBAAe,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE;AACjF,QAAQ,IAAI,MAAM,GAAG,CAAC,GAAG,CAAC,aAAa,IAAI,EAAE;AAC7C,aAAa,MAAM,CAAC,GAAG,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC;AAC5C,QAAQ,MAAM,CAAC,OAAO,CAAC,UAAU,KAAK,EAAE;AACxC,YAAY,IAAI,YAAY,GAAG,KAAK;AACpC,kBAAkB,KAAK,CAAC,OAAO;AAC/B,kBAAkB,0BAA0B,CAAC;AAC7C,YAAY,OAAO,IAAI,YAAY,GAAG,IAAI,CAAC;AAC3C,SAAS,CAAC,CAAC;AACX,KAAK;AACL,IAAI,IAAI,GAAG,CAAC,YAAY,EAAE;AAC1B,QAAQ,OAAO,IAAI,GAAG,CAAC,YAAY,CAAC,OAAO,GAAG,IAAI,CAAC;AACnD,KAAK;AACL,IAAI,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AACzC,IAAI,OAAO,OAAO,CAAC;AACnB,CAAC,CAAC;AACC,IAAC,WAAW,IAAI,UAAU,MAAM,EAAE;AACrC,IAAIC,eAAS,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;AACnC,IAAI,SAAS,WAAW,CAAC,EAAE,EAAE;AAC7B,QAAQ,IAAI,aAAa,GAAG,EAAE,CAAC,aAAa,EAAE,YAAY,GAAG,EAAE,CAAC,YAAY,EAAE,YAAY,GAAG,EAAE,CAAC,YAAY,EAAE,YAAY,GAAG,EAAE,CAAC,YAAY,EAAE,SAAS,GAAG,EAAE,CAAC,SAAS,CAAC;AACvK,QAAQ,IAAI,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,IAAI,IAAI,CAAC;AAC5D,QAAQ,KAAK,CAAC,aAAa,GAAG,aAAa,IAAI,EAAE,CAAC;AAClD,QAAQ,KAAK,CAAC,YAAY,GAAG,YAAY,IAAI,EAAE,CAAC;AAChD,QAAQ,KAAK,CAAC,YAAY,GAAG,YAAY,IAAI,IAAI,CAAC;AAClD,QAAQ,KAAK,CAAC,OAAO,GAAG,YAAY,IAAI,oBAAoB,CAAC,KAAK,CAAC,CAAC;AACpE,QAAQ,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;AACpC,QAAQ,KAAK,CAAC,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;AAChD,QAAQ,OAAO,KAAK,CAAC;AACrB,KAAK;AACL,IAAI,OAAO,WAAW,CAAC;AACvB,CAAC,CAAC,KAAK,CAAC;;;;;"}
|
package/errors/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,wBAAgB,aAAa,CAAC,GAAG,EAAE,KAAK,GAAG,GAAG,IAAI,WAAW,CAE5D;AA6BD,qBAAa,WAAY,SAAQ,KAAK;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IAC3C,YAAY,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;IACnC,YAAY,EAAE,KAAK,GAAG,gBAAgB,GAAG,WAAW,GAAG,IAAI,CAAC;IAK5D,SAAS,EAAE,GAAG,CAAC;gBAKV,EACV,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,SAAS,GACV,EAAE;QACD,aAAa,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;QAC5C,YAAY,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;QACpC,YAAY,CAAC,EAAE,KAAK,GAAG,gBAAgB,GAAG,WAAW,GAAG,IAAI,CAAC;QAC7D,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,SAAS,CAAC,EAAE,GAAG,CAAC;KACjB;CAYF"}
|
package/errors/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
__DEV__ ? invariant("boolean" === typeof DEV, DEV) : invariant("boolean" === typeof DEV, 22);
|
|
2
|
+
import { checkDEV } from "../utilities/index.js";
|
|
3
|
+
checkDEV();
|
|
5
4
|
import { isNonEmptyArray } from "../utilities/index.js";
|
|
6
5
|
export function isApolloError(err) {
|
|
7
6
|
return err.hasOwnProperty('graphQLErrors');
|
package/errors/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":";A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AAC;QACvC,KAAI,CAAC,YAAY,GAAG,YAAY,IAAI,IAAI,CAAC;QACzC,KAAI,CAAC,OAAO,GAAG,YAAY,IAAI,oBAAoB,CAAC,KAAI,CAAC,CAAC;QAC1D,KAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAI1B,KAAY,CAAC,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;;IAClD,CAAC;IACH,kBAAC;AAAD,CAAC,AAtCD,CAAiC,KAAK,GAsCrC","sourcesContent":["import { checkDEV } from \"../utilities\";\ncheckDEV();\n\nimport { GraphQLError } from 'graphql';\n\nimport { isNonEmptyArray } from '../utilities';\nimport { ServerParseError } from '../link/http';\nimport { ServerError } from '../link/utils';\n\nexport function isApolloError(err: Error): err is ApolloError {\n return err.hasOwnProperty('graphQLErrors');\n}\n\n// Sets the error message on this error according to the\n// the GraphQL and network errors that are present.\n// If the error message has already been set through the\n// constructor or otherwise, this function is a nop.\nconst generateErrorMessage = (err: ApolloError) => {\n let message = '';\n // If we have GraphQL errors present, add that to the error message.\n if (isNonEmptyArray(err.graphQLErrors) || isNonEmptyArray(err.clientErrors)) {\n const errors = ((err.graphQLErrors || []) as readonly Error[])\n .concat(err.clientErrors || []);\n errors.forEach((error: Error) => {\n const errorMessage = error\n ? error.message\n : 'Error message not found.';\n message += `${errorMessage}\\n`;\n });\n }\n\n if (err.networkError) {\n message += `${err.networkError.message}\\n`;\n }\n\n // strip newline from the end of the message\n message = message.replace(/\\n$/, '');\n return message;\n};\n\nexport class ApolloError extends Error {\n public message: string;\n public graphQLErrors: ReadonlyArray<GraphQLError>;\n public clientErrors: ReadonlyArray<Error>;\n public networkError: Error | ServerParseError | ServerError | null;\n\n // An object that can be used to provide some additional information\n // about an error, e.g. specifying the type of error this is. Used\n // internally within Apollo Client.\n public extraInfo: any;\n\n // Constructs an instance of ApolloError given a GraphQLError\n // or a network error. Note that one of these has to be a valid\n // value or the constructed error will be meaningless.\n constructor({\n graphQLErrors,\n clientErrors,\n networkError,\n errorMessage,\n extraInfo,\n }: {\n graphQLErrors?: ReadonlyArray<GraphQLError>;\n clientErrors?: ReadonlyArray<Error>;\n networkError?: Error | ServerParseError | ServerError | null;\n errorMessage?: string;\n extraInfo?: any;\n }) {\n super(errorMessage);\n this.graphQLErrors = graphQLErrors || [];\n this.clientErrors = clientErrors || [];\n this.networkError = networkError || null;\n this.message = errorMessage || generateErrorMessage(this);\n this.extraInfo = extraInfo;\n\n // We're not using `Object.setPrototypeOf` here as it isn't fully\n // supported on Android (see issue #3236).\n (this as any).__proto__ = ApolloError.prototype;\n }\n}\n"]}
|
package/invariantErrorCodes.js
CHANGED
|
@@ -5,39 +5,34 @@
|
|
|
5
5
|
// consult the @apollo/client/invariantErrorCodes.js file specific to
|
|
6
6
|
// your @apollo/client version. This file is not meant to be imported.
|
|
7
7
|
{
|
|
8
|
-
"@apollo/client version": "3.4.
|
|
8
|
+
"@apollo/client version": "3.4.9",
|
|
9
9
|
|
|
10
10
|
1: {
|
|
11
|
-
file: "@apollo/client/cache/index.js",
|
|
12
|
-
node: invariant("boolean" === typeof DEV, DEV)
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
2: {
|
|
16
11
|
file: "@apollo/client/cache/inmemory/entityStore.js",
|
|
17
12
|
node: invariant(typeof dataId === "string", "store.merge expects a string ID")
|
|
18
13
|
},
|
|
19
14
|
|
|
20
|
-
|
|
15
|
+
2: {
|
|
21
16
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
22
17
|
node: invariant(!old || old === which, "Cannot change root " + which + " __typename more than once")
|
|
23
18
|
},
|
|
24
19
|
|
|
25
|
-
|
|
20
|
+
3: {
|
|
26
21
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
27
22
|
node: new InvariantError("Cannot automatically merge arrays")
|
|
28
23
|
},
|
|
29
24
|
|
|
30
|
-
|
|
25
|
+
4: {
|
|
31
26
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
32
27
|
node: invariant(!strict, "Missing field '" + responseName + "' while computing key fields")
|
|
33
28
|
},
|
|
34
29
|
|
|
35
|
-
|
|
30
|
+
5: {
|
|
36
31
|
file: "@apollo/client/cache/inmemory/readFromStore.js",
|
|
37
32
|
node: new InvariantError("Dangling reference to missing " + objectOrReference.__ref + " object")
|
|
38
33
|
},
|
|
39
34
|
|
|
40
|
-
|
|
35
|
+
6: {
|
|
41
36
|
file: "@apollo/client/cache/inmemory/readFromStore.js",
|
|
42
37
|
|
|
43
38
|
node: new InvariantError("Can't find field '" + selection.name.value + "' on " + (isReference(objectOrReference)
|
|
@@ -45,17 +40,17 @@
|
|
|
45
40
|
: "object " + JSON.stringify(objectOrReference, null, 2)))
|
|
46
41
|
},
|
|
47
42
|
|
|
48
|
-
|
|
43
|
+
7: {
|
|
49
44
|
file: "@apollo/client/cache/inmemory/readFromStore.js",
|
|
50
45
|
node: invariant(!isReference(value), "Missing selection set for object of type " + getTypenameFromStoreObject(store, value) + " returned for query field " + field.name.value)
|
|
51
46
|
},
|
|
52
47
|
|
|
53
|
-
|
|
48
|
+
8: {
|
|
54
49
|
file: "@apollo/client/cache/inmemory/writeToStore.js",
|
|
55
50
|
node: new InvariantError("Could not identify object " + JSON.stringify(result))
|
|
56
51
|
},
|
|
57
52
|
|
|
58
|
-
|
|
53
|
+
9: {
|
|
59
54
|
file: "@apollo/client/core/ApolloClient.js",
|
|
60
55
|
|
|
61
56
|
node: new InvariantError("To initialize Apollo Client, you must specify a 'cache' property " +
|
|
@@ -63,7 +58,7 @@
|
|
|
63
58
|
"For more information, please visit: https://go.apollo.dev/c/docs")
|
|
64
59
|
},
|
|
65
60
|
|
|
66
|
-
|
|
61
|
+
10: {
|
|
67
62
|
file: "@apollo/client/core/ApolloClient.js",
|
|
68
63
|
|
|
69
64
|
node: invariant(options.fetchPolicy !== 'cache-and-network', 'The cache-and-network fetchPolicy does not work with client.query, because ' +
|
|
@@ -72,86 +67,76 @@
|
|
|
72
67
|
'using a different fetchPolicy, such as cache-first or network-only.')
|
|
73
68
|
},
|
|
74
69
|
|
|
75
|
-
|
|
70
|
+
11: {
|
|
76
71
|
file: "@apollo/client/core/LocalState.js",
|
|
77
72
|
node: invariant(fragment, "No fragment named " + selection.name.value)
|
|
78
73
|
},
|
|
79
74
|
|
|
80
|
-
|
|
75
|
+
12: {
|
|
81
76
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
82
77
|
node: invariant(pollInterval, 'Attempted to start a polling query without a polling interval.')
|
|
83
78
|
},
|
|
84
79
|
|
|
85
|
-
|
|
80
|
+
13: {
|
|
86
81
|
file: "@apollo/client/core/QueryManager.js",
|
|
87
82
|
node: new InvariantError('QueryManager stopped while query was in flight')
|
|
88
83
|
},
|
|
89
84
|
|
|
90
|
-
|
|
85
|
+
14: {
|
|
91
86
|
file: "@apollo/client/core/QueryManager.js",
|
|
92
87
|
node: invariant(mutation, 'mutation option is required. You must specify your GraphQL document in the mutation option.')
|
|
93
88
|
},
|
|
94
89
|
|
|
95
|
-
|
|
90
|
+
15: {
|
|
96
91
|
file: "@apollo/client/core/QueryManager.js",
|
|
97
92
|
|
|
98
93
|
node: invariant(fetchPolicy === 'network-only' ||
|
|
99
94
|
fetchPolicy === 'no-cache', "Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write.")
|
|
100
95
|
},
|
|
101
96
|
|
|
102
|
-
|
|
97
|
+
16: {
|
|
103
98
|
file: "@apollo/client/core/QueryManager.js",
|
|
104
99
|
|
|
105
100
|
node: invariant(options.query, 'query option is required. You must specify your GraphQL document ' +
|
|
106
101
|
'in the query option.')
|
|
107
102
|
},
|
|
108
103
|
|
|
109
|
-
|
|
104
|
+
17: {
|
|
110
105
|
file: "@apollo/client/core/QueryManager.js",
|
|
111
106
|
node: invariant(options.query.kind === 'Document', 'You must wrap the query string in a "gql" tag.')
|
|
112
107
|
},
|
|
113
108
|
|
|
114
|
-
|
|
109
|
+
18: {
|
|
115
110
|
file: "@apollo/client/core/QueryManager.js",
|
|
116
111
|
node: invariant(!options.returnPartialData, 'returnPartialData option only supported on watchQuery.')
|
|
117
112
|
},
|
|
118
113
|
|
|
119
|
-
|
|
114
|
+
19: {
|
|
120
115
|
file: "@apollo/client/core/QueryManager.js",
|
|
121
116
|
node: invariant(!options.pollInterval, 'pollInterval option only supported on watchQuery.')
|
|
122
117
|
},
|
|
123
118
|
|
|
124
|
-
|
|
119
|
+
20: {
|
|
125
120
|
file: "@apollo/client/core/QueryManager.js",
|
|
126
121
|
node: new InvariantError('Store reset while query was in flight (not completed in link chain)')
|
|
127
122
|
},
|
|
128
123
|
|
|
129
|
-
|
|
130
|
-
file: "@apollo/client/errors/index.js",
|
|
131
|
-
node: invariant("boolean" === typeof DEV, DEV)
|
|
132
|
-
},
|
|
133
|
-
|
|
134
|
-
23: {
|
|
124
|
+
21: {
|
|
135
125
|
file: "@apollo/client/link/core/ApolloLink.js",
|
|
136
126
|
node: new InvariantError('request is not implemented')
|
|
137
127
|
},
|
|
138
128
|
|
|
139
|
-
|
|
140
|
-
file: "@apollo/client/link/core/index.js",
|
|
141
|
-
node: invariant("boolean" === typeof DEV, DEV)
|
|
142
|
-
},
|
|
143
|
-
|
|
144
|
-
25: {
|
|
129
|
+
22: {
|
|
145
130
|
file: "@apollo/client/link/http/checkFetcher.js",
|
|
146
131
|
node: new InvariantError("\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 ")
|
|
147
132
|
},
|
|
148
133
|
|
|
149
|
-
|
|
134
|
+
23: {
|
|
150
135
|
file: "@apollo/client/link/http/serializeFetchParameter.js",
|
|
151
136
|
node: new InvariantError("Network request failed. " + label + " is not serializable: " + e.message)
|
|
152
137
|
},
|
|
153
138
|
|
|
154
|
-
|
|
139
|
+
24: {
|
|
155
140
|
file: "@apollo/client/link/persisted-queries/index.js",
|
|
156
141
|
|
|
157
142
|
node: invariant(options && (typeof options.sha256 === 'function' ||
|
|
@@ -160,31 +145,31 @@
|
|
|
160
145
|
'parameter.')
|
|
161
146
|
},
|
|
162
147
|
|
|
163
|
-
|
|
148
|
+
25: {
|
|
164
149
|
file: "@apollo/client/link/persisted-queries/index.js",
|
|
165
150
|
node: invariant(forward, 'PersistedQueryLink cannot be the last link in the chain.')
|
|
166
151
|
},
|
|
167
152
|
|
|
168
|
-
|
|
153
|
+
26: {
|
|
169
154
|
file: "@apollo/client/link/utils/validateOperation.js",
|
|
170
155
|
node: new InvariantError("illegal argument: " + key)
|
|
171
156
|
},
|
|
172
157
|
|
|
173
|
-
|
|
158
|
+
27: {
|
|
174
159
|
file: "@apollo/client/react/context/ApolloConsumer.js",
|
|
175
160
|
|
|
176
161
|
node: invariant(context && context.client, 'Could not find "client" in the context of ApolloConsumer. ' +
|
|
177
162
|
'Wrap the root component in an <ApolloProvider>.')
|
|
178
163
|
},
|
|
179
164
|
|
|
180
|
-
|
|
165
|
+
28: {
|
|
181
166
|
file: "@apollo/client/react/context/ApolloProvider.js",
|
|
182
167
|
|
|
183
168
|
node: invariant(context.client, 'ApolloProvider was not passed a client instance. Make ' +
|
|
184
169
|
'sure you pass in your client via the "client" prop.')
|
|
185
170
|
},
|
|
186
171
|
|
|
187
|
-
|
|
172
|
+
29: {
|
|
188
173
|
file: "@apollo/client/react/data/OperationData.js",
|
|
189
174
|
|
|
190
175
|
node: invariant(!!client, 'Could not find "client" in the context or passed in as an option. ' +
|
|
@@ -192,40 +177,35 @@
|
|
|
192
177
|
'ApolloClient instance in via options.')
|
|
193
178
|
},
|
|
194
179
|
|
|
195
|
-
|
|
180
|
+
30: {
|
|
196
181
|
file: "@apollo/client/react/data/OperationData.js",
|
|
197
182
|
|
|
198
183
|
node: invariant(operation.type === type, "Running a " + requiredOperationName + " requires a graphql " +
|
|
199
184
|
(requiredOperationName + ", but a " + usedOperationName + " was used instead."))
|
|
200
185
|
},
|
|
201
186
|
|
|
202
|
-
|
|
187
|
+
31: {
|
|
203
188
|
file: "@apollo/client/react/hoc/hoc-utils.js",
|
|
204
189
|
|
|
205
190
|
node: invariant(this.withRef, "To access the wrapped instance, you need to specify " +
|
|
206
191
|
"{ withRef: true } in the options")
|
|
207
192
|
},
|
|
208
193
|
|
|
209
|
-
|
|
194
|
+
32: {
|
|
210
195
|
file: "@apollo/client/react/hoc/withApollo.js",
|
|
211
196
|
|
|
212
197
|
node: invariant(operationOptions.withRef, "To access the wrapped instance, you need to specify " +
|
|
213
198
|
"{ withRef: true } in the options")
|
|
214
199
|
},
|
|
215
200
|
|
|
216
|
-
|
|
201
|
+
33: {
|
|
217
202
|
file: "@apollo/client/react/hooks/useApolloClient.js",
|
|
218
203
|
|
|
219
204
|
node: invariant(client, 'No Apollo Client instance can be found. Please ensure that you ' +
|
|
220
205
|
'have called `ApolloProvider` higher up in your tree.')
|
|
221
206
|
},
|
|
222
207
|
|
|
223
|
-
|
|
224
|
-
file: "@apollo/client/react/index.js",
|
|
225
|
-
node: invariant("boolean" === typeof DEV, DEV)
|
|
226
|
-
},
|
|
227
|
-
|
|
228
|
-
38: {
|
|
208
|
+
34: {
|
|
229
209
|
file: "@apollo/client/react/parser/index.js",
|
|
230
210
|
|
|
231
211
|
node: invariant(!!document && !!document.kind, "Argument of " + document + " passed to parser was not a valid GraphQL " +
|
|
@@ -233,7 +213,7 @@
|
|
|
233
213
|
"to convert your operation into a document")
|
|
234
214
|
},
|
|
235
215
|
|
|
236
|
-
|
|
216
|
+
35: {
|
|
237
217
|
file: "@apollo/client/react/parser/index.js",
|
|
238
218
|
|
|
239
219
|
node: invariant(!fragments.length ||
|
|
@@ -241,7 +221,7 @@
|
|
|
241
221
|
"You must include a query, subscription or mutation as well")
|
|
242
222
|
},
|
|
243
223
|
|
|
244
|
-
|
|
224
|
+
36: {
|
|
245
225
|
file: "@apollo/client/react/parser/index.js",
|
|
246
226
|
|
|
247
227
|
node: invariant(queries.length + mutations.length + subscriptions.length <= 1, "react-apollo only supports a query, subscription, or a mutation per HOC. " +
|
|
@@ -250,7 +230,7 @@
|
|
|
250
230
|
"You can use 'compose' to join multiple operation types to a component")
|
|
251
231
|
},
|
|
252
232
|
|
|
253
|
-
|
|
233
|
+
37: {
|
|
254
234
|
file: "@apollo/client/react/parser/index.js",
|
|
255
235
|
|
|
256
236
|
node: invariant(definitions.length === 1, "react-apollo only supports one definition per HOC. " + document + " had " +
|
|
@@ -258,91 +238,91 @@
|
|
|
258
238
|
"You can use 'compose' to join multiple operation types to a component")
|
|
259
239
|
},
|
|
260
240
|
|
|
261
|
-
|
|
262
|
-
file: "@apollo/client/
|
|
241
|
+
38: {
|
|
242
|
+
file: "@apollo/client/utilities/globals/index.js",
|
|
263
243
|
node: invariant("boolean" === typeof DEV, DEV)
|
|
264
244
|
},
|
|
265
245
|
|
|
266
|
-
|
|
246
|
+
39: {
|
|
267
247
|
file: "@apollo/client/utilities/graphql/directives.js",
|
|
268
248
|
node: invariant(evaledValue !== void 0, "Invalid variable referenced in @" + directive.name.value + " directive.")
|
|
269
249
|
},
|
|
270
250
|
|
|
271
|
-
|
|
251
|
+
40: {
|
|
272
252
|
file: "@apollo/client/utilities/graphql/directives.js",
|
|
273
253
|
node: invariant(directiveArguments && directiveArguments.length === 1, "Incorrect number of arguments for the @" + directiveName + " directive.")
|
|
274
254
|
},
|
|
275
255
|
|
|
276
|
-
|
|
256
|
+
41: {
|
|
277
257
|
file: "@apollo/client/utilities/graphql/directives.js",
|
|
278
258
|
node: invariant(ifArgument.name && ifArgument.name.value === 'if', "Invalid argument for the @" + directiveName + " directive.")
|
|
279
259
|
},
|
|
280
260
|
|
|
281
|
-
|
|
261
|
+
42: {
|
|
282
262
|
file: "@apollo/client/utilities/graphql/directives.js",
|
|
283
263
|
|
|
284
264
|
node: invariant(ifValue &&
|
|
285
265
|
(ifValue.kind === 'Variable' || ifValue.kind === 'BooleanValue'), "Argument for the @" + directiveName + " directive must be a variable or a boolean value.")
|
|
286
266
|
},
|
|
287
267
|
|
|
288
|
-
|
|
268
|
+
43: {
|
|
289
269
|
file: "@apollo/client/utilities/graphql/fragments.js",
|
|
290
270
|
|
|
291
271
|
node: new InvariantError("Found a " + definition.operation + " operation" + (definition.name ? " named '" + definition.name.value + "'" : '') + ". " +
|
|
292
272
|
'No operations are allowed when using a fragment as a query. Only fragments are allowed.')
|
|
293
273
|
},
|
|
294
274
|
|
|
295
|
-
|
|
275
|
+
44: {
|
|
296
276
|
file: "@apollo/client/utilities/graphql/fragments.js",
|
|
297
277
|
node: invariant(fragments.length === 1, "Found " + fragments.length + " fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")
|
|
298
278
|
},
|
|
299
279
|
|
|
300
|
-
|
|
280
|
+
45: {
|
|
301
281
|
file: "@apollo/client/utilities/graphql/fragments.js",
|
|
302
282
|
node: invariant(fragment, "No fragment named " + selection.name.value + ".")
|
|
303
283
|
},
|
|
304
284
|
|
|
305
|
-
|
|
285
|
+
46: {
|
|
306
286
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
307
287
|
node: invariant(doc && doc.kind === 'Document', "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")
|
|
308
288
|
},
|
|
309
289
|
|
|
310
|
-
|
|
290
|
+
47: {
|
|
311
291
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
312
292
|
node: new InvariantError("Schema type definitions not allowed in queries. Found: \"" + definition.kind + "\"")
|
|
313
293
|
},
|
|
314
294
|
|
|
315
|
-
|
|
295
|
+
48: {
|
|
316
296
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
317
297
|
node: invariant(operations.length <= 1, "Ambiguous GraphQL document: contains " + operations.length + " operations")
|
|
318
298
|
},
|
|
319
299
|
|
|
320
|
-
|
|
300
|
+
49: {
|
|
321
301
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
322
302
|
node: invariant(queryDef && queryDef.operation === 'query', 'Must contain a query definition.')
|
|
323
303
|
},
|
|
324
304
|
|
|
325
|
-
|
|
305
|
+
50: {
|
|
326
306
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
327
307
|
node: invariant(doc.kind === 'Document', "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")
|
|
328
308
|
},
|
|
329
309
|
|
|
330
|
-
|
|
310
|
+
51: {
|
|
331
311
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
332
312
|
node: invariant(doc.definitions.length <= 1, 'Fragment must have exactly one definition.')
|
|
333
313
|
},
|
|
334
314
|
|
|
335
|
-
|
|
315
|
+
52: {
|
|
336
316
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
337
317
|
node: invariant(fragmentDef.kind === 'FragmentDefinition', 'Must be a fragment definition.')
|
|
338
318
|
},
|
|
339
319
|
|
|
340
|
-
|
|
320
|
+
53: {
|
|
341
321
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
342
322
|
node: new InvariantError('Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment.')
|
|
343
323
|
},
|
|
344
324
|
|
|
345
|
-
|
|
325
|
+
54: {
|
|
346
326
|
file: "@apollo/client/utilities/graphql/storeUtils.js",
|
|
347
327
|
|
|
348
328
|
node: new InvariantError("The inline argument \"" + name.value + "\" of kind \"" + value.kind + "\"" +
|
|
@@ -350,12 +330,7 @@
|
|
|
350
330
|
'overcome this limitation.')
|
|
351
331
|
},
|
|
352
332
|
|
|
353
|
-
|
|
354
|
-
file: "@apollo/client/utilities/index.js",
|
|
355
|
-
node: invariant("boolean" === typeof DEV, DEV)
|
|
356
|
-
},
|
|
357
|
-
|
|
358
|
-
60: {
|
|
333
|
+
55: {
|
|
359
334
|
file: "@apollo/client/utilities/testing/mocking/mockLink.js",
|
|
360
335
|
node: invariant(queryWithoutConnection, "query is required")
|
|
361
336
|
}
|
package/link/core/ApolloLink.js
CHANGED
|
@@ -81,7 +81,7 @@ var ApolloLink = (function () {
|
|
|
81
81
|
return ApolloLink.concat(this, next);
|
|
82
82
|
};
|
|
83
83
|
ApolloLink.prototype.request = function (operation, forward) {
|
|
84
|
-
throw __DEV__ ? new InvariantError('request is not implemented') : new InvariantError(
|
|
84
|
+
throw __DEV__ ? new InvariantError('request is not implemented') : new InvariantError(21);
|
|
85
85
|
};
|
|
86
86
|
ApolloLink.prototype.onError = function (error, observer) {
|
|
87
87
|
if (observer && observer.error) {
|
package/link/core/core.cjs.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tsInvariant = require('ts-invariant');
|
|
6
5
|
var utilities = require('../../utilities');
|
|
7
6
|
var tslib = require('tslib');
|
|
7
|
+
var tsInvariant = require('ts-invariant');
|
|
8
8
|
var utils = require('../utils');
|
|
9
9
|
|
|
10
10
|
function passthrough(op, forward) {
|
|
@@ -86,7 +86,7 @@ var ApolloLink = (function () {
|
|
|
86
86
|
return ApolloLink.concat(this, next);
|
|
87
87
|
};
|
|
88
88
|
ApolloLink.prototype.request = function (operation, forward) {
|
|
89
|
-
throw __DEV__ ? new tsInvariant.InvariantError('request is not implemented') : new tsInvariant.InvariantError(
|
|
89
|
+
throw __DEV__ ? new tsInvariant.InvariantError('request is not implemented') : new tsInvariant.InvariantError(21);
|
|
90
90
|
};
|
|
91
91
|
ApolloLink.prototype.onError = function (error, observer) {
|
|
92
92
|
if (observer && observer.error) {
|
|
@@ -112,7 +112,7 @@ var concat = ApolloLink.concat;
|
|
|
112
112
|
|
|
113
113
|
var execute = ApolloLink.execute;
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
utilities.checkDEV();
|
|
116
116
|
|
|
117
117
|
exports.ApolloLink = ApolloLink;
|
|
118
118
|
exports.concat = concat;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.cjs.js","sources":["ApolloLink.js","empty.js","from.js","split.js","concat.js","execute.js","index.js"],"sourcesContent":["import { __extends } from \"tslib\";\nimport { InvariantError, invariant } from 'ts-invariant';\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 LinkError = (function (_super) {\n __extends(LinkError, _super);\n function LinkError(message, link) {\n var _this = _super.call(this, message) || this;\n _this.link = link;\n return _this;\n }\n return LinkError;\n}(Error));\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(new LinkError(\"You are calling concat on a terminating link, which will have no effect\", 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 __DEV__ ? new InvariantError('request is not implemented') : new InvariantError(
|
|
1
|
+
{"version":3,"file":"core.cjs.js","sources":["ApolloLink.js","empty.js","from.js","split.js","concat.js","execute.js","index.js"],"sourcesContent":["import { __extends } from \"tslib\";\nimport { InvariantError, invariant } from 'ts-invariant';\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 LinkError = (function (_super) {\n __extends(LinkError, _super);\n function LinkError(message, link) {\n var _this = _super.call(this, message) || this;\n _this.link = link;\n return _this;\n }\n return LinkError;\n}(Error));\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(new LinkError(\"You are calling concat on a terminating link, which will have no effect\", 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 __DEV__ ? new InvariantError('request is not implemented') : new InvariantError(21);\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","import { checkDEV } from \"../../utilities\";\ncheckDEV();\nexport { empty } from './empty';\nexport { from } from './from';\nexport { split } from './split';\nexport { concat } from './concat';\nexport { execute } from './execute';\nexport { ApolloLink } from './ApolloLink';\nexport * from './types';\n//# sourceMappingURL=index.js.map"],"names":["Observable","__extends","createOperation","transformOperation","validateOperation","invariant","InvariantError","checkDEV"],"mappings":";;;;;;;;;AAIA,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;AACD,IAAI,SAAS,IAAI,UAAU,MAAM,EAAE;AACnC,IAAIC,eAAS,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AACjC,IAAI,SAAS,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE;AACtC,QAAQ,IAAI,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,CAAC;AACvD,QAAQ,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;AAC1B,QAAQ,OAAO,KAAK,CAAC;AACrB,KAAK;AACL,IAAI,OAAO,SAAS,CAAC;AACrB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AACP,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,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;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;;AChGO,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;;ACAhCC,kBAAQ,EAAE;;;;;;;;;"}
|
package/link/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/link/core/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/link/core/index.ts"],"names":[],"mappings":"AAGA,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"}
|
package/link/core/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
__DEV__ ? invariant("boolean" === typeof DEV, DEV) : invariant("boolean" === typeof DEV, 24);
|
|
1
|
+
import { checkDEV } from "../../utilities/index.js";
|
|
2
|
+
checkDEV();
|
|
4
3
|
export { empty } from "./empty.js";
|
|
5
4
|
export { from } from "./from.js";
|
|
6
5
|
export { split } from "./split.js";
|
package/link/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/link/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/link/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,QAAQ,EAAE,CAAC;AAEX,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 { checkDEV } from \"../../utilities\";\ncheckDEV();\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"]}
|