@salesforce/lds-runtime-mobile 1.139.1 → 1.140.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.
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
- return is(valueNode, 'FloatValue')
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,
@@ -15879,4 +15883,4 @@ register({
15879
15883
  });
15880
15884
 
15881
15885
  export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
15882
- // version: 1.139.1-1cdb5ebf1
15886
+ // version: 1.140.0-a9e378a04
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-mobile",
3
- "version": "1.139.1",
3
+ "version": "1.140.0",
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
@@ -3040,7 +3040,11 @@ function operatorWithValue(operator, valueNode, objectInfoDataType) {
3040
3040
  }
3041
3041
  if (objectInfoDataType === 'Double') {
3042
3042
  if (isScalarOperatorType(operator)) {
3043
- return is(valueNode, 'FloatValue')
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,
@@ -15879,4 +15883,4 @@ register({
15879
15883
  });
15880
15884
 
15881
15885
  export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
15882
- // version: 1.139.1-1cdb5ebf1
15886
+ // version: 1.140.0-a9e378a04