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
181
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 10.0.0 to 10.0.1-test-publish.1

build/strictify.js

17

expression/compound_expression.js

@@ -54,9 +54,11 @@ // @flow

const overloads = Array.isArray(definition) ?
const availableOverloads = Array.isArray(definition) ?
[[definition[1], definition[2]]] :
definition.overloads.filter(overload => (
!Array.isArray(overload[0][0]) || // varags
overload[0][0].length === args.length - 1 // correct param count
));
definition.overloads;
const overloads = availableOverloads.filter(([signature]) => (
!Array.isArray(signature) || // varags
signature.length === args.length - 1 // correct param count
));
// First parse all the args

@@ -103,3 +105,3 @@ const parsedArgs: Array<Expression> = [];

assert(signatureContext.errors.length > 0);
assert(!signatureContext || signatureContext.errors.length > 0);

@@ -109,3 +111,4 @@ if (overloads.length === 1) {

} else {
const signatures = overloads
const expected = overloads.length ? overloads : availableOverloads;
const signatures = expected
.map(([params]) => stringifySignature(params))

@@ -112,0 +115,0 @@ .join(' | ');

@@ -103,3 +103,3 @@ // @flow

const [r, g, b, a] = v.value;
return `rgba(${r * 255}, ${g * 255}, ${b * 255}, ${a})`;
return `rgba(${r * 255},${g * 255},${b * 255},${a})`;
} else {

@@ -255,2 +255,7 @@ return JSON.stringify(v);

],
'sqrt': [
NumberType,
[NumberType],
(ctx, [x]) => Math.sqrt(x.evaluate(ctx))
],
'log10': [

@@ -257,0 +262,0 @@ NumberType,

{
"name": "@mapbox/mapbox-gl-style-spec",
"description": "a specification for mapbox gl styles",
"version": "10.0.0",
"version": "10.0.1-test-publish.1",
"author": "Mapbox",

@@ -12,3 +12,26 @@ "keywords": [

"license": "ISC",
"main": "index.js",
"main": "dist/index.js",
"scripts": {
"copy-flow-typed": "cp -R ../../flow-typed .",
"build": "../../node_modules/.bin/browserify style-spec.js --no-builtins --no-bundle-external --insert-global-vars=\"__filename,__dirname\" --standalone=mapboxGlStyleSpecification | ../../node_modules/.bin/derequire > dist/index.js",
"prepublish": "in-publish && yarn copy-flow-typed && yarn build || not-in-publish",
"postpublish": "in-publish && rm -r flow-typed dist/index.js || not-in-publish"
},
"browserify": {
"transform": [
"unflowify",
[
"bubleify",
{
"bubleError": true,
"transforms": {
"dangerousForOf": true
},
"objectAssign": "Object.assign"
}
],
"brfs",
"./build/strictify"
]
},
"repository": {

@@ -25,3 +48,7 @@ "type": "git",

"dependencies": {
"@mapbox/unitbezier": "^0.0.0",
"brfs": "^1.4.0",
"bubleify": "^0.7.0",
"csscolorparser": "~1.0.2",
"in-publish": "^2.0.0",
"jsonlint-lines-primitives": "~1.6.0",

@@ -31,4 +58,5 @@ "lodash.isequal": "^3.0.4",

"rw": "^1.3.3",
"sort-object": "^0.3.2"
"sort-object": "^0.3.2",
"unflowify": "^1.0.0"
}
}

@@ -23,3 +23,3 @@

module.exports = function validateStyle(style, styleSpec) {
const index = require('./');
const index = require('./style-spec');

@@ -26,0 +26,0 @@ if (style instanceof String || typeof style === 'string' || style instanceof Buffer) {

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