Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@mapbox/mapbox-gl-style-spec

Package Overview
Dependencies
Maintainers
28
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapbox/mapbox-gl-style-spec - npm Package Compare versions

Comparing version 14.3.0 to 14.4.0-beta.1

flow-typed/tracked_parameters_proxy.js

1

expression/expression.js
// @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';

2

flow-typed/gl-matrix.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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc