@salesforce/lds-adapters-graphql 1.142.1 → 1.144.0
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.
|
@@ -2222,6 +2222,12 @@ const graphQLAdapterFactory = (luvio) => {
|
|
|
2222
2222
|
fragment,
|
|
2223
2223
|
luvio,
|
|
2224
2224
|
};
|
|
2225
|
+
// NOTE: For evaluating environments, set a context property to let the
|
|
2226
|
+
// environment detect that eval will happen and to check varous gates
|
|
2227
|
+
// for eval behavior customizations.
|
|
2228
|
+
if (storeEval !== undefined) {
|
|
2229
|
+
context.gqlEval = true;
|
|
2230
|
+
}
|
|
2225
2231
|
const snapshotOrPromiseFromCachePolicy = luvio.applyCachePolicy(requestContext || {}, context, buildCachedSnapshot, buildNetworkSnapshotCachePolicy);
|
|
2226
2232
|
if (storeEval !== undefined) {
|
|
2227
2233
|
const observers = requestContext && requestContext.eventObservers
|
|
@@ -14,6 +14,7 @@ type BuildSnapshotContext = {
|
|
|
14
14
|
config: GraphQLConfig;
|
|
15
15
|
fragment: ReaderFragment;
|
|
16
16
|
luvio: Luvio;
|
|
17
|
+
gqlEval?: boolean;
|
|
17
18
|
};
|
|
18
19
|
export declare function buildCachedSnapshot(context: BuildSnapshotContext, storeLookup: StoreLookup<unknown>): Promise<Snapshot<unknown, unknown>> | Snapshot<unknown, any>;
|
|
19
20
|
export declare const replaceDraftIdsInVariables: (variables: Record<string, any>, draftFunctions: DraftFunctions) => Record<string, any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-graphql",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.144.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Wire adapter for GraphQL API endpoint",
|
|
6
6
|
"main": "dist/es/es2018/graphql-service.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"release:core": "../../scripts/release/core.js --adapter=lds-adapters-graphql"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@luvio/graphql-parser": "0.142.
|
|
40
|
+
"@luvio/graphql-parser": "0.142.4",
|
|
41
41
|
"@salesforce/lds-adapters-uiapi": "*",
|
|
42
42
|
"@salesforce/lds-bindings": "*",
|
|
43
43
|
"@salesforce/lds-default-luvio": "*"
|
package/sfdc/index.js
CHANGED
|
@@ -2231,6 +2231,12 @@ const graphQLAdapterFactory = (luvio) => {
|
|
|
2231
2231
|
fragment,
|
|
2232
2232
|
luvio,
|
|
2233
2233
|
};
|
|
2234
|
+
// NOTE: For evaluating environments, set a context property to let the
|
|
2235
|
+
// environment detect that eval will happen and to check varous gates
|
|
2236
|
+
// for eval behavior customizations.
|
|
2237
|
+
if (storeEval !== undefined) {
|
|
2238
|
+
context.gqlEval = true;
|
|
2239
|
+
}
|
|
2234
2240
|
const snapshotOrPromiseFromCachePolicy = luvio.applyCachePolicy(requestContext || {}, context, buildCachedSnapshot, buildNetworkSnapshotCachePolicy);
|
|
2235
2241
|
if (storeEval !== undefined) {
|
|
2236
2242
|
const observers = requestContext && requestContext.eventObservers
|
|
@@ -2281,4 +2287,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2281
2287
|
});
|
|
2282
2288
|
|
|
2283
2289
|
export { graphQL, graphQLImperative, unstable_graphQL_imperative };
|
|
2284
|
-
// version: 1.
|
|
2290
|
+
// version: 1.144.0-32cfd690e
|