@mapbox/mapbox-gl-style-spec
Advanced tools
Comparing version 14.3.0 to 14.4.0-beta.1
// @flow | ||
import type {Type} from './types.js'; | ||
import type {Class} from '../../types/class.js'; | ||
import type ParsingContext from './parsing_context.js'; | ||
@@ -5,0 +6,0 @@ import type EvaluationContext from './evaluation_context.js'; |
@@ -117,4 +117,4 @@ // @flow | ||
rotateZ<T: Quat>(T, Quat, number): T, | ||
rotationTo<T:Quat>(T, Quat, Quat): T | ||
rotationTo<T:Quat>(T, Quat, Quat): T | ||
} | ||
} |
{ | ||
"name": "@mapbox/mapbox-gl-style-spec", | ||
"description": "a specification for mapbox gl styles", | ||
"version": "14.3.0", | ||
"version": "14.4.0-beta.1", | ||
"author": "Mapbox", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -211,2 +211,3 @@ // @flow | ||
"maxzoom"?: number, | ||
"minzoom"?: number, | ||
"attribution"?: string, | ||
@@ -430,3 +431,6 @@ "buffer"?: number, | ||
"text-translate-anchor"?: PropertyValueSpecification<"map" | "viewport">, | ||
"icon-color-saturation"?: ExpressionSpecification | ||
"icon-color-saturation"?: ExpressionSpecification, | ||
"icon-color-contrast"?: ExpressionSpecification, | ||
"icon-color-brightness-min"?: ExpressionSpecification, | ||
"icon-color-brightness-max"?: ExpressionSpecification | ||
|} | ||
@@ -433,0 +437,0 @@ |} |
@@ -9,6 +9,6 @@ // @flow | ||
// Allow any URL, use dummy base, if it's a relative URL | ||
function isValidUrl(str: string): boolean { | ||
export function isValidUrl(str: string, allowRelativeUrls: boolean): boolean { | ||
const isRelative = str.indexOf('://') === -1; | ||
try { | ||
new URL(str, isRelative ? 'http://example.com' : undefined); | ||
new URL(str, isRelative && allowRelativeUrls ? 'http://example.com' : undefined); | ||
return true; | ||
@@ -34,3 +34,3 @@ } catch (_) { | ||
if (!isValidUrl(url)) { | ||
if (!isValidUrl(url, true)) { | ||
errors = errors.concat([new ValidationError(options.key, url, `invalid url "${url}"`)]); | ||
@@ -37,0 +37,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3797997
60931
2