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

@ec-nordbund/leaflet

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ec-nordbund/leaflet - npm Package Compare versions

Comparing version 1.7.1-436430db4203a350601e002c8de6a41fae15a4bf-2 to 1.7.1-modules

dist/fix.js

2

dist/leaflet-src.js

@@ -0,1 +1,3 @@

import './fix.js'
export * from '../src/Leaflet.js'

19

package.json
{
"name": "@ec-nordbund/leaflet",
"version": "1.7.1-436430db4203a350601e002c8de6a41fae15a4bf-2",
"version": "1.7.1-modules+81dc24892a",
"homepage": "https://leafletjs.com/",
"description": "JavaScript library for mobile-friendly interactive maps",
"devDependencies": {
"eslint": "^6.8.0",
"eslint": "^7.19.0",
"eslint-config-mourner": "^2.0.1",
"git-rev-sync": "^2.1.0",
"git-rev-sync": "^3.0.1",
"happen": "~0.3.2",
"karma": "^5.2.1",
"karma": "^6.1.0",
"karma-chrome-launcher": "^3.1.0",
"karma-edge-launcher": "^0.4.2",
"karma-expect": "^1.1.3",
"karma-firefox-launcher": "^1.3.0",
"karma-firefox-launcher": "^2.1.0",
"karma-ie-launcher": "^1.0.0",

@@ -23,3 +23,3 @@ "karma-mocha": "^2.0.1",

"leafdoc": "^2.2.1",
"mocha": "^7.1.2",
"mocha": "^8.2.1",
"phantomjs-prebuilt": "^2.1.16",

@@ -31,4 +31,4 @@ "prosthetic-hand": "^1.3.1",

"sinon": "^7.5.0",
"ssri": "^8.0.0",
"uglify-js": "^3.10.3"
"ssri": "^8.0.1",
"uglify-js": "^3.12.6"
},

@@ -105,3 +105,4 @@ "main": "dist/leaflet-src.js",

],
"license": "BSD-2-Clause"
"license": "BSD-2-Clause",
"sideEffects": false
}
> Copy of Leaflet wich not exposes window.L and is a module.
> Copy of Leaflet wich not exposes window.L and is a module.
> Copy of Leaflet wich not exposes window.L and is a module.
> Copy of Leaflet wich not exposes window.L and is a module.
> Copy of Leaflet wich not exposes window.L and is a module.
> Copy of Leaflet wich not exposes window.L and is a module.
> Copy of Leaflet wich not exposes window.L and is a module.
> Copy of Leaflet wich not exposes window.L and is a module.
> Copy of Leaflet wich not exposes window.L and is a module.
> Copy of Leaflet wich not exposes window.L and is a module.
> Copy of Leaflet wich not exposes window.L and is a module.
> Copy of Leaflet wich not exposes window.L and is a module.
> Copy of Leaflet wich not exposes window.L and is a module.
> Copy of Leaflet wich not exposes window.L and is a module.
> Copy of Leaflet wich not exposes window.L and is a module.
> Copy of Leaflet wich not exposes window.L and is a module.
> Copy of Leaflet wich not exposes window.L and is a module.
> Copy of Leaflet wich not exposes window.L and is a module.
> Copy of Leaflet wich not exposes window.L and is a module.
> Copy of Leaflet wich not exposes window.L and is a module.
> Copy of Leaflet wich not exposes window.L and is a module.
> Copy of Leaflet wich not exposes window.L and is a module.
<img width="600" src="https://rawgit.com/Leaflet/Leaflet/master/src/images/logo.svg" alt="Leaflet" />

@@ -4,0 +46,0 @@

@@ -183,3 +183,3 @@ import {Point} from '../geometry/Point';

// @function disableClickPropagation(el: HTMLElement): this
// Adds `stopPropagation` to the element's `'click'`, `'doubleclick'`,
// Adds `stopPropagation` to the element's `'click'`, `'dblclick'`,
// `'mousedown'` and `'touchstart'` events (plus browser variants).

@@ -186,0 +186,0 @@ export function disableClickPropagation(el) {

@@ -162,4 +162,3 @@ import {Layer} from '../Layer';

this._resetView();
this._update();
this._resetView(); // implicit _update() call
},

@@ -166,0 +165,0 @@

@@ -516,3 +516,3 @@ import * as Util from '../core/Util';

// Pans the map the minimum amount to make the `latlng` visible. Use
// `padding`, `paddingTopLeft` and `paddingTopRight` options to fit
// `padding`, `paddingTopLeft` and `paddingBottomRight` options to fit
// the display to more restricted bounds, like [`fitBounds`](#map-fitbounds).

@@ -526,31 +526,15 @@ // If `latlng` is already within the (optionally padded) display bounds,

paddingBR = toPoint(options.paddingBottomRight || options.padding || [0, 0]),
center = this.getCenter(),
pixelCenter = this.project(center),
pixelCenter = this.project(this.getCenter()),
pixelPoint = this.project(latlng),
pixelBounds = this.getPixelBounds(),
halfPixelBounds = pixelBounds.getSize().divideBy(2),
paddedBounds = toBounds([pixelBounds.min.add(paddingTL), pixelBounds.max.subtract(paddingBR)]);
paddedBounds = toBounds([pixelBounds.min.add(paddingTL), pixelBounds.max.subtract(paddingBR)]),
paddedSize = paddedBounds.getSize();
if (!paddedBounds.contains(pixelPoint)) {
this._enforcingBounds = true;
var diff = pixelCenter.subtract(pixelPoint),
newCenter = toPoint(pixelPoint.x + diff.x, pixelPoint.y + diff.y);
if (pixelPoint.x < paddedBounds.min.x || pixelPoint.x > paddedBounds.max.x) {
newCenter.x = pixelCenter.x - diff.x;
if (diff.x > 0) {
newCenter.x += halfPixelBounds.x - paddingTL.x;
} else {
newCenter.x -= halfPixelBounds.x - paddingBR.x;
}
}
if (pixelPoint.y < paddedBounds.min.y || pixelPoint.y > paddedBounds.max.y) {
newCenter.y = pixelCenter.y - diff.y;
if (diff.y > 0) {
newCenter.y += halfPixelBounds.y - paddingTL.y;
} else {
newCenter.y -= halfPixelBounds.y - paddingBR.y;
}
}
this.panTo(this.unproject(newCenter), options);
var centerOffset = pixelPoint.subtract(paddedBounds.getCenter());
var offset = paddedBounds.extend(pixelPoint).getSize().subtract(paddedSize);
pixelCenter.x += centerOffset.x < 0 ? -offset.x : offset.x;
pixelCenter.y += centerOffset.y < 0 ? -offset.y : offset.y;
this.panTo(this.unproject(pixelCenter), options);
this._enforcingBounds = false;

@@ -557,0 +541,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