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

@marfle/react-leaflet-nmscale

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marfle/react-leaflet-nmscale - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

5

dist/esm/leafletnmscale.js

@@ -5,3 +5,2 @@ import { Control, DomUtil } from 'leaflet';

Control.Scale.prototype._addScales.call(this, options, className, container);
if (options.nautical) {

@@ -13,3 +12,2 @@ this._nScale = DomUtil.create('div', className, container);

Control.Scale.prototype._updateScales.call(this, maxMeters);
if (this.options.nautical && maxMeters) {

@@ -22,3 +20,2 @@ this._updateNautical(maxMeters);

let nm;
if (maxMeters < 185) {

@@ -31,5 +28,3 @@ nm = Math.round(maxNm * 100) / 100;

}
let label = nm + 'nm';
this._updateScale(this._nScale, label, nm / maxNm);

@@ -36,0 +31,0 @@ }

2

dist/esm/nmscale.js

@@ -5,3 +5,2 @@ /* eslint @typescript-eslint/ban-ts-comment: "warn" */

import { createControlComponent } from '@react-leaflet/core';
function createNmScaleControl(props) {

@@ -21,3 +20,2 @@ const {

}
export const NmScale = createControlComponent(createNmScaleControl);

@@ -1,2 +0,1 @@

/// <reference types="react" />
import type { Control } from 'leaflet';

@@ -3,0 +2,0 @@ interface NmScaleProps extends Control.ScaleOptions {

48

package.json
{
"name": "@marfle/react-leaflet-nmscale",
"version": "3.0.0",
"version": "3.0.1",
"description": "Nautical mile scale for react-leaflet",

@@ -16,3 +16,3 @@ "main": "dist/esm/nmscale.js",

"jest": "NODE_OPTIONS=--experimental-vm-modules jest",
"lint": "eslint --ext .js --ext .ts --ext .tsx src __tests__",
"lint": "eslint",
"test": "npm run lint && npm run jest && npm run test:types",

@@ -45,26 +45,28 @@ "test:types": "tsc --noEmit",

"peerDependencies": {
"react-leaflet": "^4.0.0"
"react-leaflet": "^4.0.0 || ^5.0.0"
},
"devDependencies": {
"@babel/cli": "^7.17.6",
"@babel/core": "^7.17.9",
"@babel/preset-env": "^7.16.11",
"@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"@testing-library/react": "^13.1.1",
"@types/jest": "^27.4.1",
"@types/leaflet": "^1.7.9",
"@types/react": "^18.0.5",
"@types/react-dom": "^18.0.1",
"@typescript-eslint/eslint-plugin": "^5.19.0",
"@typescript-eslint/parser": "^5.19.0",
"eslint": "^8.13.0",
"eslint-plugin-react": "^7.29.4",
"jest": "^27.5.1",
"leaflet": "^1.8.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-leaflet": "^4.0.0",
"typescript": "^4.6.3"
"@babel/cli": "^7.26.4",
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"@babel/preset-react": "^7.26.3",
"@babel/preset-typescript": "^7.26.0",
"@eslint/js": "^9.16.0",
"@testing-library/react": "^16.1.0",
"@types/jest": "^29.5.14",
"@types/leaflet": "^1.9.15",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.1",
"eslint": "^9.16.0",
"eslint-plugin-react": "^7.37.2",
"globals": "^15.13.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"leaflet": "^1.9.4",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-leaflet": "^5.0.0",
"typescript": "^5.7.2",
"typescript-eslint": "^8.17.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