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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol",
3
- "version": "9.2.4-dev.1716821640794",
3
+ "version": "9.2.4-dev.1716829795912",
4
4
  "description": "OpenLayers mapping library",
5
5
  "keywords": [
6
6
  "map",
package/util.js CHANGED
@@ -33,4 +33,4 @@ export function getUid(obj) {
33
33
  * OpenLayers version.
34
34
  * @type {string}
35
35
  */
36
- export const VERSION = '9.2.4-dev.1716821640794';
36
+ export const VERSION = '9.2.4-dev.1716829795912';