@salesforce/lds-runtime-mobile 1.124.6 → 1.124.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.
Files changed (3) hide show
  1. package/dist/main.js +16 -11
  2. package/package.json +1 -1
  3. package/sfdc/main.js +16 -11
package/dist/main.js CHANGED
@@ -8930,17 +8930,22 @@ async function evaluate(config, observers, settings, objectInfos, store, snapsho
8930
8930
  if (requestsDraftsField(node))
8931
8931
  return undefined;
8932
8932
  // inject the drafts node for local evaluation since server does not have the 'draft' concept
8933
- node.selectionSet.selections = [
8934
- {
8935
- kind: 'Field',
8936
- name: {
8937
- kind: 'Name',
8938
- value: '_drafts',
8939
- },
8933
+ return {
8934
+ ...node,
8935
+ selectionSet: {
8936
+ ...node.selectionSet,
8937
+ selections: [
8938
+ ...node.selectionSet.selections,
8939
+ {
8940
+ kind: 'Field',
8941
+ name: {
8942
+ kind: 'Name',
8943
+ value: '_drafts',
8944
+ },
8945
+ },
8946
+ ],
8940
8947
  },
8941
- ...node.selectionSet.selections,
8942
- ];
8943
- return node;
8948
+ };
8944
8949
  },
8945
8950
  },
8946
8951
  });
@@ -15617,4 +15622,4 @@ register({
15617
15622
  });
15618
15623
 
15619
15624
  export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
15620
- // version: 1.124.6-8cacd232f
15625
+ // version: 1.124.8-281111394
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-mobile",
3
- "version": "1.124.6",
3
+ "version": "1.124.8",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS runtime for mobile/hybrid environments.",
6
6
  "main": "dist/main.js",
package/sfdc/main.js CHANGED
@@ -8930,17 +8930,22 @@ async function evaluate(config, observers, settings, objectInfos, store, snapsho
8930
8930
  if (requestsDraftsField(node))
8931
8931
  return undefined;
8932
8932
  // inject the drafts node for local evaluation since server does not have the 'draft' concept
8933
- node.selectionSet.selections = [
8934
- {
8935
- kind: 'Field',
8936
- name: {
8937
- kind: 'Name',
8938
- value: '_drafts',
8939
- },
8933
+ return {
8934
+ ...node,
8935
+ selectionSet: {
8936
+ ...node.selectionSet,
8937
+ selections: [
8938
+ ...node.selectionSet.selections,
8939
+ {
8940
+ kind: 'Field',
8941
+ name: {
8942
+ kind: 'Name',
8943
+ value: '_drafts',
8944
+ },
8945
+ },
8946
+ ],
8940
8947
  },
8941
- ...node.selectionSet.selections,
8942
- ];
8943
- return node;
8948
+ };
8944
8949
  },
8945
8950
  },
8946
8951
  });
@@ -15617,4 +15622,4 @@ register({
15617
15622
  });
15618
15623
 
15619
15624
  export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
15620
- // version: 1.124.6-8cacd232f
15625
+ // version: 1.124.8-281111394