Socket
Socket
Sign inDemoInstall

@turf/helpers

Package Overview
Dependencies
Maintainers
7
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/helpers - npm Package Compare versions

Comparing version 7.0.0-alpha.0 to 7.0.0-alpha.1

1

dist/es/index.js

@@ -55,2 +55,3 @@ /**

miles: 3.86e-7,
nauticalmiles: 2.9155334959812285e-7,
millimeters: 1000000,

@@ -57,0 +58,0 @@ millimetres: 1000000,

13

dist/js/index.d.ts

@@ -5,3 +5,4 @@ import { BBox, Feature, FeatureCollection, Geometry, GeometryCollection, GeometryObject, LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon, Position, GeoJsonProperties } from "geojson";

export declare type Coord = Feature<Point> | Point | Position;
export declare type Units = "meters" | "metres" | "millimeters" | "millimetres" | "centimeters" | "centimetres" | "kilometers" | "kilometres" | "acres" | "miles" | "nauticalmiles" | "inches" | "yards" | "feet" | "radians" | "degrees" | "hectares";
export declare type Units = "meters" | "metres" | "millimeters" | "millimetres" | "centimeters" | "centimetres" | "kilometers" | "kilometres" | "miles" | "nauticalmiles" | "inches" | "yards" | "feet" | "radians" | "degrees";
export declare type AreaUnits = Exclude<Units, "radians" | "degrees"> | "acres" | "hectares";
export declare type Grid = "point" | "square" | "hex" | "triangle";

@@ -29,5 +30,3 @@ export declare type Corners = "sw" | "se" | "nw" | "ne" | "center" | "centroid";

*/
export declare const factors: {
[key: string]: number;
};
export declare const factors: Record<Units, number>;
/**

@@ -40,5 +39,3 @@

*/
export declare const areaFactors: {
[key: string]: number;
};
export declare const areaFactors: Record<AreaUnits, number>;
/**

@@ -414,3 +411,3 @@ * Wraps a GeoJSON {@link Geometry} in a GeoJSON {@link Feature}.

*/
export declare function convertArea(area: number, originalUnit?: Units, finalUnit?: Units): number;
export declare function convertArea(area: number, originalUnit?: AreaUnits, finalUnit?: AreaUnits): number;
/**

@@ -417,0 +414,0 @@ * isNumber

@@ -57,2 +57,3 @@ "use strict";

miles: 3.86e-7,
nauticalmiles: 2.9155334959812285e-7,
millimeters: 1000000,

@@ -59,0 +60,0 @@ millimetres: 1000000,

{
"name": "@turf/helpers",
"version": "7.0.0-alpha.0",
"version": "7.0.0-alpha.1",
"description": "turf helpers module",

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

".": {
"types": "./dist/js/index.d.ts",
"import": "./dist/es/index.js",

@@ -47,9 +48,9 @@ "require": "./dist/js/index.js"

"scripts": {
"bench": "ts-node bench.js",
"bench": "tsx 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",
"docs": "tsx ../../scripts/generate-readmes",
"test": "npm-run-all test:*",
"test:tape": "ts-node -r esm test.js",
"test:tape": "tsx test.js",
"test:types": "tsc --esModuleInterop --noEmit --strict types.ts"

@@ -62,4 +63,4 @@ },

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

@@ -70,3 +71,3 @@ },

},
"gitHead": "0edc4c491b999e5ace770a61e1cf549f7c004189"
"gitHead": "cf7a0c507b017ca066acffd0ce23bda5b393fb5a"
}
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