@turf/meta
Advanced tools
Comparing version 7.0.0-alpha.2 to 7.0.0-alpha.110
@@ -20,3 +20,3 @@ import { | ||
*/ | ||
export function coordReduce<Reducer extends any>( | ||
declare function coordReduce<Reducer>( | ||
geojson: AllGeoJSON, | ||
@@ -37,3 +37,3 @@ callback: ( | ||
*/ | ||
export function coordEach( | ||
declare function coordEach( | ||
geojson: AllGeoJSON, | ||
@@ -53,3 +53,3 @@ callback: ( | ||
*/ | ||
export function propEach<Props extends GeoJsonProperties>( | ||
declare function propEach<Props extends GeoJsonProperties>( | ||
geojson: Feature<any> | FeatureCollection<any> | Feature<GeometryCollection>, | ||
@@ -62,3 +62,6 @@ callback: (currentProperties: Props, featureIndex: number) => void | ||
*/ | ||
export function propReduce<Reducer extends any, P = GeoJsonProperties>( | ||
declare function propReduce< | ||
Reducer, | ||
P extends GeoJsonProperties = GeoJsonProperties, | ||
>( | ||
geojson: Feature<any, P> | FeatureCollection<any, P> | Geometry, | ||
@@ -76,6 +79,6 @@ callback: ( | ||
*/ | ||
export function featureReduce< | ||
Reducer extends any, | ||
declare function featureReduce< | ||
Reducer, | ||
G extends GeometryObject, | ||
P = GeoJsonProperties | ||
P extends GeoJsonProperties = GeoJsonProperties, | ||
>( | ||
@@ -97,3 +100,6 @@ geojson: | ||
*/ | ||
export function featureEach<G extends GeometryObject, P = GeoJsonProperties>( | ||
declare function featureEach< | ||
G extends GeometryObject, | ||
P extends GeoJsonProperties = GeoJsonProperties, | ||
>( | ||
geojson: | ||
@@ -109,3 +115,3 @@ | Feature<G, P> | ||
*/ | ||
export function coordAll(geojson: AllGeoJSON): number[][]; | ||
declare function coordAll(geojson: AllGeoJSON): number[][]; | ||
@@ -115,6 +121,6 @@ /** | ||
*/ | ||
export function geomReduce< | ||
Reducer extends any, | ||
declare function geomReduce< | ||
Reducer, | ||
G extends GeometryObject, | ||
P = GeoJsonProperties | ||
P extends GeoJsonProperties = GeoJsonProperties, | ||
>( | ||
@@ -141,5 +147,5 @@ geojson: | ||
*/ | ||
export function geomEach< | ||
declare function geomEach< | ||
G extends GeometryObject | null, | ||
P = GeoJsonProperties | ||
P extends GeoJsonProperties = GeoJsonProperties, | ||
>( | ||
@@ -164,6 +170,6 @@ geojson: | ||
*/ | ||
export function flattenReduce< | ||
Reducer extends any, | ||
declare function flattenReduce< | ||
Reducer, | ||
G extends GeometryObject, | ||
P = GeoJsonProperties | ||
P extends GeoJsonProperties = GeoJsonProperties, | ||
>( | ||
@@ -188,5 +194,5 @@ geojson: | ||
*/ | ||
export function flattenEach< | ||
declare function flattenEach< | ||
G extends GeometryObject = GeometryObject, | ||
P = GeoJsonProperties | ||
P extends GeoJsonProperties = GeoJsonProperties, | ||
>( | ||
@@ -209,3 +215,6 @@ geojson: | ||
*/ | ||
export function segmentReduce<Reducer extends any, P = GeoJsonProperties>( | ||
declare function segmentReduce< | ||
Reducer, | ||
P extends GeoJsonProperties = GeoJsonProperties, | ||
>( | ||
geojson: | ||
@@ -231,3 +240,3 @@ | FeatureCollection<Lines, P> | ||
*/ | ||
export function segmentEach<P = GeoJsonProperties>( | ||
declare function segmentEach<P extends GeoJsonProperties = GeoJsonProperties>( | ||
geojson: AllGeoJSON, | ||
@@ -246,3 +255,6 @@ callback: ( | ||
*/ | ||
export function lineReduce<Reducer extends any, P = GeoJsonProperties>( | ||
declare function lineReduce< | ||
Reducer, | ||
P extends GeoJsonProperties = GeoJsonProperties, | ||
>( | ||
geojson: | ||
@@ -267,3 +279,3 @@ | FeatureCollection<Lines, P> | ||
*/ | ||
export function lineEach<P = GeoJsonProperties>( | ||
declare function lineEach<P extends GeoJsonProperties = GeoJsonProperties>( | ||
geojson: | ||
@@ -286,5 +298,5 @@ | FeatureCollection<Lines, P> | ||
*/ | ||
export function findSegment< | ||
declare function findSegment< | ||
G extends LineString | MultiLineString | Polygon | MultiPolygon, | ||
P = GeoJsonProperties | ||
P extends GeoJsonProperties = GeoJsonProperties, | ||
>( | ||
@@ -306,3 +318,6 @@ geojson: Feature<G, P> | FeatureCollection<G, P> | G, | ||
*/ | ||
export function findPoint<G extends GeometryObject, P = GeoJsonProperties>( | ||
declare function findPoint< | ||
G extends GeometryObject, | ||
P extends GeoJsonProperties = GeoJsonProperties, | ||
>( | ||
geojson: Feature<G, P> | FeatureCollection<G, P> | G, | ||
@@ -319,1 +334,21 @@ options?: { | ||
): Feature<Point, P>; | ||
export { | ||
coordReduce, | ||
coordEach, | ||
propEach, | ||
propReduce, | ||
featureReduce, | ||
featureEach, | ||
coordAll, | ||
geomReduce, | ||
geomEach, | ||
flattenReduce, | ||
flattenEach, | ||
segmentReduce, | ||
segmentEach, | ||
lineReduce, | ||
lineEach, | ||
findSegment, | ||
findPoint, | ||
}; |
{ | ||
"name": "@turf/meta", | ||
"version": "7.0.0-alpha.2", | ||
"version": "7.0.0-alpha.110+1411d63a7", | ||
"description": "turf meta module", | ||
@@ -46,13 +46,19 @@ "author": "Turf Authors", | ||
], | ||
"main": "dist/js/index.js", | ||
"module": "dist/es/index.js", | ||
"type": "commonjs", | ||
"main": "dist/cjs/index.cjs", | ||
"module": "dist/esm/index.mjs", | ||
"types": "dist/cjs/index.d.ts", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"types": "./index.d.ts", | ||
"import": "./dist/es/index.js", | ||
"require": "./dist/js/index.js" | ||
"import": { | ||
"types": "./dist/esm/index.d.mts", | ||
"default": "./dist/esm/index.mjs" | ||
}, | ||
"require": { | ||
"types": "./dist/cjs/index.d.ts", | ||
"default": "./dist/cjs/index.cjs" | ||
} | ||
} | ||
}, | ||
"types": "index.d.ts", | ||
"sideEffects": false, | ||
@@ -64,21 +70,21 @@ "files": [ | ||
"scripts": { | ||
"bench": "tsx bench.js", | ||
"build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", | ||
"docs": "tsx ../../scripts/generate-readmes", | ||
"test": "npm-run-all test:*", | ||
"test:tape": "tsx test.js", | ||
"bench": "tsx bench.ts", | ||
"build": "tsup --config ../../tsup.config.ts", | ||
"docs": "tsx ../../scripts/generate-readmes.ts", | ||
"test": "npm-run-all --npm-path npm test:*", | ||
"test:tape": "tsx test.ts", | ||
"test:types": "tsc --esModuleInterop --noEmit --strict types.ts" | ||
}, | ||
"devDependencies": { | ||
"@turf/random": "^7.0.0-alpha.2", | ||
"benchmark": "*", | ||
"npm-run-all": "*", | ||
"rollup": "*", | ||
"tape": "*", | ||
"tsx": "*" | ||
"@turf/random": "^7.0.0-alpha.110+1411d63a7", | ||
"benchmark": "^2.1.4", | ||
"npm-run-all": "^4.1.5", | ||
"tape": "^5.7.2", | ||
"tsup": "^8.0.1", | ||
"tsx": "^4.6.2" | ||
}, | ||
"dependencies": { | ||
"@turf/helpers": "^7.0.0-alpha.2" | ||
"@turf/helpers": "^7.0.0-alpha.110+1411d63a7" | ||
}, | ||
"gitHead": "dd35b52725945b4fa29a98d9a550733e06cc222e" | ||
"gitHead": "1411d63a74c275c9216fe48e9d3cb2d48a359068" | ||
} |
@@ -837,16 +837,11 @@ # @turf/meta | ||
<!-- This file is automatically generated. Please don't edit it directly: | ||
if you find an error, edit the source file (likely index.js), and re-run | ||
./scripts/generate-readmes in the turf project. --> | ||
<!-- This file is automatically generated. Please don't edit it directly. If you find an error, edit the source file of the module in question (likely index.js or index.ts), and re-run "yarn docs" from the root of the turf project. --> | ||
--- | ||
This module is part of the [Turfjs project](http://turfjs.org/), an open source | ||
module collection dedicated to geographic algorithms. It is maintained in the | ||
[Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create | ||
PRs and issues. | ||
This module is part of the [Turfjs project](https://turfjs.org/), an open source module collection dedicated to geographic algorithms. It is maintained in the [Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create PRs and issues. | ||
### Installation | ||
Install this module individually: | ||
Install this single module individually: | ||
@@ -857,3 +852,3 @@ ```sh | ||
Or install the Turf module that includes it as a function: | ||
Or install the all-encompassing @turf/turf module that includes all modules as functions: | ||
@@ -860,0 +855,0 @@ ```sh |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
214828
10
1845
856
2