@mapbox/mapbox-gl-style-spec 14.9.0 → 14.9.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.
@@ -1,6 +1,5 @@
1
1
  import {ColorType, ResolvedImageType, StringType} from '../types';
2
2
  import ResolvedImage from '../types/resolved_image';
3
- import {isExpression} from '..';
4
3
 
5
4
  import type Color from '../../util/color';
6
5
  import type {Expression, SerializedExpression} from '../expression';
@@ -15,7 +14,7 @@ export type ImageOptions = {
15
14
  }
16
15
 
17
16
  function isImageOptions(value: unknown) {
18
- if (typeof value !== 'string' && !isExpression(value)) {
17
+ if (value !== null && typeof value === 'object') {
19
18
  return true;
20
19
  }
21
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapbox/mapbox-gl-style-spec",
3
- "version": "14.9.0",
3
+ "version": "14.9.1",
4
4
  "description": "a specification for mapbox gl styles",
5
5
  "author": "Mapbox",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",