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

@turf/ellipse

Package Overview
Dependencies
Maintainers
4
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/ellipse - npm Package Compare versions

Comparing version 5.1.1 to 5.1.5

main.es.js

16

main.js

@@ -42,8 +42,8 @@ 'use strict';

// validation
if (!center) { throw new Error('center is required'); }
if (!xSemiAxis) { throw new Error('xSemiAxis is required'); }
if (!ySemiAxis) { throw new Error('ySemiAxis is required'); }
if (!helpers.isObject(options)) { throw new Error('options must be an object'); }
if (!helpers.isNumber(steps)) { throw new Error('steps must be a number'); }
if (!helpers.isNumber(angle)) { throw new Error('angle must be a number'); }
if (!center) throw new Error('center is required');
if (!xSemiAxis) throw new Error('xSemiAxis is required');
if (!ySemiAxis) throw new Error('ySemiAxis is required');
if (!helpers.isObject(options)) throw new Error('options must be an object');
if (!helpers.isNumber(steps)) throw new Error('steps must be a number');
if (!helpers.isNumber(angle)) throw new Error('angle must be a number');

@@ -66,4 +66,4 @@ var centerCoords = invariant.getCoord(center);

if (stepAngle < -90 && stepAngle >= -270) { x = -x; }
if (stepAngle < -180 && stepAngle >= -360) { y = -y; }
if (stepAngle < -90 && stepAngle >= -270) x = -x;
if (stepAngle < -180 && stepAngle >= -360) y = -y;
if (units === 'degrees') {

@@ -70,0 +70,0 @@ var newx = x * Math.cos(angleRad) + y * Math.sin(angleRad);

{
"name": "@turf/ellipse",
"version": "5.1.1",
"version": "5.1.5",
"description": "turf ellipse module",
"main": "main.js",
"module": "main.mjs",
"module": "main.es.js",
"types": "index.d.ts",

@@ -12,3 +12,3 @@ "files": [

"main.js",
"main.mjs"
"main.es.js"
],

@@ -18,2 +18,3 @@ "scripts": {

"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",

@@ -42,6 +43,6 @@ "docs": "node ../../scripts/generate-readmes"

"@std/esm": "*",
"@turf/bbox-polygon": "^5.1.0",
"@turf/circle": "^5.1.0",
"@turf/destination": "^5.1.0",
"@turf/truncate": "^5.1.0",
"@turf/bbox-polygon": "^5.1.5",
"@turf/circle": "^5.1.5",
"@turf/destination": "^5.1.5",
"@turf/truncate": "^5.1.5",
"benchmark": "*",

@@ -51,3 +52,2 @@ "glob": "*",

"rollup": "*",
"rollup-plugin-buble": "*",
"tape": "*",

@@ -57,6 +57,6 @@ "write-json-file": "*"

"dependencies": {
"@turf/helpers": "^5.1.0",
"@turf/invariant": "^5.1.0",
"@turf/rhumb-destination": "^5.1.0",
"@turf/transform-rotate": "^5.1.0"
"@turf/helpers": "^5.1.5",
"@turf/invariant": "^5.1.5",
"@turf/rhumb-destination": "^5.1.5",
"@turf/transform-rotate": "^5.1.5"
},

@@ -63,0 +63,0 @@ "@std/esm": {

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