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.3.0 to 1.3.1

10

lib/language.js

@@ -123,8 +123,4 @@ function _classCallCheck(instance, Constructor) {

var language = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.browserLanguage();
if (this.supportedLanguages.indexOf(language) < 0) {
throw new Error("Language ".concat(language, " is not supported"));
}
var lang = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.browserLanguage();
var language = this.supportedLanguages.indexOf(lang) < 0 ? 'mul' : lang;
var style = this.map.getStyle();

@@ -159,3 +155,3 @@ var languageField = this.getLanguageField(language);

return null;
return 'mul';
}

@@ -162,0 +158,0 @@ }]);

{
"name": "mapbox-gl-controls",
"version": "1.3.0",
"version": "1.3.1",
"license": "MIT",

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

@@ -39,7 +39,4 @@ const SUPPORTED_LANGUAGES = ['en', 'es', 'fr', 'de', 'ru', 'zh', 'pt', 'ar', 'ja', 'ko', 'mul'];

setLanguage(language = this.browserLanguage()) {
if (this.supportedLanguages.indexOf(language) < 0) {
throw new Error(`Language ${language} is not supported`);
}
setLanguage(lang = this.browserLanguage()) {
const language = this.supportedLanguages.indexOf(lang) < 0 ? 'mul' : lang;
const style = this.map.getStyle();

@@ -77,3 +74,3 @@ const languageField = this.getLanguageField(language);

}
return null;
return 'mul';
}

@@ -80,0 +77,0 @@ }

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