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

@turf/line-arc

Package Overview
Dependencies
Maintainers
6
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/line-arc - npm Package Compare versions

Comparing version 6.2.0-alpha.2 to 6.2.0-alpha.3

dist/es/package.json

8

dist/es/index.js

@@ -34,3 +34,5 @@ import circle from "@turf/circle";

var angle2 = convertAngleTo360(bearing2);
var properties = (!Array.isArray(center) && center.type === "Feature") ? center.properties : {};
var properties = !Array.isArray(center) && center.type === "Feature"
? center.properties
: {};
// handle angle parameters

@@ -41,3 +43,3 @@ if (angle1 === angle2) {

var arcStartDegree = angle1;
var arcEndDegree = (angle1 < angle2) ? angle2 : angle2 + 360;
var arcEndDegree = angle1 < angle2 ? angle2 : angle2 + 360;
var alfa = arcStartDegree;

@@ -49,3 +51,3 @@ var coordinates = [];

i++;
alfa = arcStartDegree + i * 360 / steps;
alfa = arcStartDegree + (i * 360) / steps;
}

@@ -52,0 +54,0 @@ if (alfa > arcEndDegree) {

@@ -39,3 +39,5 @@ "use strict";

var angle2 = convertAngleTo360(bearing2);
var properties = (!Array.isArray(center) && center.type === "Feature") ? center.properties : {};
var properties = !Array.isArray(center) && center.type === "Feature"
? center.properties
: {};
// handle angle parameters

@@ -46,3 +48,3 @@ if (angle1 === angle2) {

var arcStartDegree = angle1;
var arcEndDegree = (angle1 < angle2) ? angle2 : angle2 + 360;
var arcEndDegree = angle1 < angle2 ? angle2 : angle2 + 360;
var alfa = arcStartDegree;

@@ -54,3 +56,3 @@ var coordinates = [];

i++;
alfa = arcStartDegree + i * 360 / steps;
alfa = arcStartDegree + (i * 360) / steps;
}

@@ -57,0 +59,0 @@ if (alfa > arcEndDegree) {

{
"name": "@turf/line-arc",
"version": "6.2.0-alpha.2",
"version": "6.2.0-alpha.3",
"description": "turf line-arc module",

@@ -24,2 +24,6 @@ "author": "Turf Authors",

"module": "dist/es/index.js",
"exports": {
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
},
"types": "dist/js/index.d.ts",

@@ -31,14 +35,13 @@ "sideEffects": false,

"scripts": {
"bench": "npm-run-all prepare bench:run",
"bench:run": "node bench.js",
"bench": "ts-node bench.js",
"build": "npm-run-all build:*",
"build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json",
"build:js": "tsc",
"docs": "node ../../scripts/generate-readmes",
"prepare": "npm-run-all prepare:*",
"prepare:es": "tsc --outDir dist/es --module esnext --declaration false",
"prepare:js": "tsc",
"test": "npm-run-all prepare test:*",
"test:tape": "node -r esm test.js",
"test:types": "tsc --noEmit types.ts"
"test": "npm-run-all test:*",
"test:tape": "ts-node -r esm test.js",
"test:types": "tsc --esModuleInterop --noEmit types.ts"
},
"devDependencies": {
"@turf/truncate": "^6.2.0-alpha.2",
"@turf/truncate": "^6.2.0-alpha.3",
"benchmark": "*",

@@ -48,2 +51,3 @@ "load-json-file": "*",

"tape": "*",
"ts-node": "*",
"typescript": "*",

@@ -53,7 +57,7 @@ "write-json-file": "*"

"dependencies": {
"@turf/circle": "^6.2.0-alpha.2",
"@turf/destination": "^6.2.0-alpha.2",
"@turf/helpers": "^6.2.0-alpha.2"
"@turf/circle": "^6.2.0-alpha.3",
"@turf/destination": "^6.2.0-alpha.3",
"@turf/helpers": "^6.2.0-alpha.3"
},
"gitHead": "23d5cb91d77e0c1e2e903a2252f525797f1d0d09"
"gitHead": "dce9edfc705352e8cb9e0083c9330ba0e8d77409"
}
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