@salesforce/lds-runtime-mobile 1.139.0 → 1.139.2
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 +38 -10
- package/package.json +1 -1
- package/sfdc/main.js +38 -10
package/dist/main.js
CHANGED
|
@@ -3040,7 +3040,11 @@ function operatorWithValue(operator, valueNode, objectInfoDataType) {
|
|
|
3040
3040
|
}
|
|
3041
3041
|
if (objectInfoDataType === 'Double') {
|
|
3042
3042
|
if (isScalarOperatorType(operator)) {
|
|
3043
|
-
|
|
3043
|
+
// allow a float/double value to be passed
|
|
3044
|
+
// also allow an integer to be passed to a double, but not a double to an integer
|
|
3045
|
+
const isFloatOrInt = is(valueNode, 'FloatValue') ||
|
|
3046
|
+
is(valueNode, 'IntValue');
|
|
3047
|
+
return isFloatOrInt
|
|
3044
3048
|
? success({
|
|
3045
3049
|
type: 'DoubleOperator',
|
|
3046
3050
|
operator,
|
|
@@ -11903,14 +11907,24 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
|
|
|
11903
11907
|
const filteredEntryIds = [];
|
|
11904
11908
|
// map of records to avoid requesting duplicate record keys when requesting both records and fields
|
|
11905
11909
|
const recordEntries = {};
|
|
11910
|
+
const recordViewEntries = {};
|
|
11906
11911
|
for (let i = 0, len = entriesLength; i < len; i++) {
|
|
11907
11912
|
const id = entries[i];
|
|
11908
11913
|
const recordId = extractRecordIdFromStoreKey(id);
|
|
11909
11914
|
if (recordId !== undefined) {
|
|
11910
|
-
if (
|
|
11911
|
-
|
|
11912
|
-
|
|
11913
|
-
|
|
11915
|
+
if (id.startsWith(RECORD_VIEW_ENTITY_ID_PREFIX)) {
|
|
11916
|
+
if (recordViewEntries[recordId] === undefined) {
|
|
11917
|
+
const key = getDenormalizedKey(id, recordId, luvio);
|
|
11918
|
+
recordViewEntries[recordId] = true;
|
|
11919
|
+
filteredEntryIds.push(key);
|
|
11920
|
+
}
|
|
11921
|
+
}
|
|
11922
|
+
else {
|
|
11923
|
+
if (recordEntries[recordId] === undefined) {
|
|
11924
|
+
const key = getDenormalizedKey(id, recordId, luvio);
|
|
11925
|
+
recordEntries[recordId] = true;
|
|
11926
|
+
filteredEntryIds.push(key);
|
|
11927
|
+
}
|
|
11914
11928
|
}
|
|
11915
11929
|
}
|
|
11916
11930
|
else {
|
|
@@ -11944,6 +11958,7 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
|
|
|
11944
11958
|
const putEntries = create$2(null);
|
|
11945
11959
|
const keys$1 = keys$2(entries);
|
|
11946
11960
|
const putRecords = {};
|
|
11961
|
+
const putRecordViews = {};
|
|
11947
11962
|
const storeRecords = getStoreRecords !== undefined ? getStoreRecords() : {};
|
|
11948
11963
|
const storeMetadata = getStoreMetadata !== undefined ? getStoreMetadata() : {};
|
|
11949
11964
|
for (let i = 0, len = keys$1.length; i < len; i++) {
|
|
@@ -11952,10 +11967,18 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
|
|
|
11952
11967
|
const recordId = extractRecordIdFromStoreKey(key);
|
|
11953
11968
|
// do not put normalized field values
|
|
11954
11969
|
if (recordId !== undefined) {
|
|
11955
|
-
const
|
|
11956
|
-
if (
|
|
11957
|
-
|
|
11970
|
+
const isRecordView = key.startsWith(RECORD_VIEW_ENTITY_ID_PREFIX);
|
|
11971
|
+
if (isRecordView) {
|
|
11972
|
+
if (putRecordViews[recordId] === true) {
|
|
11973
|
+
continue;
|
|
11974
|
+
}
|
|
11958
11975
|
}
|
|
11976
|
+
else {
|
|
11977
|
+
if (putRecords[recordId] === true) {
|
|
11978
|
+
continue;
|
|
11979
|
+
}
|
|
11980
|
+
}
|
|
11981
|
+
const recordKey = getDenormalizedKey(key, recordId, luvio);
|
|
11959
11982
|
const recordEntries = entries;
|
|
11960
11983
|
const entry = recordEntries[recordKey];
|
|
11961
11984
|
let record = entry && entry.data;
|
|
@@ -11967,7 +11990,12 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
|
|
|
11967
11990
|
continue;
|
|
11968
11991
|
}
|
|
11969
11992
|
}
|
|
11970
|
-
|
|
11993
|
+
if (isRecordView) {
|
|
11994
|
+
putRecordViews[recordId] = true;
|
|
11995
|
+
}
|
|
11996
|
+
else {
|
|
11997
|
+
putRecords[recordId] = true;
|
|
11998
|
+
}
|
|
11971
11999
|
if (isStoreRecordError(record)) {
|
|
11972
12000
|
putEntries[recordKey] = value;
|
|
11973
12001
|
continue;
|
|
@@ -15855,4 +15883,4 @@ register({
|
|
|
15855
15883
|
});
|
|
15856
15884
|
|
|
15857
15885
|
export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
|
|
15858
|
-
// version: 1.139.
|
|
15886
|
+
// version: 1.139.2-3a6e84c50
|
package/package.json
CHANGED
package/sfdc/main.js
CHANGED
|
@@ -3040,7 +3040,11 @@ function operatorWithValue(operator, valueNode, objectInfoDataType) {
|
|
|
3040
3040
|
}
|
|
3041
3041
|
if (objectInfoDataType === 'Double') {
|
|
3042
3042
|
if (isScalarOperatorType(operator)) {
|
|
3043
|
-
|
|
3043
|
+
// allow a float/double value to be passed
|
|
3044
|
+
// also allow an integer to be passed to a double, but not a double to an integer
|
|
3045
|
+
const isFloatOrInt = is(valueNode, 'FloatValue') ||
|
|
3046
|
+
is(valueNode, 'IntValue');
|
|
3047
|
+
return isFloatOrInt
|
|
3044
3048
|
? success({
|
|
3045
3049
|
type: 'DoubleOperator',
|
|
3046
3050
|
operator,
|
|
@@ -11903,14 +11907,24 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
|
|
|
11903
11907
|
const filteredEntryIds = [];
|
|
11904
11908
|
// map of records to avoid requesting duplicate record keys when requesting both records and fields
|
|
11905
11909
|
const recordEntries = {};
|
|
11910
|
+
const recordViewEntries = {};
|
|
11906
11911
|
for (let i = 0, len = entriesLength; i < len; i++) {
|
|
11907
11912
|
const id = entries[i];
|
|
11908
11913
|
const recordId = extractRecordIdFromStoreKey(id);
|
|
11909
11914
|
if (recordId !== undefined) {
|
|
11910
|
-
if (
|
|
11911
|
-
|
|
11912
|
-
|
|
11913
|
-
|
|
11915
|
+
if (id.startsWith(RECORD_VIEW_ENTITY_ID_PREFIX)) {
|
|
11916
|
+
if (recordViewEntries[recordId] === undefined) {
|
|
11917
|
+
const key = getDenormalizedKey(id, recordId, luvio);
|
|
11918
|
+
recordViewEntries[recordId] = true;
|
|
11919
|
+
filteredEntryIds.push(key);
|
|
11920
|
+
}
|
|
11921
|
+
}
|
|
11922
|
+
else {
|
|
11923
|
+
if (recordEntries[recordId] === undefined) {
|
|
11924
|
+
const key = getDenormalizedKey(id, recordId, luvio);
|
|
11925
|
+
recordEntries[recordId] = true;
|
|
11926
|
+
filteredEntryIds.push(key);
|
|
11927
|
+
}
|
|
11914
11928
|
}
|
|
11915
11929
|
}
|
|
11916
11930
|
else {
|
|
@@ -11944,6 +11958,7 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
|
|
|
11944
11958
|
const putEntries = create$2(null);
|
|
11945
11959
|
const keys$1 = keys$2(entries);
|
|
11946
11960
|
const putRecords = {};
|
|
11961
|
+
const putRecordViews = {};
|
|
11947
11962
|
const storeRecords = getStoreRecords !== undefined ? getStoreRecords() : {};
|
|
11948
11963
|
const storeMetadata = getStoreMetadata !== undefined ? getStoreMetadata() : {};
|
|
11949
11964
|
for (let i = 0, len = keys$1.length; i < len; i++) {
|
|
@@ -11952,10 +11967,18 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
|
|
|
11952
11967
|
const recordId = extractRecordIdFromStoreKey(key);
|
|
11953
11968
|
// do not put normalized field values
|
|
11954
11969
|
if (recordId !== undefined) {
|
|
11955
|
-
const
|
|
11956
|
-
if (
|
|
11957
|
-
|
|
11970
|
+
const isRecordView = key.startsWith(RECORD_VIEW_ENTITY_ID_PREFIX);
|
|
11971
|
+
if (isRecordView) {
|
|
11972
|
+
if (putRecordViews[recordId] === true) {
|
|
11973
|
+
continue;
|
|
11974
|
+
}
|
|
11958
11975
|
}
|
|
11976
|
+
else {
|
|
11977
|
+
if (putRecords[recordId] === true) {
|
|
11978
|
+
continue;
|
|
11979
|
+
}
|
|
11980
|
+
}
|
|
11981
|
+
const recordKey = getDenormalizedKey(key, recordId, luvio);
|
|
11959
11982
|
const recordEntries = entries;
|
|
11960
11983
|
const entry = recordEntries[recordKey];
|
|
11961
11984
|
let record = entry && entry.data;
|
|
@@ -11967,7 +11990,12 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
|
|
|
11967
11990
|
continue;
|
|
11968
11991
|
}
|
|
11969
11992
|
}
|
|
11970
|
-
|
|
11993
|
+
if (isRecordView) {
|
|
11994
|
+
putRecordViews[recordId] = true;
|
|
11995
|
+
}
|
|
11996
|
+
else {
|
|
11997
|
+
putRecords[recordId] = true;
|
|
11998
|
+
}
|
|
11971
11999
|
if (isStoreRecordError(record)) {
|
|
11972
12000
|
putEntries[recordKey] = value;
|
|
11973
12001
|
continue;
|
|
@@ -15855,4 +15883,4 @@ register({
|
|
|
15855
15883
|
});
|
|
15856
15884
|
|
|
15857
15885
|
export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
|
|
15858
|
-
// version: 1.139.
|
|
15886
|
+
// version: 1.139.2-3a6e84c50
|