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

@turf/square

Package Overview
Dependencies
Maintainers
6
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 6.4.0 to 6.5.0

11

dist/js/index.js
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var distance = require('@turf/distance');
var distance = _interopDefault(require('@turf/distance'));
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var distance__default = /*#__PURE__*/_interopDefaultLegacy(distance);
/**

@@ -27,4 +29,4 @@ * Takes a bounding box and calculates the minimum square bounding box that

var horizontalDistance = distance(bbox.slice(0, 2), [east, south]);
var verticalDistance = distance(bbox.slice(0, 2), [west, north]);
var horizontalDistance = distance__default['default'](bbox.slice(0, 2), [east, south]);
var verticalDistance = distance__default['default'](bbox.slice(0, 2), [west, north]);
if (horizontalDistance >= verticalDistance) {

@@ -50,1 +52,2 @@ var verticalMidpoint = (south + north) / 2;

module.exports = square;
module.exports.default = square;
{
"name": "@turf/square",
"version": "6.4.0",
"version": "6.5.0",
"description": "turf square module",

@@ -15,2 +15,3 @@ "author": "Turf Authors",

},
"funding": "https://opencollective.com/turf",
"publishConfig": {

@@ -54,6 +55,6 @@ "access": "public"

"dependencies": {
"@turf/distance": "^6.4.0",
"@turf/helpers": "^6.4.0"
"@turf/distance": "^6.5.0",
"@turf/helpers": "^6.5.0"
},
"gitHead": "1e62773cfc88c627cca8effcb5c14cfb65a905ac"
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
}
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