New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@turf/line-chunk

Package Overview
Dependencies
Maintainers
4
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/line-chunk - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

12

index.js

@@ -23,11 +23,9 @@ var lineSliceAlong = require('@turf/line-slice-along');

* "type": "LineString",
* "coordinates": [
* [-95, 40],
* [-93, 45],
* [-85, 50]
* ]
* "coordinates": [[-95, 40], [-93, 45], [-85, 50]]
* }
* };
* var result = turf.lineChunk(line, 15, 'miles');
* //=result
* var chunk = turf.lineChunk(line, 15, 'miles');
*
* //addToMap
* var addToMap = [line, chunk];
*/

@@ -34,0 +32,0 @@ module.exports = function (featureIn, segmentLength, units, reverse) {

{
"name": "@turf/line-chunk",
"version": "4.1.0",
"version": "4.2.0",
"description": "turf line-chunk module",

@@ -37,3 +37,3 @@ "main": "index.js",

"devDependencies": {
"@turf/truncate": "^4.1.0",
"@turf/truncate": "^4.2.0",
"benchmark": "^1.0.0",

@@ -45,8 +45,8 @@ "load-json-file": "^2.0.0",

"dependencies": {
"@turf/flatten": "^4.1.0",
"@turf/helpers": "^4.1.0",
"@turf/line-distance": "^4.1.0",
"@turf/line-slice-along": "^4.1.0",
"@turf/meta": "^4.1.0"
"@turf/flatten": "^4.2.0",
"@turf/helpers": "^4.2.0",
"@turf/line-distance": "^4.2.0",
"@turf/line-slice-along": "^4.2.0",
"@turf/meta": "^4.2.0"
}
}

@@ -23,11 +23,9 @@ # @turf/line-chunk

"type": "LineString",
"coordinates": [
[-95, 40],
[-93, 45],
[-85, 50]
]
"coordinates": [[-95, 40], [-93, 45], [-85, 50]]
}
};
var result = turf.lineChunk(line, 15, 'miles');
//=result
var chunk = turf.lineChunk(line, 15, 'miles');
//addToMap
var addToMap = [line, chunk];
```

@@ -34,0 +32,0 @@

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