New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@2gis/mapgl

Package Overview
Dependencies
Maintainers
3
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@2gis/mapgl - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

2

dist/index.d.ts
import * as mapgl from '../types';
export declare function load(): Promise<typeof mapgl>;
export declare function load(mapglURL?: string): Promise<typeof mapgl>;

@@ -1,4 +0,4 @@

var mapglURL = 'https://mapgl.2gis.com/api/js';
var map;
export function load() {
export function load(mapglURL) {
if (mapglURL === void 0) { mapglURL = 'https://mapgl.2gis.com/api/js'; }
if (typeof window === 'undefined') {

@@ -10,3 +10,3 @@ throw new Error('mapgl is supported only in browser environment');

}
return createScriptAndLoad().then(function () {
return createScriptAndLoad(mapglURL).then(function () {
map = window.mapgl;

@@ -16,3 +16,3 @@ return map;

}
function createScriptAndLoad() {
function createScriptAndLoad(mapglURL) {
return new Promise(function (resolve, reject) {

@@ -19,0 +19,0 @@ // Create script element and set attributes

{
"name": "@2gis/mapgl",
"version": "1.3.2",
"version": "1.3.3",
"description": "MapGL API script loader with typings",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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