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.0.0-rc.1 to 14.0.0-rc.2

2

package.json
{
"name": "@mapbox/mapbox-gl-style-spec",
"description": "a specification for mapbox gl styles",
"version": "14.0.0-rc.1",
"version": "14.0.0-rc.2",
"author": "Mapbox",

@@ -6,0 +6,0 @@ "keywords": [

@@ -7,2 +7,3 @@ // @flow

import ValidationError from '../error/validation_error.js';
import {unbundle} from '../util/unbundle_jsonlint.js';

@@ -26,2 +27,8 @@ import type {ValidationOptions} from './validate.js';

// Empty string is reserved for the root style id
if (unbundle(importSpec.id) === '') {
const key = `${options.key}.id`;
errors.push(new ValidationError(key, importSpec, `import id can't be an empty string`));
}
if (data) {

@@ -28,0 +35,0 @@ const key = `${options.key}.data`;

@@ -69,9 +69,13 @@ // @flow

for (const propertyKey in properties) {
errors = errors.concat(validate({
key: propertyKey,
value: properties[propertyKey],
valueSpec: lightPropertySpec[propertyKey],
style,
styleSpec
}));
if (!lightPropertySpec[propertyKey]) {
errors = errors.concat([new ValidationWarning(options.key, properties[propertyKey], `unknown property "${propertyKey}"`)]);
} else {
errors = errors.concat(validate({
key: propertyKey,
value: properties[propertyKey],
valueSpec: lightPropertySpec[propertyKey],
style,
styleSpec
}));
}
}

@@ -78,0 +82,0 @@ } else {

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