@salesforce/lds-runtime-mobile 1.138.0 → 1.139.1
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/dist/main.js +33 -9
- package/package.json +1 -1
- package/sfdc/main.js +33 -9
package/dist/main.js
CHANGED
|
@@ -11903,14 +11903,24 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
|
|
|
11903
11903
|
const filteredEntryIds = [];
|
|
11904
11904
|
// map of records to avoid requesting duplicate record keys when requesting both records and fields
|
|
11905
11905
|
const recordEntries = {};
|
|
11906
|
+
const recordViewEntries = {};
|
|
11906
11907
|
for (let i = 0, len = entriesLength; i < len; i++) {
|
|
11907
11908
|
const id = entries[i];
|
|
11908
11909
|
const recordId = extractRecordIdFromStoreKey(id);
|
|
11909
11910
|
if (recordId !== undefined) {
|
|
11910
|
-
if (
|
|
11911
|
-
|
|
11912
|
-
|
|
11913
|
-
|
|
11911
|
+
if (id.startsWith(RECORD_VIEW_ENTITY_ID_PREFIX)) {
|
|
11912
|
+
if (recordViewEntries[recordId] === undefined) {
|
|
11913
|
+
const key = getDenormalizedKey(id, recordId, luvio);
|
|
11914
|
+
recordViewEntries[recordId] = true;
|
|
11915
|
+
filteredEntryIds.push(key);
|
|
11916
|
+
}
|
|
11917
|
+
}
|
|
11918
|
+
else {
|
|
11919
|
+
if (recordEntries[recordId] === undefined) {
|
|
11920
|
+
const key = getDenormalizedKey(id, recordId, luvio);
|
|
11921
|
+
recordEntries[recordId] = true;
|
|
11922
|
+
filteredEntryIds.push(key);
|
|
11923
|
+
}
|
|
11914
11924
|
}
|
|
11915
11925
|
}
|
|
11916
11926
|
else {
|
|
@@ -11944,6 +11954,7 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
|
|
|
11944
11954
|
const putEntries = create$2(null);
|
|
11945
11955
|
const keys$1 = keys$2(entries);
|
|
11946
11956
|
const putRecords = {};
|
|
11957
|
+
const putRecordViews = {};
|
|
11947
11958
|
const storeRecords = getStoreRecords !== undefined ? getStoreRecords() : {};
|
|
11948
11959
|
const storeMetadata = getStoreMetadata !== undefined ? getStoreMetadata() : {};
|
|
11949
11960
|
for (let i = 0, len = keys$1.length; i < len; i++) {
|
|
@@ -11952,10 +11963,18 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
|
|
|
11952
11963
|
const recordId = extractRecordIdFromStoreKey(key);
|
|
11953
11964
|
// do not put normalized field values
|
|
11954
11965
|
if (recordId !== undefined) {
|
|
11955
|
-
const
|
|
11956
|
-
if (
|
|
11957
|
-
|
|
11966
|
+
const isRecordView = key.startsWith(RECORD_VIEW_ENTITY_ID_PREFIX);
|
|
11967
|
+
if (isRecordView) {
|
|
11968
|
+
if (putRecordViews[recordId] === true) {
|
|
11969
|
+
continue;
|
|
11970
|
+
}
|
|
11958
11971
|
}
|
|
11972
|
+
else {
|
|
11973
|
+
if (putRecords[recordId] === true) {
|
|
11974
|
+
continue;
|
|
11975
|
+
}
|
|
11976
|
+
}
|
|
11977
|
+
const recordKey = getDenormalizedKey(key, recordId, luvio);
|
|
11959
11978
|
const recordEntries = entries;
|
|
11960
11979
|
const entry = recordEntries[recordKey];
|
|
11961
11980
|
let record = entry && entry.data;
|
|
@@ -11967,7 +11986,12 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
|
|
|
11967
11986
|
continue;
|
|
11968
11987
|
}
|
|
11969
11988
|
}
|
|
11970
|
-
|
|
11989
|
+
if (isRecordView) {
|
|
11990
|
+
putRecordViews[recordId] = true;
|
|
11991
|
+
}
|
|
11992
|
+
else {
|
|
11993
|
+
putRecords[recordId] = true;
|
|
11994
|
+
}
|
|
11971
11995
|
if (isStoreRecordError(record)) {
|
|
11972
11996
|
putEntries[recordKey] = value;
|
|
11973
11997
|
continue;
|
|
@@ -15855,4 +15879,4 @@ register({
|
|
|
15855
15879
|
});
|
|
15856
15880
|
|
|
15857
15881
|
export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
|
|
15858
|
-
// version: 1.
|
|
15882
|
+
// version: 1.139.1-1cdb5ebf1
|
package/package.json
CHANGED
package/sfdc/main.js
CHANGED
|
@@ -11903,14 +11903,24 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
|
|
|
11903
11903
|
const filteredEntryIds = [];
|
|
11904
11904
|
// map of records to avoid requesting duplicate record keys when requesting both records and fields
|
|
11905
11905
|
const recordEntries = {};
|
|
11906
|
+
const recordViewEntries = {};
|
|
11906
11907
|
for (let i = 0, len = entriesLength; i < len; i++) {
|
|
11907
11908
|
const id = entries[i];
|
|
11908
11909
|
const recordId = extractRecordIdFromStoreKey(id);
|
|
11909
11910
|
if (recordId !== undefined) {
|
|
11910
|
-
if (
|
|
11911
|
-
|
|
11912
|
-
|
|
11913
|
-
|
|
11911
|
+
if (id.startsWith(RECORD_VIEW_ENTITY_ID_PREFIX)) {
|
|
11912
|
+
if (recordViewEntries[recordId] === undefined) {
|
|
11913
|
+
const key = getDenormalizedKey(id, recordId, luvio);
|
|
11914
|
+
recordViewEntries[recordId] = true;
|
|
11915
|
+
filteredEntryIds.push(key);
|
|
11916
|
+
}
|
|
11917
|
+
}
|
|
11918
|
+
else {
|
|
11919
|
+
if (recordEntries[recordId] === undefined) {
|
|
11920
|
+
const key = getDenormalizedKey(id, recordId, luvio);
|
|
11921
|
+
recordEntries[recordId] = true;
|
|
11922
|
+
filteredEntryIds.push(key);
|
|
11923
|
+
}
|
|
11914
11924
|
}
|
|
11915
11925
|
}
|
|
11916
11926
|
else {
|
|
@@ -11944,6 +11954,7 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
|
|
|
11944
11954
|
const putEntries = create$2(null);
|
|
11945
11955
|
const keys$1 = keys$2(entries);
|
|
11946
11956
|
const putRecords = {};
|
|
11957
|
+
const putRecordViews = {};
|
|
11947
11958
|
const storeRecords = getStoreRecords !== undefined ? getStoreRecords() : {};
|
|
11948
11959
|
const storeMetadata = getStoreMetadata !== undefined ? getStoreMetadata() : {};
|
|
11949
11960
|
for (let i = 0, len = keys$1.length; i < len; i++) {
|
|
@@ -11952,10 +11963,18 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
|
|
|
11952
11963
|
const recordId = extractRecordIdFromStoreKey(key);
|
|
11953
11964
|
// do not put normalized field values
|
|
11954
11965
|
if (recordId !== undefined) {
|
|
11955
|
-
const
|
|
11956
|
-
if (
|
|
11957
|
-
|
|
11966
|
+
const isRecordView = key.startsWith(RECORD_VIEW_ENTITY_ID_PREFIX);
|
|
11967
|
+
if (isRecordView) {
|
|
11968
|
+
if (putRecordViews[recordId] === true) {
|
|
11969
|
+
continue;
|
|
11970
|
+
}
|
|
11958
11971
|
}
|
|
11972
|
+
else {
|
|
11973
|
+
if (putRecords[recordId] === true) {
|
|
11974
|
+
continue;
|
|
11975
|
+
}
|
|
11976
|
+
}
|
|
11977
|
+
const recordKey = getDenormalizedKey(key, recordId, luvio);
|
|
11959
11978
|
const recordEntries = entries;
|
|
11960
11979
|
const entry = recordEntries[recordKey];
|
|
11961
11980
|
let record = entry && entry.data;
|
|
@@ -11967,7 +11986,12 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
|
|
|
11967
11986
|
continue;
|
|
11968
11987
|
}
|
|
11969
11988
|
}
|
|
11970
|
-
|
|
11989
|
+
if (isRecordView) {
|
|
11990
|
+
putRecordViews[recordId] = true;
|
|
11991
|
+
}
|
|
11992
|
+
else {
|
|
11993
|
+
putRecords[recordId] = true;
|
|
11994
|
+
}
|
|
11971
11995
|
if (isStoreRecordError(record)) {
|
|
11972
11996
|
putEntries[recordKey] = value;
|
|
11973
11997
|
continue;
|
|
@@ -15855,4 +15879,4 @@ register({
|
|
|
15855
15879
|
});
|
|
15856
15880
|
|
|
15857
15881
|
export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
|
|
15858
|
-
// version: 1.
|
|
15882
|
+
// version: 1.139.1-1cdb5ebf1
|