Socket
Socket
Sign inDemoInstall

turf-along

Package Overview
Dependencies
5
Maintainers
7
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.1 to 3.0.4

2

index.js

@@ -44,3 +44,3 @@ var distance = require('turf-distance');

if (line.type === 'Feature') coords = line.geometry.coordinates;
else if (line.type === 'LineString') coords = line.geometry.coordinates;
else if (line.type === 'LineString') coords = line.coordinates;
else throw new Error('input must be a LineString Feature or Geometry');

@@ -47,0 +47,0 @@

{
"name": "turf-along",
"version": "3.0.1",
"version": "3.0.4",
"description": "",

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

@@ -10,9 +10,9 @@ var test = require('tape');

var pt1 = along(line, 1, 'miles');
var pt2 = along(line, 1.2, 'miles');
var pt2 = along(line.geometry, 1.2, 'miles');
var pt3 = along(line, 1.4, 'miles');
var pt4 = along(line, 1.6, 'miles');
var pt4 = along(line.geometry, 1.6, 'miles');
var pt5 = along(line, 1.8, 'miles');
var pt6 = along(line, 2, 'miles');
var pt6 = along(line.geometry, 2, 'miles');
var pt7 = along(line, 100, 'miles');
var pt8 = along(line, 0, 'miles');
var pt8 = along(line.geometry, 0, 'miles');
var fc = featurecollection([pt1,pt2,pt3,pt4,pt5,pt6,pt7,pt8]);

@@ -19,0 +19,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc