@mapbox/mapbox-gl-style-spec 14.20.0 → 14.21.0
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/index.cjs +199 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +28 -0
- package/dist/index.es.js +199 -25
- package/dist/index.es.js.map +1 -1
- package/expression/compound_expression.ts +1 -8
- package/expression/definitions/assertion.ts +1 -3
- package/expression/definitions/case.ts +9 -8
- package/expression/definitions/coalesce.ts +3 -4
- package/expression/definitions/collator.ts +8 -6
- package/expression/definitions/in.ts +4 -4
- package/expression/definitions/index_of.ts +4 -4
- package/expression/definitions/length.ts +9 -8
- package/expression/definitions/slice.ts +4 -4
- package/expression/types/image_id.ts +1 -1
- package/feature_filter/index.ts +3 -6
- package/package.json +1 -1
- package/reference/v8.json +126 -3
- package/types.ts +23 -3
- package/validate/validate_source.ts +1 -3
|
@@ -164,12 +164,10 @@ function validatePromoteId({key, value}: PromoteIdValidatorOptions) {
|
|
|
164
164
|
expression.value.forEach((err) => {
|
|
165
165
|
errors.push(new ValidationError(`${key}${err.key}`, null, `${err.message}`));
|
|
166
166
|
});
|
|
167
|
+
return errors;
|
|
167
168
|
}
|
|
168
169
|
|
|
169
|
-
// @ts-expect-error - TS2339: Property 'expression' does not exist on type 'ParsingError[] | StyleExpression'.
|
|
170
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
171
170
|
const parsed = expression.value.expression;
|
|
172
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
173
171
|
const onlyFeatureDependent = isConstant.isGlobalPropertyConstant(parsed, ['zoom', 'heatmap-density', 'line-progress', 'raster-value', 'sky-radial-progress', 'accumulated', 'is-supported-script', 'pitch', 'distance-from-center', 'measure-light', 'raster-particle-speed']);
|
|
174
172
|
if (!onlyFeatureDependent) {
|
|
175
173
|
errors.push(new ValidationError(`${key}`, null, 'promoteId expression should be only feature dependent'));
|