Project files
This commit is contained in:
19
receipeServer/frontend_old/node_modules/apollo-client/data/mutations.d.ts
generated
vendored
Normal file
19
receipeServer/frontend_old/node_modules/apollo-client/data/mutations.d.ts
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import { DocumentNode } from 'graphql';
|
||||
export declare class MutationStore {
|
||||
private store;
|
||||
getStore(): {
|
||||
[mutationId: string]: MutationStoreValue;
|
||||
};
|
||||
get(mutationId: string): MutationStoreValue;
|
||||
initMutation(mutationId: string, mutation: DocumentNode, variables: Object | undefined): void;
|
||||
markMutationError(mutationId: string, error: Error): void;
|
||||
markMutationResult(mutationId: string): void;
|
||||
reset(): void;
|
||||
}
|
||||
export interface MutationStoreValue {
|
||||
mutation: DocumentNode;
|
||||
variables: Object;
|
||||
loading: boolean;
|
||||
error: Error | null;
|
||||
}
|
||||
//# sourceMappingURL=mutations.d.ts.map
|
||||
1
receipeServer/frontend_old/node_modules/apollo-client/data/mutations.d.ts.map
generated
vendored
Normal file
1
receipeServer/frontend_old/node_modules/apollo-client/data/mutations.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../src/data/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,qBAAa,aAAa;IACxB,OAAO,CAAC,KAAK,CAAoD;IAE1D,QAAQ,IAAI;QAAE,CAAC,UAAU,EAAE,MAAM,GAAG,kBAAkB,CAAA;KAAE;IAIxD,GAAG,CAAC,UAAU,EAAE,MAAM,GAAG,kBAAkB;IAI3C,YAAY,CACjB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,YAAY,EACtB,SAAS,EAAE,MAAM,GAAG,SAAS;IAUxB,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK;IAQlD,kBAAkB,CAAC,UAAU,EAAE,MAAM;IAQrC,KAAK;CAGb;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB"}
|
||||
41
receipeServer/frontend_old/node_modules/apollo-client/data/mutations.js
generated
vendored
Normal file
41
receipeServer/frontend_old/node_modules/apollo-client/data/mutations.js
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var MutationStore = (function () {
|
||||
function MutationStore() {
|
||||
this.store = {};
|
||||
}
|
||||
MutationStore.prototype.getStore = function () {
|
||||
return this.store;
|
||||
};
|
||||
MutationStore.prototype.get = function (mutationId) {
|
||||
return this.store[mutationId];
|
||||
};
|
||||
MutationStore.prototype.initMutation = function (mutationId, mutation, variables) {
|
||||
this.store[mutationId] = {
|
||||
mutation: mutation,
|
||||
variables: variables || {},
|
||||
loading: true,
|
||||
error: null,
|
||||
};
|
||||
};
|
||||
MutationStore.prototype.markMutationError = function (mutationId, error) {
|
||||
var mutation = this.store[mutationId];
|
||||
if (mutation) {
|
||||
mutation.loading = false;
|
||||
mutation.error = error;
|
||||
}
|
||||
};
|
||||
MutationStore.prototype.markMutationResult = function (mutationId) {
|
||||
var mutation = this.store[mutationId];
|
||||
if (mutation) {
|
||||
mutation.loading = false;
|
||||
mutation.error = null;
|
||||
}
|
||||
};
|
||||
MutationStore.prototype.reset = function () {
|
||||
this.store = {};
|
||||
};
|
||||
return MutationStore;
|
||||
}());
|
||||
exports.MutationStore = MutationStore;
|
||||
//# sourceMappingURL=mutations.js.map
|
||||
1
receipeServer/frontend_old/node_modules/apollo-client/data/mutations.js.map
generated
vendored
Normal file
1
receipeServer/frontend_old/node_modules/apollo-client/data/mutations.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"mutations.js","sourceRoot":"","sources":["../../src/data/mutations.ts"],"names":[],"mappings":";;AAEA;IAAA;QACU,UAAK,GAAiD,EAAE,CAAC;IA0CnE,CAAC;IAxCQ,gCAAQ,GAAf;QACE,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAEM,2BAAG,GAAV,UAAW,UAAkB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAChC,CAAC;IAEM,oCAAY,GAAnB,UACE,UAAkB,EAClB,QAAsB,EACtB,SAA6B;QAE7B,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG;YACvB,QAAQ,UAAA;YACR,SAAS,EAAE,SAAS,IAAI,EAAE;YAC1B,OAAO,EAAE,IAAI;YACb,KAAK,EAAE,IAAI;SACZ,CAAC;IACJ,CAAC;IAEM,yCAAiB,GAAxB,UAAyB,UAAkB,EAAE,KAAY;QACvD,IAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,QAAQ,EAAE;YACZ,QAAQ,CAAC,OAAO,GAAG,KAAK,CAAC;YACzB,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;SACxB;IACH,CAAC;IAEM,0CAAkB,GAAzB,UAA0B,UAAkB;QAC1C,IAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,QAAQ,EAAE;YACZ,QAAQ,CAAC,OAAO,GAAG,KAAK,CAAC;YACzB,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAC;SACvB;IACH,CAAC;IAEM,6BAAK,GAAZ;QACE,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;IAClB,CAAC;IACH,oBAAC;AAAD,CAAC,AA3CD,IA2CC;AA3CY,sCAAa"}
|
||||
34
receipeServer/frontend_old/node_modules/apollo-client/data/queries.d.ts
generated
vendored
Normal file
34
receipeServer/frontend_old/node_modules/apollo-client/data/queries.d.ts
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
import { DocumentNode, GraphQLError, ExecutionResult } from 'graphql';
|
||||
import { NetworkStatus } from '../core/networkStatus';
|
||||
export declare type QueryStoreValue = {
|
||||
document: DocumentNode;
|
||||
variables: Object;
|
||||
previousVariables?: Object | null;
|
||||
networkStatus: NetworkStatus;
|
||||
networkError?: Error | null;
|
||||
graphQLErrors?: ReadonlyArray<GraphQLError>;
|
||||
metadata: any;
|
||||
};
|
||||
export declare class QueryStore {
|
||||
private store;
|
||||
getStore(): {
|
||||
[queryId: string]: QueryStoreValue;
|
||||
};
|
||||
get(queryId: string): QueryStoreValue;
|
||||
initQuery(query: {
|
||||
queryId: string;
|
||||
document: DocumentNode;
|
||||
storePreviousVariables: boolean;
|
||||
variables: Object;
|
||||
isPoll: boolean;
|
||||
isRefetch: boolean;
|
||||
metadata: any;
|
||||
fetchMoreForQueryId: string | undefined;
|
||||
}): void;
|
||||
markQueryResult(queryId: string, result: ExecutionResult, fetchMoreForQueryId: string | undefined): void;
|
||||
markQueryError(queryId: string, error: Error, fetchMoreForQueryId: string | undefined): void;
|
||||
markQueryResultClient(queryId: string, complete: boolean): void;
|
||||
stopQuery(queryId: string): void;
|
||||
reset(observableQueryIds: string[]): void;
|
||||
}
|
||||
//# sourceMappingURL=queries.d.ts.map
|
||||
1
receipeServer/frontend_old/node_modules/apollo-client/data/queries.d.ts.map
generated
vendored
Normal file
1
receipeServer/frontend_old/node_modules/apollo-client/data/queries.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../src/data/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAGtE,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGtD,oBAAY,eAAe,GAAG;IAC5B,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,aAAa,EAAE,aAAa,CAAC;IAC7B,YAAY,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAC5B,aAAa,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IAC5C,QAAQ,EAAE,GAAG,CAAC;CACf,CAAC;AAEF,qBAAa,UAAU;IACrB,OAAO,CAAC,KAAK,CAA8C;IAEpD,QAAQ,IAAI;QAAE,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,CAAA;KAAE;IAIlD,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe;IAIrC,SAAS,CAAC,KAAK,EAAE;QACtB,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,YAAY,CAAC;QACvB,sBAAsB,EAAE,OAAO,CAAC;QAChC,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,OAAO,CAAC;QAChB,SAAS,EAAE,OAAO,CAAC;QACnB,QAAQ,EAAE,GAAG,CAAC;QACd,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;KACzC;IA2EM,eAAe,CACpB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,eAAe,EACvB,mBAAmB,EAAE,MAAM,GAAG,SAAS;IAoBlC,cAAc,CACnB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,KAAK,EACZ,mBAAmB,EAAE,MAAM,GAAG,SAAS;IAelC,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO;IAWxD,SAAS,CAAC,OAAO,EAAE,MAAM;IAIzB,KAAK,CAAC,kBAAkB,EAAE,MAAM,EAAE;CAU1C"}
|
||||
112
receipeServer/frontend_old/node_modules/apollo-client/data/queries.js
generated
vendored
Normal file
112
receipeServer/frontend_old/node_modules/apollo-client/data/queries.js
generated
vendored
Normal file
@@ -0,0 +1,112 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var apollo_utilities_1 = require("apollo-utilities");
|
||||
var ts_invariant_1 = require("ts-invariant");
|
||||
var networkStatus_1 = require("../core/networkStatus");
|
||||
var arrays_1 = require("../util/arrays");
|
||||
var QueryStore = (function () {
|
||||
function QueryStore() {
|
||||
this.store = {};
|
||||
}
|
||||
QueryStore.prototype.getStore = function () {
|
||||
return this.store;
|
||||
};
|
||||
QueryStore.prototype.get = function (queryId) {
|
||||
return this.store[queryId];
|
||||
};
|
||||
QueryStore.prototype.initQuery = function (query) {
|
||||
var previousQuery = this.store[query.queryId];
|
||||
ts_invariant_1.invariant(!previousQuery ||
|
||||
previousQuery.document === query.document ||
|
||||
apollo_utilities_1.isEqual(previousQuery.document, query.document), 'Internal Error: may not update existing query string in store');
|
||||
var isSetVariables = false;
|
||||
var previousVariables = null;
|
||||
if (query.storePreviousVariables &&
|
||||
previousQuery &&
|
||||
previousQuery.networkStatus !== networkStatus_1.NetworkStatus.loading) {
|
||||
if (!apollo_utilities_1.isEqual(previousQuery.variables, query.variables)) {
|
||||
isSetVariables = true;
|
||||
previousVariables = previousQuery.variables;
|
||||
}
|
||||
}
|
||||
var networkStatus;
|
||||
if (isSetVariables) {
|
||||
networkStatus = networkStatus_1.NetworkStatus.setVariables;
|
||||
}
|
||||
else if (query.isPoll) {
|
||||
networkStatus = networkStatus_1.NetworkStatus.poll;
|
||||
}
|
||||
else if (query.isRefetch) {
|
||||
networkStatus = networkStatus_1.NetworkStatus.refetch;
|
||||
}
|
||||
else {
|
||||
networkStatus = networkStatus_1.NetworkStatus.loading;
|
||||
}
|
||||
var graphQLErrors = [];
|
||||
if (previousQuery && previousQuery.graphQLErrors) {
|
||||
graphQLErrors = previousQuery.graphQLErrors;
|
||||
}
|
||||
this.store[query.queryId] = {
|
||||
document: query.document,
|
||||
variables: query.variables,
|
||||
previousVariables: previousVariables,
|
||||
networkError: null,
|
||||
graphQLErrors: graphQLErrors,
|
||||
networkStatus: networkStatus,
|
||||
metadata: query.metadata,
|
||||
};
|
||||
if (typeof query.fetchMoreForQueryId === 'string' &&
|
||||
this.store[query.fetchMoreForQueryId]) {
|
||||
this.store[query.fetchMoreForQueryId].networkStatus =
|
||||
networkStatus_1.NetworkStatus.fetchMore;
|
||||
}
|
||||
};
|
||||
QueryStore.prototype.markQueryResult = function (queryId, result, fetchMoreForQueryId) {
|
||||
if (!this.store || !this.store[queryId])
|
||||
return;
|
||||
this.store[queryId].networkError = null;
|
||||
this.store[queryId].graphQLErrors = arrays_1.isNonEmptyArray(result.errors) ? result.errors : [];
|
||||
this.store[queryId].previousVariables = null;
|
||||
this.store[queryId].networkStatus = networkStatus_1.NetworkStatus.ready;
|
||||
if (typeof fetchMoreForQueryId === 'string' &&
|
||||
this.store[fetchMoreForQueryId]) {
|
||||
this.store[fetchMoreForQueryId].networkStatus = networkStatus_1.NetworkStatus.ready;
|
||||
}
|
||||
};
|
||||
QueryStore.prototype.markQueryError = function (queryId, error, fetchMoreForQueryId) {
|
||||
if (!this.store || !this.store[queryId])
|
||||
return;
|
||||
this.store[queryId].networkError = error;
|
||||
this.store[queryId].networkStatus = networkStatus_1.NetworkStatus.error;
|
||||
if (typeof fetchMoreForQueryId === 'string') {
|
||||
this.markQueryResultClient(fetchMoreForQueryId, true);
|
||||
}
|
||||
};
|
||||
QueryStore.prototype.markQueryResultClient = function (queryId, complete) {
|
||||
var storeValue = this.store && this.store[queryId];
|
||||
if (storeValue) {
|
||||
storeValue.networkError = null;
|
||||
storeValue.previousVariables = null;
|
||||
if (complete) {
|
||||
storeValue.networkStatus = networkStatus_1.NetworkStatus.ready;
|
||||
}
|
||||
}
|
||||
};
|
||||
QueryStore.prototype.stopQuery = function (queryId) {
|
||||
delete this.store[queryId];
|
||||
};
|
||||
QueryStore.prototype.reset = function (observableQueryIds) {
|
||||
var _this = this;
|
||||
Object.keys(this.store).forEach(function (queryId) {
|
||||
if (observableQueryIds.indexOf(queryId) < 0) {
|
||||
_this.stopQuery(queryId);
|
||||
}
|
||||
else {
|
||||
_this.store[queryId].networkStatus = networkStatus_1.NetworkStatus.loading;
|
||||
}
|
||||
});
|
||||
};
|
||||
return QueryStore;
|
||||
}());
|
||||
exports.QueryStore = QueryStore;
|
||||
//# sourceMappingURL=queries.js.map
|
||||
1
receipeServer/frontend_old/node_modules/apollo-client/data/queries.js.map
generated
vendored
Normal file
1
receipeServer/frontend_old/node_modules/apollo-client/data/queries.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"queries.js","sourceRoot":"","sources":["../../src/data/queries.ts"],"names":[],"mappings":";;AACA,qDAA2C;AAC3C,6CAAyC;AACzC,uDAAsD;AACtD,yCAAiD;AAYjD;IAAA;QACU,UAAK,GAA2C,EAAE,CAAC;IAgK7D,CAAC;IA9JQ,6BAAQ,GAAf;QACE,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAEM,wBAAG,GAAV,UAAW,OAAe;QACxB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;IAEM,8BAAS,GAAhB,UAAiB,KAShB;QACC,IAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAKhD,wBAAS,CACP,CAAC,aAAa;YACd,aAAa,CAAC,QAAQ,KAAK,KAAK,CAAC,QAAQ;YACzC,0BAAO,CAAC,aAAa,CAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,EAC/C,+DAA+D,CAChE,CAAC;QAEF,IAAI,cAAc,GAAG,KAAK,CAAC;QAE3B,IAAI,iBAAiB,GAAkB,IAAI,CAAC;QAC5C,IACE,KAAK,CAAC,sBAAsB;YAC5B,aAAa;YACb,aAAa,CAAC,aAAa,KAAK,6BAAa,CAAC,OAAO,EAErD;YACA,IAAI,CAAC,0BAAO,CAAC,aAAa,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,EAAE;gBACtD,cAAc,GAAG,IAAI,CAAC;gBACtB,iBAAiB,GAAG,aAAa,CAAC,SAAS,CAAC;aAC7C;SACF;QAGD,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CAAC,KAAK,CAAC;aAChD;SACF;IACH,CAAC;IAEM,8BAAS,GAAhB,UAAiB,OAAe;QAC9B,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;IAEM,0BAAK,GAAZ,UAAa,kBAA4B;QAAzC,iBASC;QARC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,UAAA,OAAO;YACrC,IAAI,kBAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;gBAC3C,KAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;aACzB;iBAAM;gBAEL,KAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,aAAa,GAAG,6BAAa,CAAC,OAAO,CAAC;aAC3D;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IACH,iBAAC;AAAD,CAAC,AAjKD,IAiKC;AAjKY,gCAAU"}
|
||||
49
receipeServer/frontend_old/node_modules/apollo-client/data/store.d.ts
generated
vendored
Normal file
49
receipeServer/frontend_old/node_modules/apollo-client/data/store.d.ts
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
import { ExecutionResult, DocumentNode } from 'graphql';
|
||||
import { ApolloCache, DataProxy } from 'apollo-cache';
|
||||
import { QueryStoreValue } from '../data/queries';
|
||||
import { MutationQueryReducer } from '../core/types';
|
||||
export declare type QueryWithUpdater = {
|
||||
updater: MutationQueryReducer<Object>;
|
||||
query: QueryStoreValue;
|
||||
};
|
||||
export interface DataWrite {
|
||||
rootId: string;
|
||||
result: any;
|
||||
document: DocumentNode;
|
||||
operationName: string | null;
|
||||
variables: Object;
|
||||
}
|
||||
export declare class DataStore<TSerialized> {
|
||||
private cache;
|
||||
constructor(initialCache: ApolloCache<TSerialized>);
|
||||
getCache(): ApolloCache<TSerialized>;
|
||||
markQueryResult(result: ExecutionResult, document: DocumentNode, variables: any, fetchMoreForQueryId: string | undefined, ignoreErrors?: boolean): void;
|
||||
markSubscriptionResult(result: ExecutionResult, document: DocumentNode, variables: any): void;
|
||||
markMutationInit(mutation: {
|
||||
mutationId: string;
|
||||
document: DocumentNode;
|
||||
variables: any;
|
||||
updateQueries: {
|
||||
[queryId: string]: QueryWithUpdater;
|
||||
};
|
||||
update: ((proxy: DataProxy, mutationResult: Object) => void) | undefined;
|
||||
optimisticResponse: Object | Function | undefined;
|
||||
}): void;
|
||||
markMutationResult(mutation: {
|
||||
mutationId: string;
|
||||
result: ExecutionResult;
|
||||
document: DocumentNode;
|
||||
variables: any;
|
||||
updateQueries: {
|
||||
[queryId: string]: QueryWithUpdater;
|
||||
};
|
||||
update: ((proxy: DataProxy, mutationResult: Object) => void) | undefined;
|
||||
}): void;
|
||||
markMutationComplete({ mutationId, optimisticResponse, }: {
|
||||
mutationId: string;
|
||||
optimisticResponse?: any;
|
||||
}): void;
|
||||
markUpdateQueryResult(document: DocumentNode, variables: any, newResult: any): void;
|
||||
reset(): Promise<void>;
|
||||
}
|
||||
//# sourceMappingURL=store.d.ts.map
|
||||
1
receipeServer/frontend_old/node_modules/apollo-client/data/store.d.ts.map
generated
vendored
Normal file
1
receipeServer/frontend_old/node_modules/apollo-client/data/store.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../src/data/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,WAAW,EAAS,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAMlD,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAErD,oBAAY,gBAAgB,GAAG;IAC7B,OAAO,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAC;IACtC,KAAK,EAAE,eAAe,CAAC;CACxB,CAAC;AAEF,MAAM,WAAW,SAAS;IACxB,MAAM,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KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;KAC1E;IA4DM,oBAAoB,CAAC,EAC1B,UAAU,EACV,kBAAkB,GACnB,EAAE;QACD,UAAU,EAAE,MAAM,CAAC;QACnB,kBAAkB,CAAC,EAAE,GAAG,CAAC;KAC1B;IAMM,qBAAqB,CAC1B,QAAQ,EAAE,YAAY,EACtB,SAAS,EAAE,GAAG,EACd,SAAS,EAAE,GAAG;IAUT,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAG9B"}
|
||||
132
receipeServer/frontend_old/node_modules/apollo-client/data/store.js
generated
vendored
Normal file
132
receipeServer/frontend_old/node_modules/apollo-client/data/store.js
generated
vendored
Normal file
@@ -0,0 +1,132 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var apollo_utilities_1 = require("apollo-utilities");
|
||||
var DataStore = (function () {
|
||||
function DataStore(initialCache) {
|
||||
this.cache = initialCache;
|
||||
}
|
||||
DataStore.prototype.getCache = function () {
|
||||
return this.cache;
|
||||
};
|
||||
DataStore.prototype.markQueryResult = function (result, document, variables, fetchMoreForQueryId, ignoreErrors) {
|
||||
if (ignoreErrors === void 0) { ignoreErrors = false; }
|
||||
var writeWithErrors = !apollo_utilities_1.graphQLResultHasError(result);
|
||||
if (ignoreErrors && apollo_utilities_1.graphQLResultHasError(result) && result.data) {
|
||||
writeWithErrors = true;
|
||||
}
|
||||
if (!fetchMoreForQueryId && writeWithErrors) {
|
||||
this.cache.write({
|
||||
result: result.data,
|
||||
dataId: 'ROOT_QUERY',
|
||||
query: document,
|
||||
variables: variables,
|
||||
});
|
||||
}
|
||||
};
|
||||
DataStore.prototype.markSubscriptionResult = function (result, document, variables) {
|
||||
if (!apollo_utilities_1.graphQLResultHasError(result)) {
|
||||
this.cache.write({
|
||||
result: result.data,
|
||||
dataId: 'ROOT_SUBSCRIPTION',
|
||||
query: document,
|
||||
variables: variables,
|
||||
});
|
||||
}
|
||||
};
|
||||
DataStore.prototype.markMutationInit = function (mutation) {
|
||||
var _this = this;
|
||||
if (mutation.optimisticResponse) {
|
||||
var optimistic_1;
|
||||
if (typeof mutation.optimisticResponse === 'function') {
|
||||
optimistic_1 = mutation.optimisticResponse(mutation.variables);
|
||||
}
|
||||
else {
|
||||
optimistic_1 = mutation.optimisticResponse;
|
||||
}
|
||||
this.cache.recordOptimisticTransaction(function (c) {
|
||||
var orig = _this.cache;
|
||||
_this.cache = c;
|
||||
try {
|
||||
_this.markMutationResult({
|
||||
mutationId: mutation.mutationId,
|
||||
result: { data: optimistic_1 },
|
||||
document: mutation.document,
|
||||
variables: mutation.variables,
|
||||
updateQueries: mutation.updateQueries,
|
||||
update: mutation.update,
|
||||
});
|
||||
}
|
||||
finally {
|
||||
_this.cache = orig;
|
||||
}
|
||||
}, mutation.mutationId);
|
||||
}
|
||||
};
|
||||
DataStore.prototype.markMutationResult = function (mutation) {
|
||||
var _this = this;
|
||||
if (!apollo_utilities_1.graphQLResultHasError(mutation.result)) {
|
||||
var cacheWrites_1 = [{
|
||||
result: mutation.result.data,
|
||||
dataId: 'ROOT_MUTATION',
|
||||
query: mutation.document,
|
||||
variables: mutation.variables,
|
||||
}];
|
||||
var updateQueries_1 = mutation.updateQueries;
|
||||
if (updateQueries_1) {
|
||||
Object.keys(updateQueries_1).forEach(function (id) {
|
||||
var _a = updateQueries_1[id], query = _a.query, updater = _a.updater;
|
||||
var _b = _this.cache.diff({
|
||||
query: query.document,
|
||||
variables: query.variables,
|
||||
returnPartialData: true,
|
||||
optimistic: false,
|
||||
}), currentQueryResult = _b.result, complete = _b.complete;
|
||||
if (complete) {
|
||||
var nextQueryResult = apollo_utilities_1.tryFunctionOrLogError(function () {
|
||||
return updater(currentQueryResult, {
|
||||
mutationResult: mutation.result,
|
||||
queryName: apollo_utilities_1.getOperationName(query.document) || undefined,
|
||||
queryVariables: query.variables,
|
||||
});
|
||||
});
|
||||
if (nextQueryResult) {
|
||||
cacheWrites_1.push({
|
||||
result: nextQueryResult,
|
||||
dataId: 'ROOT_QUERY',
|
||||
query: query.document,
|
||||
variables: query.variables,
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
this.cache.performTransaction(function (c) {
|
||||
cacheWrites_1.forEach(function (write) { return c.write(write); });
|
||||
var update = mutation.update;
|
||||
if (update) {
|
||||
apollo_utilities_1.tryFunctionOrLogError(function () { return update(c, mutation.result); });
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
DataStore.prototype.markMutationComplete = function (_a) {
|
||||
var mutationId = _a.mutationId, optimisticResponse = _a.optimisticResponse;
|
||||
if (optimisticResponse) {
|
||||
this.cache.removeOptimistic(mutationId);
|
||||
}
|
||||
};
|
||||
DataStore.prototype.markUpdateQueryResult = function (document, variables, newResult) {
|
||||
this.cache.write({
|
||||
result: newResult,
|
||||
dataId: 'ROOT_QUERY',
|
||||
variables: variables,
|
||||
query: document,
|
||||
});
|
||||
};
|
||||
DataStore.prototype.reset = function () {
|
||||
return this.cache.reset();
|
||||
};
|
||||
return DataStore;
|
||||
}());
|
||||
exports.DataStore = DataStore;
|
||||
//# sourceMappingURL=store.js.map
|
||||
1
receipeServer/frontend_old/node_modules/apollo-client/data/store.js.map
generated
vendored
Normal file
1
receipeServer/frontend_old/node_modules/apollo-client/data/store.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/data/store.ts"],"names":[],"mappings":";;AAIA,qDAI0B;AAgB1B;IAGE,mBAAY,YAAsC;QAChD,IAAI,CAAC,KAAK,GAAG,YAAY,CAAC;IAC5B,CAAC;IAEM,4BAAQ,GAAf;QACE,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAEM,mCAAe,GAAtB,UACE,MAAuB,EACvB,QAAsB,EACtB,SAAc,EACd,mBAAuC,EACvC,YAA6B;QAA7B,6BAAA,EAAA,oBAA6B;QAE7B,IAAI,eAAe,GAAG,CAAC,wCAAqB,CAAC,MAAM,CA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