ol 9.2.4-dev.1716821640794 → 9.2.4-dev.1716829795912
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/ol.js +2 -2
- package/dist/ol.js.map +1 -1
- package/expr/expression.js +2 -2
- package/package.json +1 -1
- package/util.js +1 -1
package/expr/expression.js
CHANGED
|
@@ -951,7 +951,7 @@ function parseInterpolateArgs(encoded, context, parsedArgs, typeHint) {
|
|
|
951
951
|
* @type ArgValidator
|
|
952
952
|
*/
|
|
953
953
|
function parseCaseArgs(encoded, context, parsedArgs, typeHint) {
|
|
954
|
-
const fallback = parse(encoded[encoded.length - 1], context);
|
|
954
|
+
const fallback = parse(encoded[encoded.length - 1], context, typeHint);
|
|
955
955
|
let outputType =
|
|
956
956
|
typeHint !== undefined ? typeHint & fallback.type : fallback.type;
|
|
957
957
|
|
|
@@ -959,7 +959,7 @@ function parseCaseArgs(encoded, context, parsedArgs, typeHint) {
|
|
|
959
959
|
const args = new Array(encoded.length - 1);
|
|
960
960
|
for (let i = 0; i < args.length - 1; i += 2) {
|
|
961
961
|
const condition = parse(encoded[i + 1], context);
|
|
962
|
-
const output = parse(encoded[i + 2], context);
|
|
962
|
+
const output = parse(encoded[i + 2], context, typeHint);
|
|
963
963
|
if (!overlapsType(BooleanType, condition.type)) {
|
|
964
964
|
throw new Error(
|
|
965
965
|
`Expected all conditions in the case operation to be of type boolean` +
|
package/package.json
CHANGED
package/util.js
CHANGED