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

@turf/square

Package Overview
Dependencies
Maintainers
4
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/square - npm Package Compare versions

Comparing version 4.5.2 to 4.6.0

14

index.js

@@ -10,16 +10,10 @@ var distance = require('@turf/distance');

* @returns {Array<number>} a square surrounding `bbox`
* @addToMap features
* @example
* var bbox = [-20,-20,-15,0];
*
* var squared = turf.square(bbox);
* var features = turf.featureCollection([
* turf.bboxPolygon(bbox),
* turf.bboxPolygon(squared)
* ]);
*
* var features = {
* "type": "FeatureCollection",
* "features": [
* turf.bboxPolygon(bbox),
* turf.bboxPolygon(squared)
* ]
* };
*
* //addToMap

@@ -26,0 +20,0 @@ * var addToMap = [features]

{
"name": "@turf/square",
"version": "4.5.2",
"version": "4.6.0",
"description": "turf square module",

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

"dependencies": {
"@turf/distance": "^4.5.2"
"@turf/distance": "^4.6.0"
}
}

@@ -16,13 +16,8 @@ # @turf/square

var bbox = [-20,-20,-15,0];
var squared = turf.square(bbox);
var features = turf.featureCollection([
turf.bboxPolygon(bbox),
turf.bboxPolygon(squared)
]);
var features = {
"type": "FeatureCollection",
"features": [
turf.bboxPolygon(bbox),
turf.bboxPolygon(squared)
]
};
//addToMap

@@ -29,0 +24,0 @@ var addToMap = [features]

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