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

leaflet-geometryutil

Package Overview
Dependencies
Maintainers
5
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leaflet-geometryutil - npm Package Compare versions

Comparing version 0.10.0 to 0.10.1

2

package.json
{
"name": "leaflet-geometryutil",
"version": "0.10.0",
"version": "0.10.1",
"description": "Leaflet utility functions on geometries",

@@ -5,0 +5,0 @@ "keywords": [

@@ -50,2 +50,6 @@ Leaflet.GeometryUtil

### 0.10.1 ###
* Enhance precision for meter values (metric / imperial) (#94, thanks @karlbeecken)
### 0.10.0 ###

@@ -52,0 +56,0 @@

describe('Readable distances', function() {
it('It should be meters by default', function(done) {
assert.equal("0 m", L.GeometryUtil.readableDistance(0));
assert.equal("0.0 m", L.GeometryUtil.readableDistance(0));
done();
});
it('It should be 0 yd if imperial', function(done) {
assert.equal("0 yd", L.GeometryUtil.readableDistance(0, 'imperial'));
it('It should be 0.0 yd if imperial', function(done) {
assert.equal("0.0 yd", L.GeometryUtil.readableDistance(0, 'imperial'));
done();

@@ -10,0 +10,0 @@ });

@@ -76,3 +76,3 @@ // Packaging/modules magic dance.

else {
distanceStr = Math.ceil(distance) + ' m';
distanceStr = distance.toFixed(1) + ' m';
}

@@ -86,3 +86,3 @@ }

else {
distanceStr = Math.ceil(distance) + ' yd';
distanceStr = distance.toFixed(1) + ' yd';
}

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