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

@turf/great-circle

Package Overview
Dependencies
Maintainers
4
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/great-circle - npm Package Compare versions

Comparing version 4.3.0 to 4.4.0

8

arc.js

@@ -242,4 +242,6 @@ 'use strict';

module.exports.Coord = Coord;
module.exports.Arc = Arc;
module.exports.GreatCircle = GreatCircle;
module.exports = {
Coord: Coord,
Arc: Arc,
GreatCircle: GreatCircle
};
/// <reference types="geojson" />
type Point = GeoJSON.Feature<GeoJSON.Point>;
type Point = GeoJSON.Feature<GeoJSON.Point> | GeoJSON.Point | Array<number>;
type LineString = GeoJSON.Feature<GeoJSON.LineString>;

@@ -5,0 +5,0 @@

@@ -8,5 +8,5 @@ var arc = require('./arc');

* @name greatCircle
* @param {Feature<Point>} start source point feature
* @param {Feature<Point>} end destination point feature
* @param {*} [properties={}] line feature properties
* @param {Geometry|Feature<Point>|Array<number>} start source point feature
* @param {Geometry|Feature<Point>|Array<number>} end destination point feature
* @param {Object} [properties={}] line feature properties
* @param {number} [npoints=100] number of points

@@ -13,0 +13,0 @@ * @param {number} [offset=10] offset controls the likelyhood that lines will

{
"name": "@turf/great-circle",
"version": "4.3.0",
"version": "4.4.0",
"description": "turf great-circle module",

@@ -39,4 +39,4 @@ "main": "index.js",

"devDependencies": {
"@turf/helpers": "^4.3.0",
"@turf/truncate": "^4.3.0",
"@turf/helpers": "^4.4.0",
"@turf/truncate": "^4.4.0",
"benchmark": "^2.1.4",

@@ -48,5 +48,4 @@ "load-json-file": "^2.0.0",

"dependencies": {
"@turf/invariant": "^4.3.0",
"arc": "^0.1.0"
"@turf/invariant": "^4.4.0"
}
}

@@ -9,5 +9,5 @@ # @turf/great-circle

- `start` **[Feature](http://geojson.org/geojson-spec.html#feature-objects)&lt;[Point](http://geojson.org/geojson-spec.html#point)>** source point feature
- `end` **[Feature](http://geojson.org/geojson-spec.html#feature-objects)&lt;[Point](http://geojson.org/geojson-spec.html#point)>** destination point feature
- `properties` **\[Any]** line feature properties (optional, default `{}`)
- `start` **([Geometry](http://geojson.org/geojson-spec.html#geometry) \| [Feature](http://geojson.org/geojson-spec.html#feature-objects)&lt;[Point](http://geojson.org/geojson-spec.html#point)> | [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)>)** source point feature
- `end` **([Geometry](http://geojson.org/geojson-spec.html#geometry) \| [Feature](http://geojson.org/geojson-spec.html#feature-objects)&lt;[Point](http://geojson.org/geojson-spec.html#point)> | [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)>)** destination point feature
- `properties` **\[[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)]** line feature properties (optional, default `{}`)
- `npoints` **\[[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)]** number of points (optional, default `100`)

@@ -14,0 +14,0 @@ - `offset` **\[[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)]** offset controls the likelyhood that lines will

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