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

mapbox-gl-controls

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mapbox-gl-controls - npm Package Compare versions

Comparing version 1.6.5 to 1.7.0

38

package.json
{
"name": "mapbox-gl-controls",
"version": "1.6.5",
"version": "1.7.0",
"main": "./lib/index.js",

@@ -8,30 +8,30 @@ "description": "Controls for mapbox-gl",

"lint": "eslint src",
"watch": "npm run watch:js & npm run watch:css",
"build": "rollup --config && postcss src/theme.scss --output theme.css && cp ./theme.css ./docs",
"watch:js": "rollup --config --watch",
"watch:css": "postcss src/theme.scss --watch --output theme.css",
"build": "rollup --config && postcss src/theme.scss --output theme.css && cp ./theme.css ./docs",
"docs": "documentation readme src/** --section=API --markdown-toc=false"
},
"devDependencies": {
"@babel/core": "^7.10.5",
"@babel/preset-env": "^7.10.4",
"@rollup/plugin-babel": "^5.1.0",
"@rollup/plugin-commonjs": "^14.0.0",
"@rollup/plugin-node-resolve": "^8.4.0",
"documentation": "^13.0.2",
"eslint": "^7.5.0",
"eslint-config-airbnb-base": "^14.2.0",
"eslint-plugin-import": "^2.22.0",
"mapbox-gl": "^1.11.1",
"postcss-cli": "^7.1.1",
"postcss-import": "^12.0.1",
"postcss-nested": "^4.2.3",
"rollup": "^2.22.1",
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@rollup/plugin-babel": "^5.2.2",
"@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-node-resolve": "^11.0.1",
"documentation": "^13.1.0",
"eslint": "^7.17.0",
"eslint-config-xxx": "^1.0.0",
"eslint-plugin-import": "^2.22.1",
"mapbox-gl": "^2.0.1",
"postcss": "^8.2.4",
"postcss-cli": "^8.3.1",
"postcss-import": "^14.0.0",
"postcss-nested": "^5.0.3",
"rollup": "^2.36.1",
"rollup-plugin-svg-import": "^1.5.1"
},
"dependencies": {
"@turf/distance": "6.0.1"
"@turf/distance": "6.2.0"
},
"peerDependencies": {
"mapbox-gl": ">=1.0.0 <2.0.0"
"mapbox-gl": ">=1.0.0 <3.0.0"
},

@@ -38,0 +38,0 @@ "homepage": "https://bravecow.github.io/mapbox-gl-controls/",

@@ -149,3 +149,3 @@ import mapboxgl from 'mapbox-gl';

this.map.removeSource(SOURCE_SYMBOL);
this.markers.forEach((m) => m.remove());
this.markers.forEach(m => m.remove());
this.map.off('click', this.mapClickListener);

@@ -152,0 +152,0 @@ this.map.off('style.load', this.styleLoadListener);

@@ -56,3 +56,3 @@ const defaultStyles = [

});
const styleNames = this.styles.map((style) => style.styleName);
const styleNames = this.styles.map(style => style.styleName);
const currentStyleIndex = styleNames.indexOf(this.map.getStyle().name);

@@ -59,0 +59,0 @@ if (currentStyleIndex !== -1) {

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