diff --git a/package-lock.json b/package-lock.json index dfd7d1ae0da..84506c7ce6a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15961,7 +15961,7 @@ }, "src/style-spec": { "name": "@mapbox/mapbox-gl-style-spec", - "version": "14.9.0", + "version": "14.9.1", "license": "SEE LICENSE IN LICENSE.txt", "dependencies": { "@mapbox/jsonlint-lines-primitives": "~2.0.2", diff --git a/src/style-spec/expression/definitions/image.ts b/src/style-spec/expression/definitions/image.ts index ed01bef0bd0..fe51cac0f34 100644 --- a/src/style-spec/expression/definitions/image.ts +++ b/src/style-spec/expression/definitions/image.ts @@ -1,6 +1,5 @@ import {ColorType, ResolvedImageType, StringType} from '../types'; import ResolvedImage from '../types/resolved_image'; -import {isExpression} from '..'; import type Color from '../../util/color'; import type {Expression, SerializedExpression} from '../expression'; @@ -15,7 +14,7 @@ export type ImageOptions = { } function isImageOptions(value: unknown) { - if (typeof value !== 'string' && !isExpression(value)) { + if (value !== null && typeof value === 'object') { return true; } diff --git a/src/style-spec/package.json b/src/style-spec/package.json index 1bf7f679c8b..492fde4d927 100644 --- a/src/style-spec/package.json +++ b/src/style-spec/package.json @@ -1,6 +1,6 @@ { "name": "@mapbox/mapbox-gl-style-spec", - "version": "14.9.0", + "version": "14.9.1", "description": "a specification for mapbox gl styles", "author": "Mapbox", "license": "SEE LICENSE IN LICENSE.txt",