@mapbox/mapbox-gl-style-spec 14.29.0 → 14.29.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapbox/mapbox-gl-style-spec",
3
- "version": "14.29.0",
3
+ "version": "14.29.1",
4
4
  "description": "a specification for mapbox gl styles",
5
5
  "author": "Mapbox",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -79,7 +79,7 @@ export default function validateLights(options: LightsValidatorOptions): Validat
79
79
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
80
80
  if (useThemeMatch && lightPropertySpec[useThemeMatch[1]!]) {
81
81
  errors = errors.concat(validate({
82
- key,
82
+ key: propertyKey,
83
83
  value: properties[propertyKey],
84
84
  valueSpec: {type: 'string'},
85
85
  style,
@@ -88,8 +88,8 @@ export default function validateLights(options: LightsValidatorOptions): Validat
88
88
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
89
89
  } else if (transitionMatch && lightPropertySpec[transitionMatch[1]!] && lightPropertySpec[transitionMatch[1]!].transition) {
90
90
  errors = errors.concat(validate({
91
- key,
92
- value: light[key],
91
+ key: propertyKey,
92
+ value: properties[propertyKey],
93
93
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
94
94
  valueSpec: styleSpec.transition,
95
95
  style,