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

@turf/line-offset

Package Overview
Dependencies
Maintainers
4
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/line-offset - npm Package Compare versions

Comparing version 4.5.2 to 4.6.0

13

index.js

@@ -19,12 +19,3 @@ var meta = require('@turf/meta');

* @example
* var line = {
* "type": "Feature",
* "properties": {
* "stroke": "#F00"
* },
* "geometry": {
* "type": "LineString",
* "coordinates": [[-83, 30], [-84, 36], [-78, 41]]
* }
* };
* var line = turf.lineString([[-83, 30], [-84, 36], [-78, 41]], { "stroke": "#F00" });
*

@@ -34,4 +25,4 @@ * var offsetLine = turf.lineOffset(line, 2, "miles");

* //addToMap
* var addToMap = [offsetLine, line]
* offsetLine.properties.stroke = "#00F"
* var addToMap = [offsetLine, line]
*/

@@ -38,0 +29,0 @@ module.exports = function (geojson, distance, units) {

10

package.json
{
"name": "@turf/line-offset",
"version": "4.5.2",
"version": "4.6.0",
"description": "turf line-offset module",

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

"devDependencies": {
"@turf/truncate": "^4.5.2",
"@turf/truncate": "^4.6.0",
"benchmark": "^2.1.4",

@@ -46,6 +46,6 @@ "load-json-file": "^2.0.0",

"dependencies": {
"@turf/helpers": "^4.5.2",
"@turf/invariant": "^4.5.2",
"@turf/meta": "^4.5.2"
"@turf/helpers": "^4.6.0",
"@turf/invariant": "^4.6.0",
"@turf/meta": "^4.6.0"
}
}

@@ -16,12 +16,3 @@ # @turf/line-offset

```javascript
var line = {
"type": "Feature",
"properties": {
"stroke": "#F00"
},
"geometry": {
"type": "LineString",
"coordinates": [[-83, 30], [-84, 36], [-78, 41]]
}
};
var line = turf.lineString([[-83, 30], [-84, 36], [-78, 41]], { "stroke": "#F00" });

@@ -31,4 +22,4 @@ var offsetLine = turf.lineOffset(line, 2, "miles");

//addToMap
var addToMap = [offsetLine, line]
offsetLine.properties.stroke = "#00F"
var addToMap = [offsetLine, line]
```

@@ -35,0 +26,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