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

@maplibre/maplibre-gl-style-spec

Package Overview
Dependencies
Maintainers
3
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 21.0.0 to 21.1.0

1

bin/gl-style-validate.ts
#!/usr/bin/env node
/* eslint-disable no-process-exit */

@@ -4,0 +3,0 @@ import minimist from 'minimist';

4

dist/index.d.ts

@@ -506,2 +506,3 @@ // Generated by dts-bundle-generator v9.5.1

"center"?: Array<number>;
"centerAltitude"?: number;
"zoom"?: number;

@@ -1007,2 +1008,5 @@ "bearing"?: number;

];
"setCenterAltitude": [
number
];
"setZoom": [

@@ -1009,0 +1013,0 @@ number

{
"name": "@maplibre/maplibre-gl-style-spec",
"description": "a specification for maplibre styles",
"version": "21.0.0",
"version": "21.1.0",
"author": "MapLibre",

@@ -33,3 +33,3 @@ "keywords": [

"compile": "tsc",
"lint": "eslint --cache --ext .ts,.tsx --ignore-path .gitignore .",
"lint": "eslint",
"typecheck": "tsc --noEmit",

@@ -57,3 +57,3 @@ "prepare": "npm run generate-style-spec"

"minimist": "^1.2.8",
"quickselect": "^2.0.0",
"quickselect": "^3.0.0",
"rw": "^1.3.3",

@@ -71,21 +71,19 @@ "tinyqueue": "^3.0.0"

"@rollup/plugin-typescript": "^12.1.1",
"@types/eslint": "^8.56.6",
"@stylistic/eslint-plugin-ts": "^2.9.0",
"@types/eslint": "^9.6.1",
"@types/geojson": "^7946.0.14",
"@types/jest": "^29.5.13",
"@types/node": "^22.7.7",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^7.18.0",
"@types/jest": "^29.5.14",
"@types/node": "^22.8.1",
"@typescript-eslint/eslint-plugin": "^8.11.0",
"@typescript-eslint/parser": "^8.11.0",
"dts-bundle-generator": "^9.5.1",
"eslint": "^8.57.0",
"eslint-config-mourner": "^3.0.0",
"eslint-plugin-html": "^8.1.2",
"eslint-plugin-import": "^2.31.0",
"eslint": "^9.13.0",
"eslint-plugin-jest": "^28.8.3",
"eslint-plugin-jsdoc": "^50.4.3",
"eslint-plugin-react": "^7.37.1",
"glob": "^11.0.0",
"globals": "^15.11.0",
"jest": "^29.7.0",
"jest-canvas-mock": "^2.5.2",
"jest-environment-jsdom": "^29.7.0",
"rollup": "^4.24.0",
"rollup": "^4.24.2",
"rollup-plugin-preserve-shebang": "^1.0.1",

@@ -92,0 +90,0 @@ "semver": "^7.6.3",

@@ -275,2 +275,21 @@ import diffStyles from './diff';

test('set centerAltitude to undefined', () => {
expect(diffStyles({
centerAltitude: 1
} as StyleSpecification, {
} as StyleSpecification)).toEqual([
{command: 'setCenterAltitude', args: [undefined]}
]);
});
test('set centerAltitude', () => {
expect(diffStyles({
centerAltitude: 0
} as StyleSpecification, {
centerAltitude: 1
} as StyleSpecification)).toEqual([
{command: 'setCenterAltitude', args: [1]}
]);
});
test('set zoom', () => {

@@ -277,0 +296,0 @@ expect(diffStyles({

@@ -22,2 +22,3 @@

'setCenter': [number[]];
'setCenterAltitude': [number];
'setZoom': [number];

@@ -283,2 +284,5 @@ 'setBearing': [number];

}
if (!isEqual(before.centerAltitude, after.centerAltitude)) {
commands.push({command: 'setCenterAltitude', args: [after.centerAltitude]});
}
if (!isEqual(before.zoom, after.zoom)) {

@@ -285,0 +289,0 @@ commands.push({command: 'setZoom', args: [after.zoom]});

@@ -108,3 +108,2 @@

const val = this.expression.evaluate(this._evaluator);
// eslint-disable-next-line no-self-compare
if (val === null || val === undefined || (typeof val === 'number' && val !== val)) {

@@ -111,0 +110,0 @@ return this._defaultValue;

/* eslint-disable import/namespace */
import * as spec from '.';

@@ -4,0 +3,0 @@

@@ -200,2 +200,3 @@ // Generated code; do not edit. Edit build/generate-style-spec.ts instead.

"center"?: Array<number>,
"centerAltitude"?: number,
"zoom"?: number,

@@ -202,0 +203,0 @@ "bearing"?: number,

@@ -17,4 +17,4 @@ import quickselect from 'quickselect';

const polygons: T[][][] = [];
let polygon: T[][];
const polygons: RingWithArea<T>[][] = [];
let polygon: RingWithArea<T>[];
let ccw: boolean | undefined;

@@ -52,3 +52,3 @@

function compareAreas(a: {area: number}, b: {area: number}) {
function compareAreas<T extends Point2D>(a: RingWithArea<T>, b: RingWithArea<T>): number {
return b.area - a.area;

@@ -55,0 +55,0 @@ }

@@ -52,3 +52,3 @@ import {HSLColor, hslToRgb, RGBColor} from './color_spaces';

let i = 1;
return [ // eslint-disable-line no-return-assign
return [
parseHex(input.slice(i, i += step)),

@@ -55,0 +55,0 @@ parseHex(input.slice(i, i += step)),

@@ -11,3 +11,2 @@

// eslint-disable-next-line no-self-compare
if (type === 'number' && value !== value) {

@@ -14,0 +13,0 @@ type = 'NaN';

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 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 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