@turf/line-slice
Advanced tools
Comparing version 5.1.5 to 6.2.0-alpha.1
{ | ||
"name": "@turf/line-slice", | ||
"version": "5.1.5", | ||
"version": "6.2.0-alpha.1", | ||
"description": "turf line-slice module", | ||
"main": "main.js", | ||
"module": "main.es.js", | ||
"types": "index.d.ts", | ||
"files": [ | ||
"index.js", | ||
"index.d.ts", | ||
"main.js", | ||
"main.es.js" | ||
], | ||
"scripts": { | ||
"pretest": "rollup -c ../../rollup.config.js", | ||
"test": "node -r @std/esm test.js", | ||
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", | ||
"bench": "node -r @std/esm bench.js", | ||
"docs": "node ../../scripts/generate-readmes" | ||
"author": "Turf Authors", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/Turfjs/turf/issues" | ||
}, | ||
"homepage": "https://github.com/Turfjs/turf", | ||
"repository": { | ||
@@ -25,2 +15,5 @@ "type": "git", | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"keywords": [ | ||
@@ -35,11 +28,21 @@ "turf", | ||
], | ||
"author": "Turf Authors", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/Turfjs/turf/issues" | ||
"main": "dist/js/index.js", | ||
"module": "dist/es/index.js", | ||
"types": "index.d.ts", | ||
"sideEffects": false, | ||
"files": [ | ||
"dist", | ||
"index.d.ts" | ||
], | ||
"scripts": { | ||
"bench": "npm-run-all prepare bench:run", | ||
"bench:run": "node bench.js", | ||
"docs": "node ../../scripts/generate-readmes", | ||
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", | ||
"prepare": "rollup -c ../../rollup.config.js", | ||
"test": "npm-run-all prepare test:*", | ||
"test:tape": "node -r esm test.js" | ||
}, | ||
"homepage": "https://github.com/Turfjs/turf", | ||
"devDependencies": { | ||
"@std/esm": "*", | ||
"@turf/truncate": "^5.1.5", | ||
"@turf/truncate": "^6.2.0-alpha.1", | ||
"benchmark": "*", | ||
@@ -52,10 +55,7 @@ "load-json-file": "*", | ||
"dependencies": { | ||
"@turf/helpers": "^5.1.5", | ||
"@turf/invariant": "^5.1.5", | ||
"@turf/nearest-point-on-line": "^5.1.5" | ||
"@turf/helpers": "^6.2.0-alpha.1", | ||
"@turf/invariant": "^6.2.0-alpha.1", | ||
"@turf/nearest-point-on-line": "^6.2.0-alpha.1" | ||
}, | ||
"@std/esm": { | ||
"esm": "js", | ||
"cjs": true | ||
} | ||
"gitHead": "fc519c045a8931c1e14eab9160a7e28391f8da02" | ||
} |
@@ -7,3 +7,3 @@ # @turf/line-slice | ||
Takes a [line](https://tools.ietf.org/html/rfc7946#section-3.1.4), a start [Point](https://tools.ietf.org/html/rfc7946#section-3.1.2), and a stop point | ||
Takes a [line][1], a start [Point][2], and a stop point | ||
and returns a subsection of the line in-between those points. | ||
@@ -16,5 +16,5 @@ The start & stop points don't need to fall exactly on the line. | ||
- `startPt` **[Coord](https://tools.ietf.org/html/rfc7946#section-3.1.1)** starting point | ||
- `stopPt` **[Coord](https://tools.ietf.org/html/rfc7946#section-3.1.1)** stopping point | ||
- `line` **([Feature](https://tools.ietf.org/html/rfc7946#section-3.2)<[LineString](https://tools.ietf.org/html/rfc7946#section-3.1.4)> | [LineString](https://tools.ietf.org/html/rfc7946#section-3.1.4))** line to slice | ||
- `startPt` **[Coord][3]** starting point | ||
- `stopPt` **[Coord][3]** stopping point | ||
- `line` **([Feature][4]<[LineString][5]> | [LineString][5])** line to slice | ||
@@ -41,4 +41,14 @@ **Examples** | ||
Returns **[Feature](https://tools.ietf.org/html/rfc7946#section-3.2)<[LineString](https://tools.ietf.org/html/rfc7946#section-3.1.4)>** sliced line | ||
Returns **[Feature][4]<[LineString][5]>** sliced line | ||
[1]: https://tools.ietf.org/html/rfc7946#section-3.1.4 | ||
[2]: https://tools.ietf.org/html/rfc7946#section-3.1.2 | ||
[3]: https://tools.ietf.org/html/rfc7946#section-3.1.1 | ||
[4]: https://tools.ietf.org/html/rfc7946#section-3.2 | ||
[5]: https://tools.ietf.org/html/rfc7946#section-3.1.4 | ||
<!-- This file is automatically generated. Please don't edit it directly: | ||
@@ -45,0 +55,0 @@ if you find an error, edit the source file (likely index.js), and re-run |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
6
75
10729
1
2
+ Added@turf/bbox@7.2.0(transitive)
+ Added@turf/bearing@6.5.0(transitive)
+ Added@turf/destination@6.5.0(transitive)
+ Added@turf/distance@6.5.0(transitive)
+ Added@turf/helpers@6.5.07.2.0(transitive)
+ Added@turf/invariant@6.5.0(transitive)
+ Added@turf/line-intersect@6.5.0(transitive)
+ Added@turf/line-segment@6.5.0(transitive)
+ Added@turf/meta@6.5.07.2.0(transitive)
+ Added@turf/nearest-point-on-line@6.5.0(transitive)
+ Added@types/geojson@7946.0.157946.0.8(transitive)
+ Addedgeojson-rbush@3.2.0(transitive)
+ Addedquickselect@2.0.0(transitive)
+ Addedrbush@3.0.1(transitive)
+ Addedtslib@2.8.1(transitive)
- Removed@turf/bearing@5.1.5(transitive)
- Removed@turf/destination@5.1.5(transitive)
- Removed@turf/distance@5.1.5(transitive)
- Removed@turf/helpers@5.1.5(transitive)
- Removed@turf/invariant@5.2.0(transitive)
- Removed@turf/line-intersect@5.1.5(transitive)
- Removed@turf/line-segment@5.1.5(transitive)
- Removed@turf/meta@5.2.0(transitive)
- Removed@turf/nearest-point-on-line@5.1.5(transitive)
- Removedgeojson-rbush@2.1.0(transitive)
- Removedquickselect@3.0.0(transitive)
- Removedrbush@4.0.1(transitive)
Updated@turf/helpers@^6.2.0-alpha.1